divelink
테이블 (11)
강사 (trainer)
- 강사 식별자 (trainerId) — int — 기본 키 — NOT NULL
- 유저 식별자 (uid) — string — 외래 키 → 유저.유저 식별자 — NOT NULL
- 강습 빈도 (trainingFrequency) — string — NOT NULL — 주중 / 주말 / 주중+주말 / 협의가능 단일
- 관심 분야 (interestAreas) — List<string> — NOT NULL — training / fun diving / 친목활동 복수
- 가능 레벨 (teachableLevels) — List<string> — NOT NULL — 레벨 1~4 / 강사 / 키즈 / 머메이드 / 수중촬영 복수
- 활동 지역 (operationArea) — List<string> — NOT NULL
- 발급 가능 라이센스 (certifiableLicenses) — List<string> — NOT NULL
- 성향 (teachingStyle) — List<string> — NOT NULL
- mbti — string
- 생성 시간 (createdAt) — timestamp — NOT NULL
게시판 (board)
- 게시글 식별자 (postId) — int — 기본 키 — NOT NULL
- 유저 식별자 (uid) — reference — 외래 키 → 유저.유저 식별자 — NOT NULL
- 작성시간 (createdAt) — timestamp — NOT NULL
- 조회수 (viewCount) — int — NOT NULL
- 제목 (title) — string — NOT NULL
- 내용 (content) — string — NOT NULL
- 사진 (images) — List<string>
- 수정시간 (updatedAt) — timestamp
- 삭제시간 (deletedAt) — timestamp
- 신고 수 (reportCount) — int — NOT NULL
그룹채팅방 (group_chats)
- 그룹채팅방 식별자 (id) — string — 기본 키 — NOT NULL
- 타입 (type) — string — NOT NULL — level, pool, region, organization
- 참여자 리스트 (members) — List<ref>
- 채팅방 이름 (title) — string — NOT NULL
- 레벨 범위 (level_range) — List<string> — type: level인 경우 존재
- 풀장 지역 (pool_region) — string — type: pool인 경우 존재
- 이미지 (image) — string
댓글 (comment)
- 댓글 식별자 (commentId) — int — 기본 키 — NOT NULL
- 게시글 식별자 (postId2) — int — 외래 키 → 정보 게시판.게시글 식별자 — NOT NULL
- 게시글 식별자 (postId) — int — 외래 키 → 게시판.게시글 식별자
- 작성시간 (createdAt) — timestamp — NOT NULL
- 내용 (content) — string — NOT NULL
- 삭제시간 (deletedAt) — timestamp
- 신고 수 (reportCount) — int — NOT NULL
메세지 (message)
- 채팅방 식별자 (roomId) — int — 외래 키 → 채팅방.채팅방 식별자 — NOT NULL
- 유저 식별자 (uid) — string — 외래 키 → 유저.유저 식별자 — NOT NULL
- 보낸시간 (sendTime) — timestamp — NOT NULL
- 내용 (content) — string — NOT NULL — 텍스트 / 이미지 링크
- 이미지 여부 (isImage) — bool — NOT NULL
- 그룹채팅방 식별자 (id2) — string — 외래 키 → 그룹채팅방.그룹채팅방 식별자 — NOT NULL
실시간 갱신기록 (new performance)
- Key — 기본 키 — NOT NULL
- 갱신시간 (time) — timestamp — NOT NULL
- 갱신유저 (user) — user ref — NOT NULL
- 갱신 종목 (game) — string — NOT NULL
- 갱신 기록 (score) — int — NOT NULL
알림 기록 (notification_history)
- 유저 식별자 (uid) — string — 외래 키 → 유저.유저 식별자 — NOT NULL
- 알림 타입 (type) — string — NOT NULL — 좋아요 / 채팅 / 댓글?
- 생성 시간 (createdAt) — timestamp — NOT NULL
- 내용 (content) — string
유저 (user)
- 유저 식별자 (uid) — string — 기본 키 — NOT NULL
- 관리자 여부 (isAdmin) — bool — NOT NULL
- 가입일 (createdAt) — timestamp — NOT NULL
- 이름 (name) — string — NOT NULL
- 프로필사진 (image) — string
- 닉네임 (nickname) — string — NOT NULL — 중복 허용 x
- 소개글 (description) — string
- 공개여부 (visibleSetting) — Map<String, bool> — NOT NULL — sns, 성별, 지역
- 팔로우 (follow) — ref
- 출생년도 (birth) — datetime — NOT NULL
- 지역 (region) — string — NOT NULL
- 경력 (experience) — string
- PB (performances) — Map<string, int> — NOT NULL — 종목별 기록(STA, DYN ...)
- 신고 수 (reportCount) — int — NOT NULL
- 삭제 시간 (deletedAt) — timestamp
- 추천인 (referrer) — string
- 단체 (organization) — string
- 크루 (crew) — string
- 자격증 (license) — string
정보 게시판 (info_board)
- 게시글 식별자 (postId) — int — 기본 키 — NOT NULL
- 유저 식별자 (uid) — reference — 외래 키 → 유저.유저 식별자 — NOT NULL
- 작성시간 (createdAt) — timestamp — NOT NULL
- 조회수 (viewCount) — int — NOT NULL
- 대회명 (title) — string — NOT NULL
- 장소 (content) — string — NOT NULL
- 사진 (images) — List<string>
- 날짜 (date) — List<datetime> — NOT NULL
- 대상 — string — NOT NULL
- 종목 (Field) — string — NOT NULL
- 수정시간 (updatedAt) — timestamp — NOT NULL
- 삭제시간 (deletedAt) — timestamp — NOT NULL
- 타입 (type) — string — competition / tour
- 신고 수 (reportCount) — int — NOT NULL
채팅방 (chat)
- 채팅방 식별자 (id) — int — 기본 키 — NOT NULL
- 제목 (title) — string
- 참여자 리스트 (users) — List<ref> — NOT NULL
- 이미지 (image) — string
- 생성자 (createdBy) — ref — NOT NULL
팔로우 (follow)
- 유저 식별자 (uid) — string — 외래 키 → 유저.유저 식별자 — NOT NULL
- 팔로워 (follower) — List<ref> — 팔로워 유저정보 ref 리스트
- 팔로잉 (following) — List<ref> — 팔로잉 유저정보 ref 리스트