UMC8th_week1
Tables (12)
Food (음식)
- 선호음식idx (idx) — NOT NULL — Primary key — NOT NULL
- 음식이름 (food_name) — NOT NULL
Member (사용자)
- 사용자idx (idx) — NOT NULL — Primary key — NOT NULL
- 사용자이름 (member_name) — NOT NULL
- 이메일 (member_email) — NOT NULL
- 성별 (member_gender) — NOT NULL
- 생년월일 (member_birth) — NOT NULL
- 주소 (member_addr) — NOT NULL
- 내포인트 (point) — NOT NULL
- 생성일자 (created_at) — NOT NULL
- 상태 (status) — NOT NULL
- 비활성시간 (inactive_at) — NULL
- 로그인수단 (social_type) — NOT NULL
- 리프레시토큰 (refresh_token) — NOT NULL
Member_Like_Food (사용자 선호 음식)
- 사용자 선호음식 idx (idx) — NOT NULL — Primary key — NOT NULL
- 사용자idx (member_idx) — NOT NULL — Foreign key → Member.사용자idx — NOT NULL
- 선호음식idx (food_idx) — NOT NULL — Foreign key → Food.선호음식idx — NOT NULL
Member_Mission (사용자 미션)
- 사용자미션idx (idx) — NOT NULL — Primary key — NOT NULL
- 사용자idx (member_idx) — NOT NULL — Foreign key → Member.사용자idx — NOT NULL
- 미션idx (mission_idx) — NOT NULL — Foreign key → Mission.미션idx — NOT NULL
- 진행여부 (status( 적립대기중, 진행완료)) — NOT NULL
- 생성일자 (created_at) — NOT NULL
Member_agree (사용자약관)
- 사용자약관idx (idx) — NOT NULL — Primary key — NOT NULL
- 사용자idx (member_idx) — NOT NULL — Foreign key → Member.사용자idx — NOT NULL
- 약관idx (idx2) — NOT NULL — Foreign key → terms.약관idx — NOT NULL
- 동의여부 (is_agree) — NOT NULL
- 생성일자 (created_at) — NOT NULL
- 수정일자 (updated_at) — NOT NULL
Mission (미션)
- 미션idx (idx) — NOT NULL — Primary key — NOT NULL
- 식당idx (rest_idx) — NOT NULL — Foreign key → Restaurant.식당idx — NOT NULL
- 미션내용 (content) — NOT NULL
- 상태 (status) — NOT NULL
- 최소성공금액 (success_price) — NOT NULL
- 적립방식 (acc_method) — NOT NULL
- 적립액수 (acc_point) — NOT NULL
- 생성일자 (created_at) — NOT NULL
- 마감일자 (deadline) — NOT NULL
- 구분번호 (certified_num) — NOT NULL
Rest_Img (식당 이미지)
- 식당 이미지 (idx) — NOT NULL — Primary key — NOT NULL
- 식당idx (rest_idx) — NOT NULL — Foreign key → Restaurant.식당idx — NOT NULL
- 이미지 url (img_url) — NOT NULL
- 생성일자 (created_at) — NOT NULL
Restaurant (식당)
- 식당idx (idx) — NOT NULL — Primary key — NOT NULL
- 지역idx (region_idx) — NOT NULL — Foreign key → region.지역idx — NOT NULL
- 식당이름 (rest_name) — NOT NULL
- 식당카테고리 (rest_category) — NOT NULL
- 생성일자 (created_at) — NOT NULL
Review (리뷰)
- 리뷰idx (idx) — NOT NULL — Primary key — NOT NULL
- 식당idx (rest_idx) — NOT NULL — Foreign key → Restaurant.식당idx — NOT NULL
- 사용자idx (member_idx) — NOT NULL — Foreign key → Member.사용자idx — NOT NULL
- 별점 (score) — NOT NULL
- 내용 (content) — NULL
- 생성일자 (created_at) — NOT NULL
Review_Img (리뷰 이미지)
- 리뷰이미지 idx (idx) — NOT NULL — Primary key — NOT NULL
- 리뷰idx (review_idx) — NOT NULL — Foreign key → Review.리뷰idx — NOT NULL
- 이미지 url (img_url) — NOT NULL
- 생성일자 (created_at) — NOT NULL
region (지역)
- 지역idx (idx) — NOT NULL — Primary key — NOT NULL
- 도/특별시 (addr1) — NOT NULL
- 시/군/구 (addr2) — NOT NULL
- 동 (addr3) — NOT NULL
terms (약관)
- 약관idx (idx) — NOT NULL — Primary key — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (content) — NOT NULL
- 생성일자 (created_at) — NOT NULL
- 수정일자 (updated_at) — NOT NULL