UserChat(re)
테이블 (3)
User (사용자)
- 고유키 (id) — long — 기본 키 — NOT NULL
- 이름 (username) — String
- 이메일 (email) — String
- 비밀번호 (password) — String
- 좋아요 수 (likeCount) — int
메세지 (ChatMessage)
- 고유키 (message_id) — long — 기본 키 — NOT NULL
- 채팅방번호 (room_id) — long — 외래 키 → 채팅방.고유키 — NOT NULL
- 보낸사람 (sender) — String
- 메세지 (message) — String
- 메세지타입 (type) — MessageType
- 보낸시간 (sendTime) — LocalDateTime
채팅방 (ChatRoom)
- 고유키 (roomId) — long — 기본 키 — NOT NULL
- 유저아이디 (user_id) — long — 외래 키 → User.고유키 — NOT NULL
- 방이름 (roomName) — String
- 방인원 (userCount) — int
- 생성시간 (createdAt) — LocalDateTime
- 마지막메세지시간 (lastMessageTime) — LocalDateTime
- 마지막메세지 (lastMessage) — String