jwp-shopping-order
Tables (5)
cart_item
- id — BIGINT — NOT NULL
- member_id — BIGINT — Foreign key → member.id — NOT NULL
- product_id — BIGINT — Foreign key → product.id — NOT NULL
- quantity — INT — NOT NULL
cart_order
- id — BIGINT — NOT NULL
- total_price — BIGINT — NOT NULL
- created_at — TIMESTAMP — NOT NULL
member
- id — BIGINT — NOT NULL
- email — VARCHAR(255) — NOT NULL
- password — VARCHAR(255) — NOT NULL
- cash — BIGINT — NOT NULL
order_item
- id — BIGINT — NOT NULL
- cart_order_id — BIGINT — Foreign key — NOT NULL
- product_id — BIGINT — NOT NULL
- name — VARCHAR(255) — NOT NULL
- price — INT — NOT NULL
- image_url — VARCHAR(255) — NOT NULL
- quantity — INT — NOT NULL
product
- id — BIGINT
- name — VARCHAR(255) — NOT NULL
- price — INT — NOT NULL
- image_url — VARCHAR(255) — NOT NULL