쿠폰서버
테이블 (4)
Untitled (유저)
- Key (id) — PK — 기본 키 — NOT NULL
- Field (name) — String
Untitled (유저 쿠폰)
- Key (id) — PK — 기본 키 — NOT NULL
- Key (user_id) — PK — 외래 키 → Untitled.Key — NOT NULL
- Key (coupon_id) — PK — 외래 키 → Untitled2.Key — NOT NULL
- Field (status) — Boolean
- Field (used_at) — LocalDateTime
- Field (created_at) — LocalDateTime
Untitled (결제 기록)
- Key (id) — PK — 기본 키 — NOT NULL
- Key (user_id) — PK — 외래 키 → Untitled.Key — NOT NULL
- Key (user_coupon_id) — PK — 외래 키 → Untitled.Key — NOT NULL
- Field (amount) — int
- Field (created_at) — LocalDateTime
Untitled2 (쿠폰)
- Key (id) — PK — 기본 키 — NOT NULL
- Field (title) — String
- Field (price) — int