Backend2
Tables (4)
order_item (주문 항목)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 수량 (quantity) — INT — NOT NULL
- 가격 (price) — INT — NOT NULL
- 주문아이디 (order_id) — BIGINT — Foreign key → orders.아이디 — NOT NULL
- 상품아이디 (product_id) — BIGINT — Foreign key → product.아이디 — NOT NULL
orders (주문)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 총가격 (total_price) — INT — NOT NULL
- 생성일시 (created_at) — DATETIME
- 사용자아이디 (user_id) — BIGINT — Foreign key → user.아이디 — NOT NULL
product (상품)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 이름 (name) — VARCHAR(100) — NOT NULL
- 가격 (price) — INT — NOT NULL
- 생성일시 (created_at) — DATETIME
user (회원)
- 아이디 (id) — BIGINT — Primary key — NOT NULL
- 이름 (name) — VARCHAR(50) — NOT NULL
- 이메일 (email) — VARCHAR(100) — NOT NULL
- 생성일시 (created_at) — DATETIME