레시피아 - 2022-08-08 08:32:32
테이블 (8)
게시글 (board)
- 게시글아이디 (board_id) — int unsigned auto_increment — 기본 키 — NOT NULL
- 회원아이디 (user_id2) — int unsigned auto_increment — 외래 키 — NOT NULL
- 제목 (board_title) — varchar(20)
- 내용 (board_content) — varchar(100)
- 평점 (board_score) — int unsigned
- 조회수 (board_views) — int unsigned
- 작성일 (board_created_date) — timestamp DEFAULT current_timestamp
- 수정일 (board_modified_date) — timestamp DEFAULT current_timestamp
- 삭제일 (board_delete_date) — timestamp DEFAULT current_timestamp
- 삭제여부 (board_is_blind) — boolean
- 좋아요 (board_likes) — int unsigned
댓글 (comment)
- 댓글아이디 (comment_id) — int unsigned auto_increment — 기본 키 — NOT NULL
- 회원아이디 (user_id) — int unsigned auto_increment — 외래 키 — NOT NULL
- 게시글아이디 (board_id) — int unsigned auto_increment — 외래 키 — NOT NULL
- 내용 (comment_content) — varchar(20)
- 작성일 (comment_created_date) — timestamp DEFAULT current_timestamp
- 수정일 (comment_modified_date) — timestamp DEFAULT current_timestamp
- 삭제일 (comment_delete_date) — timestamp DEFAULT current_timestamp
- 삭제여부 (comment_is_blind) — boolean
- 좋아요 (comment_like) — int unsigned
북마크 (bookmark)
- 북마크아이디 (bookmark_id) — int unsigned auto_increment — 기본 키 — NOT NULL
- 회원아이디 (user_id) — int unsigned auto_increment — 외래 키 → 회원.회원아이디 — NOT NULL
- 게시글아이디 (board_id) — int unsigned auto_increment — 외래 키 → 게시글.게시글아이디 — NOT NULL
알러지 (allergy)
- 알러지아이디 (allergy_id) — int unsigned auto_increment — 기본 키 — NOT NULL
- 회원아이디 (user_id) — int unsigned auto_increment — 외래 키 → 회원.회원아이디 — NOT NULL
- 알러지내용 (allergy_content) — varchar(20)
- 알러지카테고리 (allergy_category) — varchar(20)
태그 (tag)
- 태그아이디 (tag_id) — int unsigned auto_increment — 기본 키 — NOT NULL
- 게시글아이디 (user_id) — int unsigned auto_increment — 외래 키 — NOT NULL
- 태그내용 (tag_content) — notnull varchar(20)
- 태그조회수 (tab_view) — int unsigned
- 태그카테고리 (tag_category) — notnull varchar(20)
회원 (user)
- 회원아이디 (user_id) — int unsigned auto_increment — 기본 키 — NOT NULL
- 회원로그인아이디 (user_loginid) — varchar(20)
- 회원로그인비밀번호 (user_loginpw) — varchar(20)
- 회원이메일 (user_email) — varchar(20)
- 회원닉네임 (user_nickname) — varchar(20)
- 회원성별 (user_gender) — boolean
외 2개 테이블