washFun
테이블 (5)
가게 이벤트 (store_event)
- id (이벤트 id) — 기본 키 — NOT NULL
- store_id (가게 id)
- content (이벤트 정보)
유저 쿠폰 (user_coupon)
- id (유저 쿠폰) — 기본 키 — NOT NULL
- id (쿠폰id) — long — 외래 키 → 적립 쿠폰.id — NOT NULL
- user_id (유저 아이디) — long
- is_used (사용여부) — long
- expire_at (만료일) — timestamp
적립 쿠폰 (coupon)
- id (쿠폰id) — long — 기본 키 — NOT NULL
- storeId (적립 가게) — long
- coupon_number (쿠폰 번호) — string
- name (쿠폰 이름) — string
- expireAt (쿠폰유효기간) — timestamp
- point_exprieAt (포인트 만료 기간) — timestamp
- explanation (설명) — string
- type (쿠폰 타입) — enum
- isDisplay (상태) — boolean
- count (발급 쿠폰 수) — long
- maxCount (쿠폰 제한수) — long
포인트 (Point)
- id (포인트 아이디) — int — 기본 키 — NOT NULL
- user_id (유저아이디) — int
- store_id (스토어아이디) — int
- usage_id (거래 아이디) — int
- status (상태) — enum
- price (금액) — int
- productStatus (상품코드) — enum
- explantion (설명) — varchar
- expireAt (만료일) — timestamp
- createAt (처리일) — timestamp
포인트 detail (point_detail)
- id (포인트 아이디) — int — 기본 키 — NOT NULL
- user_id (유저아이디) — int
- store_id (스토어아이디) — int
- status (상태) — enum
- price (금액) — int
- detail_accumulate_id (적립 상세 아이디) — int
- expireAt (만료일) — timestamp
- createAt (처리일) — timestamp
- id (포인트 아이디2) — int — 외래 키 → 포인트.id — NOT NULL
- Field
- explantion (설명) — varchar