DBProject1
테이블 (12)
고용 (work)
- chefID (Key) — 외래 키 → 요리사.chefID — NOT NULL
- restaurantID (Key2) — 외래 키 → 레스토랑.restaurantID — NOT NULL
레스토랑 (restaurant)
- restaurantID (Key) — 기본 키 — NOT NULL
- restaurantName (레스토랑명)
- location (위치)
- establishedYear (만들어진년도)
- avgRate (평균평점)
레스토랑수상이력 (restaurantObtain)
- year (년도)
- restaurantID (Key) — 외래 키 → 레스토랑.restaurantID — NOT NULL
- awardID (Key2) — 외래 키 → 수상.awardID — NOT NULL
리뷰 (review)
- rating (별점)
- comment (댓글)
- reviewDate (날짜)
- customerID (Key) — 외래 키 → 손님.customerID — NOT NULL
- restaurantID (Key2) — 외래 키 → 레스토랑.restaurantID — NOT NULL
서브 (serve)
- restaurantID (Key) — 외래 키 → 레스토랑.restaurantID — NOT NULL
- dishID (Key2) — 외래 키 → 음식.dishID — NOT NULL
손님 (customer)
- customerID (Key) — 기본 키 — NOT NULL
- customerName (이름)
- dateOfBirth (생년월일)
- preference (선호음식)
수상 (award)
- awardID (Key) — 기본 키 — NOT NULL
- awardName (수상명)
수상이력 (chefObtain)
- awardID (Key2) — 외래 키 → 수상.awardID — NOT NULL
- chefID (Key) — 외래 키 → 요리사.chefID — NOT NULL
- year (년도)
예약 (reservation)
- reservationDate (Key3) — 기본 키 — NOT NULL
- restaurantID (Key) — 외래 키 → 레스토랑.restaurantID — NOT NULL
- customerID (Key2) — 외래 키 → 손님.customerID — NOT NULL
- numberOfPeople (사람수)
요리 (cook)
- dishID (Key) — 외래 키 → 음식.dishID — NOT NULL
- chefID (Key2) — 외래 키 → 요리사.chefID — NOT NULL
요리사 (chef)
- chefID (Key) — 기본 키 — NOT NULL
- chefName (이름)
- specialty (특기)
- dateOfBirth (생년월일)
음식 (dish)
- dishID (Key) — 기본 키 — NOT NULL
- dishName (음식이름)
- price (가격)
- cuisineType (요리타입)
- isSeasonal (계절메뉴인가)