게시글 심화
테이블 (5)
Comment (comment)
- commentId (Key) — Long — 기본 키 — NOT NULL
- comment (Field) — String
- username (Field2) — String
- like (Field4) — bolean
- likecount (Field3) — long
- Field5
- userId (Key2) — long — 외래 키 → User.userId — NOT NULL
CommentLike (commentlike)
- commentLikeId (Key) — Long — 기본 키 — NOT NULL
- commentId (Key4) — Long — 외래 키 → Comment.commentId — NOT NULL
- userId (Key2) — long — 외래 키 → User.userId — NOT NULL
Post (post)
- postId (Key) — long — 기본 키 — NOT NULL
- comment (Field) — String
- title (Field2) — String
- username (Field3) — String
- like (Field4) — bolean
- likecount (Field5) — long
- commentId (Key2) — Long — 외래 키 → Comment.commentId — NOT NULL
- userId (Key3) — long — 외래 키 → User.userId — NOT NULL
PostLike (postlike)
- postLikeId (Key) — Long — 기본 키 — NOT NULL
- userId (Key2) — long — 외래 키 → User.userId — NOT NULL
- postId (Key3) — long — 외래 키 → Post.postId — NOT NULL
User (user)
- userId (Key) — long — 기본 키 — NOT NULL
- username (Field) — String
- password (Field2) — String
- role (Field3) — Enum