Pet Community
Tables (13)
account (계정)
- user_id (유저 아이디) — bigint — Primary key — NOT NULL
- profile_url (프로필사진) — varchar
- name (이름) — varchar
- nickname (닉네임) — varchar
- email (이메일) — varchar
- password (비밀번호) — varchar
- phone (전화번호) — varchar
- temperature (애정온도) — float
address (주소)
- address_id (주소 아이디) — int — Primary key — NOT NULL
- city (시) — varchar
- district (구) — varchar
- neighborhood (동) — varchar
article (게시글)
- article_id (게시글 아이디) — bigint — Primary key — NOT NULL
- title (제목) — varchar
- description (설명) — text
- create_time (생성 시간) — timestamp
- price (가격) — int
- view_count (조회수) — int
- like_count (좋아요수) — int
- chat_count (채팅수) — int
- is_proposal (가격제안) — varchar
- is_image (사진 유무) — Boolean
- status (상태) — varchar
- user_id (유저 아이디) — bigint — Foreign key → account.user_id — NOT NULL
- post_category_id (게시글 카테고리 아이디) — bigint — Foreign key → article_category.article_category_id — NOT NULL
- address_id (주소 아이디) — bigint — Foreign key → address.address_id — NOT NULL
article_category (게시글 카테고리)
- article_category_id (게시글 카테고리 아이디) — int — Primary key — NOT NULL
- name (카테고리 이름) — varchar
article_chat (게시글 채팅)
- article_chat_id (게시글 채팅 아이디) — bigint — Primary key — NOT NULL
- article_id (게시글 아이디) — bigint — Foreign key → article.article_id — NOT NULL
- user_id (유저 아이디) — bigint — Foreign key → account.user_id — NOT NULL
article_image (게시글 이미지)
- article_image_id (게시글 이미지 아이디) — bigint — Primary key — NOT NULL
- image_url (이미지 주소) — varchar
- article_id (게시글 아이디) — bigint — Foreign key → article.article_id — NOT NULL
article_like (게시글 좋아요)
- article_like_id (게시글 좋아요 아이디) — bigint — Primary key — NOT NULL
- article_id (게시글 아이디) — bigint — Foreign key → article.article_id — NOT NULL
- user_id (유저 아이디) — bigint — Foreign key → account.user_id — NOT NULL
comment (커뮤니티 댓글)
- comment_id (댓글 아이디) — bigint — Primary key — NOT NULL
- content (내용) — varchar
- create_time (생성 시간) — timestamp
- community_id (커뮤니티 아이디) — bigint — Foreign key → community.community_id — NOT NULL
- user_id (유저 아이디) — bigint — Foreign key → account.user_id — NOT NULL
community (커뮤니티)
- community_id (커뮤니티 아이디) — bigint — Primary key — NOT NULL
- create_time (생성 시간) — timestamp
- description (설명) — text
- reaction_count (공감수) — int
- comment_count (댓글수) — int
- user_id (유저 아이디) — bigint — Foreign key → account.user_id — NOT NULL
- community_category_id (커뮤니티 카테고리 아이디) — int — Foreign key → community_category.community_category_id — NOT NULL
- address_id (주소 아이디) — int — Foreign key → address.address_id — NOT NULL
community_category (커뮤니티 카테고리)
- community_category_id (커뮤니티 카테고리 아이디) — int — Primary key — NOT NULL
- name (카테고리 이름) — varchar
community_image (커뮤니티 이미지)
- community_image_id (커뮤니티 이미지 아이디) — bigint — Primary key — NOT NULL
- image_url (이미지 주소) — varchar
- community_id (커뮤니티 아이디) — bigint — Foreign key → community.community_id — NOT NULL
community_reaction (커뮤니티 공감)
- community_reaction_id (커뮤니티 공감 아이디) — bigint — Primary key — NOT NULL
- user_id (유저 아이디) — bigint — Foreign key → account.user_id — NOT NULL
- community_id (커뮤니티 아이디) — bigint — Foreign key → community.community_id — NOT NULL
- reaction_type (종류) — int — NOT NULL
user_address (유저 주소)
- user_address_id (유저 주소 아이디) — bigint — Primary key — NOT NULL
- user_id (유저 아이디) — bigint — Foreign key → account.user_id — NOT NULL
- address_id (주소 아이디) — int — Foreign key → address.address_id — NOT NULL
- isDefault (대표 주소 관리) — Boolean