transcendence
테이블 (25)
Refresh-Token (Untitled2)
- RefreshTokenId (refreshTokenId) — bigint — 기본 키 — NOT NULL
- 유저아이디 (UserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
- refreshToken
User (Users)
- 유저아이디 (UserId) — bigint — 기본 키 — NOT NULL
- 인트라 레벨 (Level) — float
- 프로필 사진 (ProfilePhoto) — string
- 닉네임 (nickName) — string
- 자기소개 (SelfIntro) — string
- statusSocketId (Field)
- gameSocketId (Field2)
UserGameScoreInfo (Untitled)
- 유저아이디 (UserId) — bigint — 외래 키 → User.유저아이디 — NOT NULL
- 게임아이디 (GameId) — bigint — 외래 키 → 게임메타정보.게임아이디 — NOT NULL — Auto_increment
- 점수 (Score) — bigInt
_profiles_categories
- A — INTEGER — NOT NULL
- B — INTEGER — NOT NULL
- INDEX — `_profiles_categories_B_index`(`B`)
_profiles_hashtags
- A — INTEGER — NOT NULL
- B — INTEGER — NOT NULL
- INDEX — `_profiles_hashtags_B_index`(`B`)
_reservations_hashtags
- A — INTEGER — NOT NULL
- B — INTEGER — NOT NULL
- INDEX — `_reservations_hashtags_B_index`(`B`)
categories
- id — INTEGER — 기본 키 — NOT NULL
- name — VARCHAR(32) — NOT NULL
hashtags
- id — INTEGER — 기본 키 — NOT NULL
- tag_name — VARCHAR(32) — NOT NULL
mentee_feedbacks
- id — INTEGER — 기본 키 — NOT NULL
- mentee_id — INTEGER — NOT NULL
- mentor_id — INTEGER — NOT NULL
- reservation_id — INTEGER — NOT NULL
- rating — FLOAT — NOT NULL
- content — TEXT
- created_at — TIMESTAMP(0) — NOT NULL
- updated_at — TIMESTAMP(0)
mentor_feedbacks
- id — INTEGER — 기본 키 — NOT NULL
- mentee_id — INTEGER — NOT NULL
- mentor_id — INTEGER — NOT NULL
- reservation_id — INTEGER — NOT NULL
- rating — FLOAT — NOT NULL
- created_at — TIMESTAMP(0) — NOT NULL
- updated_at — TIMESTAMP(0)
mentor_profiles
- id — INTEGER — 기본 키 — NOT NULL
- user_id — INTEGER — NOT NULL
- shortDescription — VARCHAR(255)
- description — TEXT
- isHide — BOOLEAN — NOT NULL
- created_at — TIMESTAMP(0) — NOT NULL
- updated_at — TIMESTAMP(0)
reservations
- id — INTEGER — 기본 키 — NOT NULL
- mentor_id — INTEGER — NOT NULL
- mentee_id — INTEGER — NOT NULL
- category_id — INTEGER — NOT NULL
- request_message — TEXT
- status — ENUM('REQUEST', 'ACCEPT', 'REJECT', 'CANCEL', 'COMPLETE') — NOT NULL
- created_at — TIMESTAMP(0) — NOT NULL
- updated_at — TIMESTAMP(0)
users
- id — INTEGER — 기본 키 — NOT NULL
- email — VARCHAR(255) — NOT NULL
- nickname — VARCHAR(128) — NOT NULL
- profile_image — TEXT — NOT NULL
- role — ENUM('ADMIN', 'USER') — NOT NULL
- is_mentor — BOOLEAN — NOT NULL
- created_at — TIMESTAMP(0) — NOT NULL
- updated_at — TIMESTAMP(0)
게임메타정보 (GameMetaInfo)
- 게임아이디 (GameId) — bigint — 기본 키 — NOT NULL — Auto_increment
- 시작시간 (CreatedAt) — Date — NOT NULL
- 맵정보 (MapInfo) — string — NOT NULL
그룹채팅방 (GroupChat)
- 그룹채팅방ID (GroupChatId) — bigint — 기본 키 — NOT NULL
- 소유자 (OwnerId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL — 나갈때까지 소유자.
- 채팅방생성일 (CreatedAt) — Date
- 채팅방타입 (LevelOfPublicity) — Enum — NOT NULL — Enum(Public, Protected)
- 비밀번호 (Password) — String — Hash화 필요
- 최대인원 (MaxParticipent) — BigInt — NOT NULL — >= 3
- 채팅방ID(소켓) (RoomSocketId) — String — NOT NULL — gatewayInit에서 초기화(room + groupChatId
그룹채팅방_관리자 조인테이블 (GroupChatAdminJoinTable)
- 그룹채팅방ID (GroupChatId) — bigint — 외래 키 → 그룹채팅방.그룹채팅방ID — NOT NULL
- 유저아이디 (UserId) — bigint — 외래 키 → User.유저아이디 — NOT NULL
그룹채팅방메시지 (GroupMessage)
- 그룹메시지ID (GroupMessageId) — bigint — 기본 키 — NOT NULL
- MessageInfoId — bigInt — 외래 키 → 메세지 정보.MessageInfoId — NOT NULL
- 받은그룹채팅방ID (ToGroupChatId) — bigInt — 외래 키 → 그룹채팅방.그룹채팅방ID — NOT NULL — Index
누구랑 친구임? (FriendWith)
- 유저아이디 (UserId) — bigint — 외래 키 → User.유저아이디 — NOT NULL
- 유저아이디 (UserId2) — bigint — 외래 키 → User.유저아이디 — NOT NULL
다이렉트 메세지 (DirectMessage)
- 개인메세지ID (DirectMessageId) — bigint — 기본 키 — NOT NULL
- MessageInfoId — bigInt — 외래 키 → 메세지 정보.MessageInfoId — NOT NULL
- 받은 유저의 아이디 (ToUserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
메세지 정보 (MessageInfo)
- MessageInfoId — bigint — 기본 키 — NOT NULL
- 보낸유저아이디 (FromUserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
- 보낸시간 (CreatedAt) — Date — NOT NULL
- 내용 (Message) — String — NOT NULL
- 읽었나 (IsRead) — SmallInt — NOT NULL
요청 (Request)
- 요청ID (Friend_PK) — bigint — 기본 키 — NOT NULL
- 요청받은사람 (RequestedUserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
- 요청한사람 (RequestUserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
- 요청시간 (CreatedAt) — Date — NOT NULL
- 수락유무 (IsAccepted) — Enum — NOT NULL — Enum(Y,N,P)
- 요청타입 (RequestType) — Enum — NOT NULL — 0,1,2(FRIEND,GAME,CHAT)
- 알람유무 (IsAlarmed) — Enum — NOT NULL — Enum(A, NA)
차단목록_유저_매핑 (BlockListUserMap)
- 블록아이디 (BlockUserListId) — bigint — 기본 키 — NOT NULL
- Block한 유저 (BlockUserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
- Block당한유저 (BlockedUserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
채팅방 뮤트정보 (GroupChatMute)
- 그룹채팅방ID (GroupChatId) — bigint — 외래 키 → 그룹채팅방.그룹채팅방ID — NOT NULL
- 유저아이디 (UserId) — bigint — 외래 키 → User.유저아이디 — NOT NULL
채팅방_밴유저 조인테이블 (banUserJoinTable)
- 그룹채팅방ID (GroupChatId) — bigInt — 외래 키 → 그룹채팅방.그룹채팅방ID — NOT NULL
- 밴당한 유저ID (BannedUserId) — bigInt — 외래 키 → User.유저아이디 — NOT NULL
채팅방_유저 조인테이블 (GroupChatUserJoinTable)
- 유저아이디 (UserId) — bigint — 외래 키 → User.유저아이디 — NOT NULL
- 그룹채팅방ID (GroupChatId) — bigint — 외래 키 → 그룹채팅방.그룹채팅방ID — NOT NULL