crux
Tables (12)
Business (사업자)
- id (사업자 아이디) — long — Primary key — NOT NULL
- name (이름) — varchar(10)
- bizType (사업자 타입) — varchar(10)
FreeCashBook (무상-캐시-정보)
- id (아이디) — long — Primary key — NOT NULL
- amount (금액) — BigDecimal
- state (상태) — varcher(10)
- expirationDate (만료기한) — long
- WalletInfoId (지갑정보 아이디) — long
FreeCashDeposit (무상캐시 충전)
- id (아이디) — long — Primary key — NOT NULL
- amount (금액) — BigDecimal
- walletId (지갑정보 아이디) — long
- adType (광고타입) — varchar(10)
FreeCashHistory (유상 캐시 히스토리)
- id (Key) — long — Primary key — NOT NULL
- paidAmount (유상캐시) — BigDecimal
- walletId (지갑정보 아이디) — long
- eventId (이벤트 아이디) — long
- eventType (이벤트 타입) — String
- eventCreatedAt (이벤트생성시각) — DateTime
PaidCashDeposit (유상캐시 충전)
- id (아이디) — long — Primary key — NOT NULL
- amount (금액) — BigDecimal
- WalletInfoId (지갑정보 아이디) — long
Refund (환불)
- id (아이디) — long — Primary key — NOT NULL
- amount (금액) — BigDecimal
- WalletInfoId (지갑정보 아이디) — long
Restore (환급)
- id (아이디) — long — Primary key — NOT NULL
- WalletInfoId (지갑정보 아이디) — long
- paidAmount (유상캐시 환급금액) — BigDecimal
- freeAmount (무상캐시 환급금액) — BigDecimal
Spend (소진)
- id (아이디) — long — Primary key — NOT NULL
- WalletInfoId (지갑정보 아이디) — long
- paidAmount (유상캐시 소진금액) — BigDecimal
- freeAmount (무상캐시 소진금액) — BigDecimal
Transaction (원장)
- id (Key) — long — Primary key — NOT NULL
- paidAmount (유상캐시) — BigDecimal
- freeAmount (무상캐시) — BigDecimal
- walletId (지갑정보 아이디) — long
- eventId (이벤트 아이디) — long
- eventType (이벤트 타입) — String
- eventCreatedAt (이벤트생성시각) — DateTime
Transaction (prev원장)
- id (Key) — long — Primary key — NOT NULL
- paidAmount (유상캐시) — BigDecimal
- freeAmount (무상캐시) — BigDecimal
- walletId (지갑정보 아이디) — long
- eventId (이벤트 아이디) — long
- eventType (이벤트 타입) — String
- eventCreatedAt (이벤트생성시각) — DateTime
Wallet (지갑)
- WalletInfoId (Key) — long — Primary key — NOT NULL
- paidCash (유상캐시 잔액) — long
- freeCasha (무상캐시 잔액) — long
WalletInfo (지갑정보)
- id (아이디) — long — Primary key — NOT NULL
- name (이름) — varchar(10)
- bizId (사업자 아이디) — long — Foreign key → Business.id — NOT NULL