UMC_1week
Tables (11)
food_category
- 음식식별번호 (id) — int — Primary key — NOT NULL
- 음식이름 (name) — varchar(20)
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
member
- 유저식별번호 (id) — bigint — Primary key — NOT NULL
- 회원이름 (name) — varchar(15)
- (profile_image) — varchar(100)
- 성별 (gender) — varchar(10)
- 주소 (address) — text
- 생년원일 (birth) — date
- 이메일 (email) — varchar(50)
- Field (phone_auth) — boolean
- 휴대폰 번호 (phone_num) — varchar(20)
- 보유포인트 (points) — bigint
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
- 유저 상태 (status) — varchar(15)
- 비활성화 시점 (inactive_date) — datetime
- Field (social_type) — varchar(255)
- Field (spec_address) — varchar(40)
member_agree
- id — bigint — Primary key — NOT NULL
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
- 유저식별번호 (member_id) — bigint — Foreign key → member.유저식별번호 — NOT NULL
- 약관식별번호 (term_id) — bigint — Foreign key → terms.약관식별번호 — NOT NULL
member_mission (user_mission)
- 미션식별번호 (id) — bigint — Primary key — NOT NULL
- 유저식별번호 (member_id) — bigint — Foreign key → member.유저식별번호 — NOT NULL
- 미션식별번호 (mission_id) — bigint — Foreign key → mission.미션식별번호 — NOT NULL
- 진행 상태 (status) — varchar(10)
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
member_prefer
- id — bigint — Primary key — NOT NULL
- 음식식별번호 (food_id) — int — Foreign key → food_category.음식식별번호 — NOT NULL
- 유저식별번호 (member_id) — bigint — Foreign key → member.유저식별번호 — NOT NULL
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
mission
- 미션식별번호 (id) — bigint — Primary key — NOT NULL
- 미션이름 (name) — varchar(50)
- 미션내용 (description) — text
- 미션 마감 기간 (deadline) — date
- 부여포인트 (point) — int
- 가게식별번호 (store_id) — bigint — Foreign key → store.가게식별번호 — NOT NULL
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
region
- 지역식별번호 (id) — bigint — Primary key — NOT NULL
- 지역이름 (name) — varchar(30)
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
review
- 리뷰식별번호 (id) — bigint — Primary key — NOT NULL
- 리뷰 내용 (content) — text
- 평점 (rating) — int
- 유저식별번호 (member_id) — bigint — Foreign key → member.유저식별번호 — NOT NULL
- 가게식별번호 (store_id) — bigint — Foreign key → store.가게식별번호 — NOT NULL
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
review_image
- id — bigint — Primary key — NOT NULL
- 이미지 (image_url) — text
- 리뷰식별번호 (review_id) — bigint — Foreign key → review.리뷰식별번호 — NOT NULL
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
store
- 가게식별번호 (id) — bigint — Primary key — NOT NULL
- 가게이름 (name) — varchar(50)
- 지역식별번호 (region_id) — bigint — Foreign key → region.지역식별번호 — NOT NULL
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)
terms
- 약관식별번호 (id) — bigint — Primary key — NOT NULL
- 약관 (title) — varchar(20)
- 약관 설명 (description) — text
- 필수/선택 (optional) — boolean
- 생성시간 (created_at) — datetime(6)
- 마지막 업데이트 시간 (updated_at) — datetime(6)