outsocing
Tables (5)
Untitled (User)
- Key (Id) — bigint — Primary key — NOT NULL — 아이디
- Field (email) — varchar(50) — NOT NULL — 이메일
- Field3 (password) — varchar(50) — NOT NULL — 비밀번호
- Field2 (nickname) — varchar(50) — NOT NULL — 닉네임
- Field4 (auth) — varchar(50) — NOT NULL — 권한
- Field5 (deleted_at) — datetime — NOT NULL — 삭제 날짜
- Field (created_at) — datetime — 생성날짜
- Field2 (updated_at) — datetime — 수정날짜
Untitled (Menu)
- Key (Id) — bigint — Primary key — NOT NULL — 아이디
- Key (store_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 가게 아이디
- Field2 (name) — varchar(100) — NOT NULL — 메뉴 이름
- Field3 (state) — varchar(50) — NOT NULL — 상태
- Field4 (price) — int — NOT NULL — 가격
Untitled (Review)
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (writer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 작성자 아이디
- Key (store_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 상점 아이디
- Key (id2) — bigint — Foreign key → Untitled.Key — NOT NULL — 아이디
- Key (user_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 사장님 아이디
- Key (Id) — bigint — Foreign key → Untitled.Key — NOT NULL — 아이디
- Key (store_id2) — bigint — Foreign key → Untitled.Key — NOT NULL — 가게 아이디
- Field3 (score) — int — NOT NULL — 별점
- Field4 (comment) — varchar(300) — 내용
- Field
Untitled (Store)
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (user_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 사장님 아이디
- Field (name) — varchar(100) — NOT NULL — 가게 이름
- Field2 (opened_at) — datetime — NOT NULL — 오픈 시간
- Field3 (closed_at) — datetime — NOT NULL — 마감 시간
- Field4 (min_amount) — int — NOT NULL — 최소 주문 금액
- Field6 (state) — varchar(50) — NOT NULL — 상태
Untitled (Order)
- Key (id) — bigint — Primary key — NOT NULL — 아이디
- Key (user_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 주문한 유저 아이디
- Key (store_id) — bigint — Foreign key → Untitled.Key — NOT NULL — 주문한 가게 아이디
- Key (Id) — bigint — Foreign key → Untitled.Key — NOT NULL — 아이디
- Key (store_id2) — bigint — Foreign key → Untitled.Key — NOT NULL — 가게 아이디
- Field (price) — int — NOT NULL — 메뉴 가격
- Field (state) — varchar(50) — NOT NULL — 상태