CONNECT
Tables (6)
Board (게시글)
- id (게시글 일련번호) — Long — Primary key — NOT NULL
- title (제목) — String
- content (본문) — String
- date (게시글 작성 시간) — Date
- likes (좋아요 누른 사람 목록) — List<Long>
- authorId (게시글 작성자) — Long — Foreign key → Users.userId — NOT NULL
Chat (채팅)
- id (채팅 일련번호) — Long — Primary key — NOT NULL
- roomId (채팅방 일련번호) — Long — Foreign key → ChatRoom.id — NOT NULL
- sender (작성자) — User
- message (채팅 본문) — String
- sendDate (채팅 작성 시간) — Date
ChatRoom (채팅방)
- id (채팅방 일련번호) — Long — Primary key — NOT NULL
- participates (참여자 목록) — List<Long> — Foreign key → Users.userId — NOT NULL
Comment (댓글)
- id (댓글 일련번호) — Long — Primary key — NOT NULL
- content (본문) — String
- date (댓글 작성 시간) — Date
- likes (좋아요 누른 사람 목록) — List<Long>
- boardId (게시글 일련번호) — Long — Foreign key → Board.id — NOT NULL
Follow (팔로우)
- id (팔로우 일련번호) — Long — Primary key — NOT NULL
- fromUser (팔로우 하는 유저의 일련번호) — Long — Foreign key → Users.userId — NOT NULL
- toUser (팔로우된 유저의 일련번호) — Long — Foreign key → Users.userId — NOT NULL
Users (유저)
- userId (유저 일련번호) — Long — Primary key — NOT NULL
- name (이름) — String
- password (비밀번호) — String
- explain (자기소개) — String
- birth (생년월일) — Long