B310 ERD CLOUD
Tables (9)
block (차단)
- 차단 id (block_idx) — Long — Primary key — NOT NULL
- 유저 id (user_idx1) — Long — Foreign key → user.유저 id — NOT NULL
- 유저 id (user_idx2) — Long — Foreign key → user.유저 id — NOT NULL
brush (스침)
- 스침 id (brush_idx) — Long — Primary key — NOT NULL
- 유저 id (user_idx1) — Long — Foreign key → user.유저 id — NOT NULL — user_idx1 < user_idx2
- 유저 id (user_idx2) — Long — Foreign key → user.유저 id — NOT NULL
- 장소 id (place_idx) — Long — Foreign key → place.장소 id — NOT NULL
- 메시지 id (message_idx1) — Long — Foreign key → message.메시지 id — user_idx1의 메시지
- 메시지 id (message_idx2) — Long — Foreign key → message.메시지 id — user_idx2의 메시지
- 시간 (created_at) — DATETIME — NOT NULL
emotion (감정)
- 감정 id (emotion_idx) — Long — Primary key — NOT NULL
- 감정 이름 (name) — VARCHAR(255) — NOT NULL
expression (감정표현)
- 감정표현 id (expression_idx) — Long — Primary key — NOT NULL
- 유저 idx (user_idx) — Long — Foreign key → user.유저 id — NOT NULL
- 메시지 idx (message_idx) — Long — Foreign key → message.메시지 id
- 감정 id (emotion_idx) — Long — Foreign key → emotion.감정 id — NOT NULL
- 알림 확인 여부 (is_read) — BOOLEAN — NOT NULL
feedback (피드백)
- 피드백 id (feedback_idx) — Long — Primary key — NOT NULL
- 내용 (content) — VARCHAR(255) — NOT NULL
message (상태 메시지)
- 메시지 id (message_idx) — Long — Primary key — NOT NULL
- 유저 idx (user_idx) — Long — Foreign key → user.유저 id — NOT NULL
- 내용 (content) — VARCHAR(255) — NOT NULL
- 생성 시각 (created_at) — VARCHAR(255) — NOT NULL
- 활성화 여부 (is_active) — BOOLEAN — NOT NULL
- 부적절한 메시지 여부 (is_inappropriate) — BOOLEAN — NOT NULL
place (장소)
- 장소 id (place_id) — Long — Primary key — NOT NULL
- 이름 (name) — VARCHAR(255) — NOT NULL
- 위도 (latitude) — DOUBLE — NOT NULL
- 경도 (longitude) — DOUBLE — NOT NULL
report (신고)
- 신고 id (report_idx) — Long — Primary key — NOT NULL
- 신고한 유저 id (user_idx1) — Long — Foreign key → user.유저 id — NOT NULL
- 신고받은 유저 id (user_idx2) — Long — Foreign key → user.유저 id — NOT NULL
- 신고받은 메시지 id (message_idx) — Long — Foreign key → message.메시지 id — NOT NULL
- 사유 (content) — VARCHAR(255) — NOT NULL
user (유저)
- 유저 id (user_idx) — Long — Primary key — NOT NULL
- 이메일 (email) — VARCHAR(255) — NOT NULL — 구글: GMAIL_ / 애플: APPLE_
- 닉네임 (nickname) — VARCHAR(255) — NOT NULL — 중복 X
- 색깔 (color) — VARCHAR(255) — NOT NULL
- 이모지 (emoji) — VARCHAR(255) — NOT NULL
- 권한 (role) — VARCHAR(255) — NOT NULL — USER, ADMIN
- 활성화 여부 (is_active) — BOOLEAN — NOT NULL
- 애플 id (apple_id) — VARCHAR(255)
- fcm 토큰 (fcm_token) — VARCHAR(255)
- fcm 토큰 만료일 (fcm_token_expiration_date_time) — DATETIME