modak
Tables (9)
BaseEntity (모든 엔티티 공통)
- created_at (생성 시간) — TIMESTAMP
- updated_at (수정 시간) — TIMESTAMP
Campfire (모닥불)
- id (Key) — BIGINT — Primary key — NOT NULL
- today_image_id (오늘의 사진 아이디) — BIGINT — Foreign key → LogImage.id — NOT NULL
- pin (모닥불 핀) — INT
- name (모닥불 이름) — VARCHAR
Emote (사진에 남기는 감정 표현)
- id (Key) — BIGINT — Primary key — NOT NULL
- log_image_id (이미지 아이디) — BIGINT — Foreign key → LogImage.id — NOT NULL
- member_id (멤버 아이디) — BIGINT — Foreign key → Member.id — NOT NULL
- emotion (감정 표현) — VARCHAR
Location (위치 정보)
- id (Key) — BIGINT — Primary key — NOT NULL
- address (주소) — VARCHAR
- min_latitude (최소 위도) — DOUBLE
- max_latitude (최대 위도) — DOUBLE
- min_longitude (최소 경도) — DOUBLE
- max_longitude (최대 경도) — DOUBLE
Log (모닥불에 업로드된 장작)
- id (Key) — BIGINT — Primary key — NOT NULL
- campfire_id (모닥불 아이디) — BIGINT — Foreign key → Campfire.id — NOT NULL
- location_id (위치정보 아이디) — BIGINT — Foreign key → Location.id — NOT NULL
- start_at (시간 시간) — TIMESTAMP
- end_at (종료 시간) — TIMESTAMP
LogImage (사진)
- id (Key) — BIGINT — Primary key — NOT NULL
- log_id (장작 아이디) — BIGINT — Foreign key → Log.id — NOT NULL
- member_id (업로더 아이디) — BIGINT — Foreign key → Member.id — NOT NULL
- name (이미지 이름) — VARCHAR
- latidude (위도) — DOUBLE
- longitude (경도) — DOUBLE
- taken_at (촬영시간) — TIMESTAMP
Member (회원)
- id (Key) — BIGINT — Primary key — NOT NULL
- client_id (회원 고유 값) — VARCHAR
- social_type (소셜 로그인 타입) — SocialType — NOT NULL — KAKAO, GOOGLE, APPLE, NAVER
- nickname (닉네임) — VARCHAR — NOT NULL
- device_token (기기 디바이스 토큰) — VARCHAR
- permission_role (Field) — PermissionRole
MemberCampfire (회원과 모닥불의 관계 테이블)
- member_id (회원 아이디) — BIGINT — Foreign key → Member.id — NOT NULL
- campfire_id (모닥불 아이디) — BIGINT — Foreign key → Campfire.id — NOT NULL
RefreshToken (Untitled)
- id (Key) — BIGINT — Primary key — NOT NULL
- expiration_date (만료 날짜) — TIMESTAMP
- token (토큰) — VARCHAR(500)
- client_id (사용자 식별자) — VARCHAR