temp
Tables (6)
Copy Of Untitled3 (Orders)
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (user_id) — bigint — Foreign key → User.Key — NOT NULL — 주문자 아이디
- Key (store_id) — bigint — Foreign key → Store.Key — NOT NULL — 가게 아이디
- Field2 (price) — int — NOT NULL — 총 주문 가격
- Field3 (state) — varchar(50) — 주문 현황
- Field (created_at) — datetime — NOT NULL — 생성 날짜
- Field2 (updated_at) — datetime — NOT NULL — 수정 날짜
- Field (deleted_at) — datetime — 삭제 날짜
Store
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (user_id) — bigint — Foreign key → User.Key — NOT NULL — 사장님 아이디
- Field (name) — varchar(100) — NOT NULL — 가게 이름
- Field2 (opened_at) — datetime — NOT NULL — 오픈 시간
- Field3 (closed_at) — datetime — NOT NULL — 마감 시간
- Field4 (minium_amount) — int — NOT NULL — 최소 주문 금액
- Field5 (state) — varchar(50) — 상태
Untitled (Menu)
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (store_id) — bigint — Foreign key → Store.Key — NOT NULL — 가게 아이디
- Field (name) — varchar(100) — NOT NULL — 메뉴 이름
- Field2 (state) — varchar(50) — 판매 상태
- Field3 (price) — int — NOT NULL — 가격
- Field (deleted_at) — datetime — 삭제날짜
Untitled (Order_Detail)
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (order_id) — bigint — Foreign key → Copy Of Untitled3.Key — NOT NULL — 주문 아이디
- Key (menu_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 메뉴 아이디
- Field (count) — int — NOT NULL — 주문 수량
- Field2 (price) — int — NOT NULL — 가격
Untitled3 (Review)
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (order_id) — bigint — Foreign key → Copy Of Untitled3.Key — NOT NULL — 주문 아이디
- Key (user_id) — bigint — Foreign key → User.Key — NOT NULL — 작성자 아이디
- Key (sotre_id) — bigint — Foreign key → Store.Key — NOT NULL — 주문 가게 아이디
- Field (score) — double — NOT NULL — 별점
- Field2 (comment) — varchar(300) — 내용
- Field (created_at) — datetime — NOT NULL — 생성 날짜
- Field2 (updated_at) — datetime — NOT NULL — 수정 날짜
User
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Field (email) — varchar(50) — NOT NULL — 이메일
- Field2 (nickname) — varchar(50) — NOT NULL — 닉네임
- Field3 (type) — varchar(50) — 유저 타입
- Field4 (deleted_at) — datetime — NOT NULL — 삭제 날짜
- Field (created_at) — datetime — NOT NULL — 생성 날짜
- Field2 (updated_at) — datetime — NOT NULL — 수정 날짜