chatting
테이블 (4)
유저 (users)
- id (PK) — NOT NULL — 기본 키 — NOT NULL
- username (유저 이름) — NOT NULL
- description (유저 설명) — NOT NULL
- createdAt (회원 가입 시간) — NOT NULL
- updatedAt (회원 정보 변경 시간) — NOT NULL
- deletedAt (회원 탈퇴 시간) — NOT NULL
채팅 기록 (chatting_message)
- id (PK) — NOT NULL — 기본 키 — NOT NULL
- chattingRommId (채팅방 아이디) — NOT NULL — 외래 키 → 채팅방.id — NOT NULL
- userId (채팅 메시지 생성 유저) — NOT NULL — 외래 키 → 유저.id — NOT NULL
- content (채팅 메시지) — NOT NULL
- createdAt (채팅 메시지 생성 시간) — NOT NULL
- updatedAt (채팅 메시지 업데이트 시간) — NOT NULL
- deletedAt (채팅 메시지 삭제 시간) — NULL
채팅방 (chatting_rooms)
- id (PK) — NOT NULL — 기본 키 — NOT NULL
- title (채팅방 제목) — NOT NULL
- description (채팅방 설명) — NOT NULL — NOT NULL
- createdBy (채팅방 생성자) — NOT NULL
- createdAt (채팅방 생성시간) — NOT NULL
- updatedAt (채팅방 업데이트 시간) — NOT NULL
- deletedAt (채팅방 삭제 시간) — NULL
- numActiveUsersHalfHour (최근 30분 접속자 수) — NULL
- lastChattingMessage (마지막 메시지) — NULL
채팅방_유저 (chatting_room_users)
- id (PK) — NOT NULL — 기본 키 — NOT NULL
- userId (채팅방 접속 유저) — NOT NULL — 외래 키 → 유저.id — NOT NULL
- chattingRoomId (채팅방 아이디) — NOT NULL — 외래 키 → 채팅방.id — NOT NULL
- createdAt (채팅방 접속 시간) — NOT NULL
- updatedAt (마지막 활동 시간) — NOT NULL
- deletedAt (채팅방 나간 시간) — NULL