baemin
Tables (7)
category
- id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(50) — NOT NULL
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
member
- id — BIGINT — Primary key — NOT NULL
- email — VARCHAR(100) — NOT NULL
- password — VARCHAR(255) — NOT NULL
- nickname — VARCHAR(50) — NOT NULL
- phone — VARCHAR(20) — NOT NULL
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
member_address
- id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.id — NOT NULL
- type — VARCHAR(10) — NOT NULL
- address — VARCHAR(255) — NOT NULL
- detail — VARCHAR(255)
- lat — DECIMAL(10, 7) — NOT NULL
- lng — DECIMAL(10, 7) — NOT NULL
- is_default — TINYINT(1) — NOT NULL
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
menu
- id — BIGINT — Primary key — NOT NULL
- restaurant_id — BIGINT — Foreign key → restaurant.id — NOT NULL
- name — VARCHAR(100) — NOT NULL
- price — INT — NOT NULL
- description — VARCHAR(255)
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
order_item
- id — BIGINT — Primary key — NOT NULL
- order_id — BIGINT — Foreign key → orders.id — NOT NULL
- menu_id — BIGINT — Foreign key → menu.id — NOT NULL
- quantity — INT — NOT NULL
- price — INT — NOT NULL
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
orders
- id — BIGINT — Primary key — NOT NULL
- member_id — BIGINT — Foreign key → member.id — NOT NULL
- restaurant_id — BIGINT — Foreign key → restaurant.id — NOT NULL
- address_id — BIGINT — Foreign key → member_address.id — NOT NULL
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL
restaurant
- id — BIGINT — Primary key — NOT NULL
- category_id — BIGINT — Foreign key → category.id — NOT NULL
- name — VARCHAR(100) — NOT NULL
- address — VARCHAR(255) — NOT NULL
- lat — DECIMAL(10, 7) — NOT NULL
- lng — DECIMAL(10, 7) — NOT NULL
- min_order_price — INT — NOT NULL
- delivery_fee — INT — NOT NULL
- status — VARCHAR(20) — NOT NULL
- created_at — DATETIME — NOT NULL
- updated_at — DATETIME — NOT NULL