BuzzNet
Tables (7)
ChatRoom
- 채팅방ID (room_id) — NOT NULL — Primary key — NOT NULL
- 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
- 다른 유저ID (other_id) — NOT NULL
- 채팅방 이름 (room_name) — NOT NULL
- 생성일 (createdAt) — NOT NULL
Comment
- 댓글ID (comment_id) — NOT NULL — Primary key — NOT NULL
- 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
- 게시물ID (feed_id) — NOT NULL — Foreign key → Feed.게시물ID — NOT NULL
- 내용 (constent) — NULL
- 생성일 (createdAt) — NOT NULL
- 수정일 (updatedAt) — NOT NULL
- 대댓글 ID (parent_id) — NOT NULL
Feed
- 게시물ID (feed_id) — NOT NULL — Primary key — NOT NULL
- 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
- 내용 (constent) — NULL
- 게시물 이미지 (feedImage) — NULL
- 생성일 (createdAt) — NOT NULL
- 좋아요 개수 (like_count) — NOT NULL
- 댓글 개수 (comment_count) — NOT NULL
Follow (Untitled)
- 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
- 팔로워ID (follower_id) — NOT NULL
- 팔로우ID (following_id) — NOT NULL
Like
- 좋아요ID (like_id) — NOT NULL — Primary key — NOT NULL
- 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
- 게시물ID (feed_id) — NOT NULL — Foreign key → Feed.게시물ID — NOT NULL
- 좋아요 누른 시간 (likedAt) — NOT NULL
Message
- MessageID (message_id) — NOT NULL — Primary key — NOT NULL
- 채팅방ID (room_id) — NOT NULL — Foreign key → ChatRoom.채팅방ID — NOT NULL
- 유저ID (user_id) — NOT NULL — Foreign key → ChatRoom.유저ID — NOT NULL
- 메시지 (message) — NOT NULL
User (USER)
- 유저ID (user_id) — NOT NULL — Primary key — NOT NULL
- 이메일 (email) — NOT NULL
- 닉네임 (nickname) — NOT NULL
- 프로필 이미지 (profileImage) — NULL
- 비밀번호 (password) — NOT NULL
- 소개 (BIO) — NULL
- 생성일 (createdAt) — NOT NULL