ERD
Tables (7)
comment (댓글)
- 댓글 아이디 (comment_id) — BIGINT — Primary key — NOT NULL
- 댓글 내용 (content) — VARCHAR(255)
- 비밀여부 (secret) — boolean
- 게시글 아이디 (post_id) — BIGINT — Foreign key → post.게시글 아이디
- 유저 아이디 (member_id) — BIGINT — Foreign key → member.유저 아이디 — NOT NULL
hashtag (해시태그)
- 해시태그 아이디 (hashtag_id) — BIGINT — Primary key — NOT NULL
- 단어 (word) — VARCHAR(20)
heart_post (공감)
- 좋아요 아이디 (heart_id) — BIGINT — Primary key — NOT NULL
- 유저 아이디 (member_id) — BIGINT — Foreign key → member.유저 아이디 — NOT NULL
- 게시글 아이디 (post_id) — BIGINT — Foreign key → post.게시글 아이디
interest (관심분야)
- 관심분야 아이디 (interest_id) — BIGINT — Primary key — NOT NULL
- 관심분야 (interest_category) — VARCHAR(20)
- 유저 아이디 (member_id) — BIGINT — Foreign key → member.유저 아이디 — NOT NULL
member (유저)
- 유저 아이디 (member_id) — BIGINT — Primary key — NOT NULL
- 아이디 (id) — VARCHAR(30)
- 비밀번호 (password) — VARCHAR(30)
- 이름 (nickname) — VARCHAR(30)
- 문화테스트유형 (muntour_type) — Enum
- 프로필 (image_url) — VARCHAR(255)
- 프로필 폴더이름 (image_folder) — VARCHAR(50)
- 프로필 파일 이름 (image_name) — VARCHAR(100)
post (커뮤니티)
- 게시글 아이디 (post_id) — BIGINT — Primary key
- 게시글 분야 (post_category) — Enum
- 게시글 제목 (post_title) — VARCHAR(50)
- 내용 (content) — VARCHAR(512)
- 사진 url (image_url) — VARCHAR(255)
- 사진 폴더 이름 (image_folder) — VARCHAR(50)
- 사진 파일 이름 (image_name) — VARCHAR(100)
- 유저 아이디 (member_id) — BIGINT — Foreign key → member.유저 아이디 — NOT NULL
tagmapping (게시판-해시태그 매핑)
- 매핑 아이디 (mapping_id) — BIGINT — Primary key — NOT NULL
- 게시글 아이디 (post_id) — BIGINT — Foreign key → post.게시글 아이디
- 해시태그 아이디 (hashtag_id) — BIGINT — Foreign key → hashtag.해시태그 아이디 — NOT NULL