DongmoonNetwork
테이블 (8)
게시글 (Post)
- 게시글 id (post_id) — String — 기본 키 — NOT NULL
- 제목 (title) — String — NOT NULL
- 내용 (content) — String — NOT NULL
- 첨부파일 (attachments) — String
- 삭제여부 (is_deleted) — Bool — NOT NULL
- 유저 id (user_id) — String — 외래 키 → 유저.유저 id — NOT NULL
- 익명여부 (is_anonymous) — Bool — NOT NULL
- 질문글여부 (is_question) — Bool — NOT NULL
게시글좋아요 (LikePost)
- 게시글좋아요 id (like_post_id) — String — 기본 키 — NOT NULL
- 게시글 id (post_id) — String — 외래 키 → 게시글.게시글 id — NOT NULL
- 유저 id (user_id) — String — 외래 키 → 유저.유저 id — NOT NULL
게시글즐겨찾기 (FavoritePost)
- 게시글 즐겨찾기 id (favorite_post_id) — String — 기본 키 — NOT NULL
- 유저 id (user_id) — String — 외래 키 → 유저.유저 id — NOT NULL
- 게시글 id (post_id) — String — 외래 키 → 게시글.게시글 id — NOT NULL
- 삭제여부 (is_deleted) — Bool — NOT NULL
대댓글 (ChildComment)
- 대댓글 id (child_comment_id) — String — 기본 키 — NOT NULL
- 댓글 id (comment_id2) — String — 외래 키 → 댓글.댓글 id — NOT NULL
- 유저 id (user_id) — String — 외래 키 → 유저.유저 id — NOT NULL
- 내용 (content) — String — NOT NULL
- 삭제 여부 (is_deleted) — Bool — NOT NULL
- 대상 유저 (tag_name) — String — NOT NULL
- 참고 대댓글 (ref_child_comment) — String — NOT NULL
- 익명 여부 (is_anonymous) — Bool — NOT NULL
대댓글 좋아요 (LikeChildComment)
- 대댓글 좋아요 (like_child_comment_id) — String — 기본 키 — NOT NULL
- 유저 id (user_id) — String — 외래 키 → 유저.유저 id — NOT NULL
- 대댓글 id (child_comment_id) — String — 외래 키 → 대댓글.대댓글 id — NOT NULL
댓글 (Comment)
- 댓글 id (comment_id) — String — 기본 키 — NOT NULL
- 내용 (content) — String — NOT NULL
- 삭제 여부 (Field) — Bool — NOT NULL
- 게시글 id (post_id) — String — 외래 키 → 게시글.게시글 id — NOT NULL
- 유저 id (user_id) — String — 외래 키 → 유저.유저 id — NOT NULL
- 익명 여부 (is_anonymous) — Bool — NOT NULL
댓글 좋아요 (LikeComment)
- 댓글 좋아요 id (like_comment_id) — String — 기본 키 — NOT NULL
- 유저 id (user_id) — String — 외래 키 → 유저.유저 id — NOT NULL
- 댓글 id (comment_id) — String — 외래 키 → 댓글.댓글 id — NOT NULL
유저 (User)
- 유저 id (user_id) — String — 기본 키 — NOT NULL
- 이메일 (Field) — NOT NULL
- 이름 (Field2) — NOT NULL
- 비번 (Field3) — NOT NULL
- 학번 (Field4) — NOT NULL
- 입학년도 (Field5) — NOT NULL
- 역할 (Field6) — NOT NULL
- 프로필 이미지 (Field7)