인스타그램
테이블 (13)
WebSocketMessage (CopyOfDirectMessage)
- 메시지 ID (wsMessageId) — long — 기본 키 — NOT NULL
- 방 ID (wsRoomId) — long — 외래 키 → WebSocketRoom.방 ID — NOT NULL
- 메시지 보낸 사람 (userId) — long — 외래 키 → 회원.회원 일련 번호 — NOT NULL
- 메시지 (message) — NOT NULL
- 메시지 보낸 시간 (createdAt) — timestamp — NOT NULL
- 메시지 타입 (messageType) — enum — NOT NULL
WebSocketRoom (CopyOfUntitled)
- 방 ID (wsRoomId) — long — 기본 키 — NOT NULL
- 방이름 (roomName)
- 요약 (summary)
- 생성시간 (createdAt) — timestamp — NOT NULL
- 요약 업데이트 시간 (updatedAt) — timestamp — NOT NULL
- 상태 (status) — enum — NOT NULL — 알림 o/x
refresh_token (Untitled)
- Key — 기본 키 — NOT NULL
- Field
- Field2
검색 (Search)
- Key (searchId) — 기본 키 — NOT NULL
게시글 (Post)
- Key (postId) — long — 기본 키 — NOT NULL
- 작성자 (userId) — long — 외래 키 → 회원.회원 일련 번호 — NOT NULL
- Field (phrase)
- Field (location) — 위치
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — timestamp
- Field (status) — enum — 보관함 / 삭제
- Field (hashTags)
게시글좋아요 (PostLike)
- Key (postLikeId) — long — 기본 키 — NOT NULL
- Key (postId) — long — 외래 키 → 게시글.Key — NOT NULL
- Field (userId) — long — NOT NULL
게시글컨텐츠 (PostContent)
- Key — 기본 키 — NOT NULL
- Key (postId) — long — 외래 키 → 게시글.Key — NOT NULL
- Field (content) — NOT NULL
스토리 (Story)
- Key (storyId) — long — 기본 키 — NOT NULL
- Key (userId) — long — 외래 키 → 회원.회원 일련 번호 — NOT NULL
- Field (content)
- Field2 (phrase)
- Field3 (location)
- Field4 (hashTag)
- Field (status) — enum — 보관함 / 삭제
- Field (createdAt) — timestamp — NOT NULL
스토리좋아요 (StoryLike)
- Key (storyLikeId) — long — 기본 키 — NOT NULL
- Key (storyId) — long — 외래 키 → 스토리.Key — NOT NULL
- Field (userId) — long — NOT NULL
태그 (Tag)
- Key (tagId) — long — 기본 키 — NOT NULL
- Field (taggedUserId)
- Field (status) — enum — NOT NULL — post / story / comment
- Field (postId) — long
- Field2 (storyId) — long
- Field3 (commentId) — long
팔로우 (follow)
- 팔로우 일련 번호 (followId) — long — 기본 키 — NOT NULL
- 회원 일련 번호 (userId) — long — 외래 키 → 회원.회원 일련 번호 — NOT NULL
- 팔로잉한 회원 일련 번호 (followingUserId) — NOT NULL
- Field (status) — NOT NULL — 친한친구 o/x
회원 (User)
- 회원 일련 번호 (userId) — long — 기본 키 — NOT NULL
- Field (name)
- Field2 (nickname) — 중복x
- Field3 (bio)
- Field4 (link)
- Field5 (img)
- Field6 (password)
- Field7 (email) — 중복x
- Field8 (phone)
- Field9 (gender) — enum
- Field10 (birth)
- Field11 (userJoinType) — enum — NOT NULL — 회원 가입 유형
- Field (visibilityStatus) — enum — NOT NULL — 공개/ 비공개
- Field (status) — enum — NOT NULL — ACTIVE/ UNACTIVE
- Field (createdAt) — timestamp — NOT NULL
- Field (updatedAt) — timestamp
- Field (RoleType) — enum — NOT NULL