UMC 6th chapter4
Tables (17)
alarm (알림)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 회원 아이디 (member_id) — bigint — Foreign key → member.아이디 — NOT NULL
- 제목 (title) — varchar(40)
- 내용 (content) — varchar(100)
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
alarm_setting (알림 설정)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 설정명 (name) — varchar(30)
food_category (음식 카테고리)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 이름 (name) — varchar(15)
inquiry (문의)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 회원 아이디 (member_id) — bigint — Foreign key → member.아이디 — NOT NULL
- 제목 (title) — varchar(20)
- 내용 (content) — text
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
- 답변 상태 (response_state) — boolean
inquiry_response (문의 답변)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 문의 아이디 (inquiry_id) — bigint — Foreign key → inquiry.아이디 — NOT NULL
- 제목 (title) — varchar(20)
- 내용 (content) — text
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
member (회원)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 이메일 (email) — varchar(40)
- 이름 (name) — varchar(10)
- 성별 (gender) — char(1)
- 생년월일 (birth) — char(8)
- 우편번호 (zipcode) — char(6)
- 주소 (address) — varchar(30)
- 로그인 방법 (social_type) — char(1)
- 포인트 (point) — bigint
- 미션 달성 개수 (mission_count) — int
- 핸드폰 번호 (phone) — char(11)
- 탈퇴 여부 (delete) — boolean
member_alarm_setting (회원 알림 설정)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 알림 설정 아이디 (alarm_setting_id) — bigint — Foreign key → alarm_setting.아이디 — NOT NULL
- 회원 아이디 (member_id) — bigint — Foreign key → member.아이디 — NOT NULL
member_mission (회원 미션)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 회원 아이디 (member_id) — bigint — Foreign key → member.아이디 — NOT NULL
- 미션 아이디 (mission_id) — bigint — Foreign key → mission.아이디 — NOT NULL
- 완료여부 (complete) — boolean
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
member_term (회원 약관 동의)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 약관 아이디 (term_id) — int — Foreign key → term.아이디 — NOT NULL
- 회원 아이디 (member_id) — bigint — Foreign key → member.아이디 — NOT NULL
mission (미션)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 식당 아이디 (restaurante_id) — bigint — Foreign key → restaurant.아이디 — NOT NULL
- 적립 포인트 (point) — bigint
- 달성 금액 (price) — bigint
- 종료일 (end_date) — datetime
prefer_food (선호 음식)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 음식 카테고리 아이디 (food_category_id) — bigint — Foreign key → food_category.아이디 — NOT NULL
- 회원 아이디 (member_id) — bigint — Foreign key → member.아이디 — NOT NULL
restaurant (식당)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 식당 카테고리 아이디 (restaurant_category_id) — bigint — Foreign key → restaurant_category.아이디 — NOT NULL
- 식당이름 (name) — varchar(30)
- 사장님 구분번호 (owner_code) — char(8)
restaurant_category (식당 카테고리)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 이름 (name) — varchar(15)
restaurante_img (식당 이미지)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 식당 아이디 (restaurant_id) — bigint — Foreign key → restaurant.아이디 — NOT NULL
- 사진 경로 (url) — varchar(255)
- 사진 순서 (index) — int
review (리뷰)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 회원 아이디 (member_id) — bigint — Foreign key → member.아이디 — NOT NULL
- 식당 아이디 (restaurant_id) — bigint — Foreign key → restaurant.아이디 — NOT NULL
- 별점 (rating) — float
- 내용 (content) — text
- 생성일시 (created_at) — datetime
- 수정일시 (updated_at) — datetime
review_img (리뷰 이미지)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 사진 경로 (url) — varchar(255)
- 사진 순서 (index) — int
- 리뷰 아이디 (review_id) — bigint — Foreign key → review.아이디 — NOT NULL
term (약관)
- 아이디 (id) — bigint — Primary key — NOT NULL
- 약관명 (name) — varchar(20)
- 약관내용 (content) — text