Content_Board
Tables (10)
admin
- admin_id — INT(11) — Primary key — NOT NULL
- admin_adminname — VARCHAR(255) — 어드민 아이디
- admin_password — VARCHAR(255) — 어드민 비밀번호
category
- Key (category_id) — INT(11) — Primary key — NOT NULL
- category_name — VARCHAR(255) — 카테고리 이름
comment
- comment_id — INT(11) — Primary key — NOT NULL
- Key (post_id) — INT(11) — Foreign key → post.Key — NOT NULL
- comment_content — VARCHAR(255) — 댓글 내용
- comment_create_date — DATE — 댓글 생성시간
- comment_modified_date — DATE — 댓글 수정시간
declaration
- declaration — INT(11) — Primary key — NOT NULL
- Key (post_id) — INT(11) — Foreign key → post.Key — NOT NULL
- declaration_type — enum — 신고 유형
- declaration_content — VARCHAR(255) — 신고 내용
- declaration_create_date — DATE — 신고 생성시간
post
- Key (post_id) — INT(11) — Primary key — NOT NULL
- Key (category_id) — INT(11) — Foreign key → category.Key — NOT NULL
- user_id — INT(11) — Foreign key → user.user_id — NOT NULL
- post_title — VARCHAR(255) — 글 제목
- post_content — CLOB — 글 내용
- post_create_date — DATE — 글 생성시간
- post_modified_date — DATE — 글 수정시간
received_note
- received_note_id — INT(11) — Primary key — NOT NULL
- user_id — INT(11) — Foreign key → user.user_id — NOT NULL — 쪽지 받은 user PK
- received_note_title — VARHCAR(255) — 받은쪽지 제목
- received_note_content — CLOB — 받은쪽지 내용
- send_user_id — INT(11) — 쪽지 보낸 user PK
- received_note_create_date — DATE — 받은쪽지 생성시간
recommend (recommned)
- recommend_id — INT(11) — Primary key — NOT NULL
- Key (post_id) — INT(11) — Foreign key → post.Key — NOT NULL
- user_id — INT(11) — Foreign key → user.user_id — NOT NULL
- recommend_recommend — enum("RECOMMEND", "UNRECOMMEND") — 추천 비추천
send_note
- send_note_id — INT(11) — Primary key — NOT NULL
- user_id — INT(11) — Foreign key → user.user_id — NOT NULL — 쪽지 보낸 user PK
- send_note_title — VARCHAR(255) — 보낸쪽지 제목
- send_note_content — CLOB — 보낸쪽지 내용
- received_user_id — INT(11) — 쪽지 받은 user PK
- send_note_create_date — DATE — 보낸쪽지 생성시간
tag
- tag_id — INT(11) — Primary key — NOT NULL
- Key (post_id) — INT(11) — Foreign key → post.Key — NOT NULL
- tag_name — VARCHAR(255) — 태그 이름
user
- user_id — INT(11) — Primary key — NOT NULL
- user_username — VARCHAR(255) — 유저 아이디
- user_password — VARCHAR(255) — 유저 비밀번호
- user_name — VARCHAR(255) — 유저 이름
- user_email — VARCHAR(255) — 유저 이메일
- user_create_date — DATE — 유저 생성시간
- user_modified_date — DATE — 유저 수정시간