UMC
테이블 (11)
리뷰 (review)
- Key (id) — bigint — 기본 키 — NOT NULL
- PK (member_id) — bigint — 외래 키 → 회원 정보.id — NOT NULL — 자동 증가 어노테이션 사용
- PK (store_id) — bigint — 외래 키 → 상점.Key — NOT NULL
- 본문 (body) — text
- 별점 (score) — float — NOT NULL — 리뷰 하나당 점수
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
리뷰 이미지 (review_image)
- Key (id) — bigint — 기본 키 — NOT NULL
- PK (review_id) — bigint — 외래 키 → 리뷰.Key — NOT NULL
- 이미지 주소 (image_url) — text( — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
미션 (mission)
- Key (id) — bit int — 기본 키 — NOT NULL
- PK (store_id) — bigint — 외래 키 → 상점.Key — NOT NULL
- 보상 (reward) — int — NOT NULL
- 미션 상세내용 (mission_spec) — text — NOT NULL
- 마감일자 (deadline) — datetime(6) — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
상점 (store)
- Key (id) — bigint — 기본 키 — NOT NULL
- PK (region_id) — big int — 외래 키 → 지역.Key — NOT NULL
- 이름 (name) — varchar(50) — NOT NULL
- 가게 총점 (score) — float — NOT NULL — 리뷰 총 평점
- 주소 (address) — varchar(50) — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
선호하는 음식 (food_category)
- Key (id) — bigint — 기본 키 — NOT NULL
- 이름 (name) — varchar(20) — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
알람설정 종류들 (terms)
- Key (id) — bitint — 기본 키 — NOT NULL
- 알림설정 상세내용 (terms_spec) — text — NOT NULL
- 체크여부 (optional) — bollean — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
조인 테이블 (member_prefer)
- Key (id) — 기본 키 — NOT NULL
- PK (member_id) — bitint — 외래 키 → 회원 정보.id — NOT NULL — 자동 증가 어노테이션 사용
- PK (category_id) — 외래 키 → 선호하는 음식.Key — NOT NULL
- 생성일자 (created_at) — NOT NULL
- 업데이트 일자 (updated_at) — NOT NULL
조인 테이블 (member_agree)
- Key (id) — 기본 키 — NOT NULL
- PK (user_id) — bitint — 외래 키 → 회원 정보.id — NOT NULL — 자동 증가 어노테이션 사용
- PK (terms_id) — bitint — 외래 키 → 알람설정 종류들.Key — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
조인테이블 (member_mission)
- Key (id) — bit int — 기본 키 — NOT NULL
- PK (member_id) — bitint — 외래 키 → 회원 정보.id — NOT NULL — 자동 증가 어노테이션 사용
- PK (misson_id) — bit int — 외래 키 → 미션.Key — NOT NULL
- 미션 상태 (status) — varchar(15) — NOT NULL — 미진행, 진행중,완료
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
지역 (region)
- Key (id) — big int — 기본 키 — NOT NULL
- 이름 (name) — varchar(50) — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
회원 정보 (member)
- id — bitint — 기본 키 — NOT NULL — 자동 증가 어노테이션 사용
- 이름 (name) — varchar(20) — NOT NULL
- 성별 (gender) — varchar(7) — NOT NULL
- 나이 (age) — int — NOT NULL
- 주소 (address) — varchar(40) — NOT NULL
- 상세주소 (spec_address) — varchar(40) — NOT NULL
- 멤버상태 (status) — varchar(15) — NOT NULL
- 마지막 활동 시간 (inactive_date) — datetime — NOT NULL
- 소셜로그인 타입 (social_type) — varchar(10)
- 이메일 (email) — varchar(50)
- 포인트 (point) — int — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL