PromiseNow
Tables (9)
Availability
- 선택시간대id (availablity_id) — long — Primary key — NOT NULL
- 룸유저id (room_user_id) — long — Foreign key → RoomUser.룸유저id — NOT NULL
- 사용자가 선택한 시간대 (timedata) — TEXT — NOT NULL
- 날짜 (date) — DATE — NOT NULL
Chat
- 메세지아이디 (message_id) — long — Primary key — NOT NULL
- 룸유저id (room_user_id) — long — Foreign key → RoomUser.룸유저id — NOT NULL
- 방번호 (room_id) — long — Foreign key → RoomUser.방번호 — NOT NULL
- 유저아이디 (user_id) — long — Foreign key → RoomUser.유저아이디 — NOT NULL
- 내용 (content) — TEXT — NOT NULL
- 메세지 타입 (type) — ENUM — NOT NULL
- 보낸날짜 (sent_date) — DATETIME — NOT NULL
Image
- 이미지아이디 (image_id) — long — Primary key — NOT NULL
- 업로드 위치 (image_location) — Hash(lat, lng, ts) — NOT NULL
- 이미지파일 (image_url) — VARCHAR(255) — NOT NULL
- 위도 (lat) — double
- 경도 (lng) — double
- 메세지아이디 (message_id) — long — Foreign key → Chat.메세지아이디 — NOT NULL
LeaderBoard(Redis)
- 방번호 (roomId) — UUID — Primary key — NOT NULL
- Field
- Field2
- Field3
Leaderboard
- 유저닉네임 (user_nickname) — varchar(255) — Primary key — NOT NULL
- 방번호 (room_id) — long — Foreign key → Room.방번호 — NOT NULL
- 순위 (sortOrder) — int — NOT NULL
Room
- 방번호 (room_id) — long — Primary key — NOT NULL
- 방제목 (room_title) — varchar(255) — NOT NULL
- 방상태 (room_state) — ENUM — NOT NULL
- 참여코드 (invite_code) — varchar(32) — NOT NULL
- 약속일자 (location_date) — datetime
- 약속시간 (location_time) — time
- 약속장소 (location_name) — varchar(255)
- 위도 (location_lat) — double
- 경도 (location_lng) — double
- 약속예정기간 시작 (start_date) — date
- 약속예정기간 끝 (end_date) — date
RoomUser
- 룸유저id (room_user_id) — long — Primary key — NOT NULL
- 방번호 (room_id) — long — Foreign key → Room.방번호 — NOT NULL
- 유저아이디 (user_id) — long — Foreign key → Users.유저 아이디 — NOT NULL
- 유저프로필 (profile_image) — varchar(255)
- 유저닉네임 (nickname) — varchar(255) — NOT NULL
- 알림여부 (is_agreed) — boolean — NOT NULL
- 순위 (sortOrder) — int
Users (users)
- 유저 아이디 (user_id) — long — Primary key — NOT NULL
- 가입 일자 (join_date) — date — NOT NULL
roomId (user(Redis))
- 출발위치 및 시각 (start_location) — Hash(lat, lng, ts)
- 현재 위치 및 시각 (location) — Hash(lat, lng, ts)
- 온라인 여부 (online) — String(TTL)
- 현재 속도 (current_velocity) — int