CP-PAY
Tables (6)
Payment (결제)
- 결제 ID (Id) — bigint — Primary key — NOT NULL
- 전체 금액 (total_amount) — decimal(10,2)
- 현재까지 결제된 금액 (paid_amount) — decimal(10,2)
- 다음 결제될 금액 (next_pay_amount) — decimal(10,2)
- 다음 결제 일자 (next_pay_day) — datetime
- 남은 결제 횟수 (remain_count) — int
- 통화 타입 (money_type) — varchar(3)
- 활성화 여부 (activated) — boolean
- 재시도 제한횟수 (retry_limit) — int
- 최근 결제 요청 시간 (paidAt) — datetime
- 최근 결제 승인 시간 (approvedAt) — datetime
- 생성 일자 (createdAt) — datetime
- 수정 일자 (updatedAt) — datetime
- 결제 수단ID (method_Id) — bigint — Foreign key → Payment_Method.결제 수단ID — NOT NULL
- 가게 ID (store_Id) — bigint — Foreign key → Store.가게 ID — NOT NULL
- 유저 ID (user_Id) — bigint — Foreign key → User.유저 ID — NOT NULL
Payment_History (결제 기록)
- 결제 기록ID (Id) — bigint — Primary key — NOT NULL
- 금액 (amount) — decimal(10,2)
- 통화 타입 (money_type) — varchar(3)
- 결제 타입 (payment_type) — varchar(10)
- 결제 설명 (description) — varchar(200)
- 생성 일자 (createdAt) — datetime
- 수정 일자 (updatedAt) — datetime
- 결제 ID (payment_Id) — bigint — Foreign key → Payment.결제 ID — NOT NULL
Payment_Method (결제 수단)
- 결제 수단ID (Id) — bigint — Primary key — NOT NULL
- 이름 (varchar2) — varchar(20)
- 카드번호 (cardnumber) — varchar(20)
- 변경 사유 (description) — varchar(50)
- 활성화 여부 (activated) — boolean
- 생성 일자 (createdAt) — datetime
- 수정 일자 (updatedAt) — datetime
- 유저 아이디 (user_Id) — bigint — Foreign key → User.유저 ID — NOT NULL
Payment_retry (결제 재시도)
- 재시도 ID (Id) — bigint — Primary key — NOT NULL
- 재시도 횟수 (retry_count) — int
- 재시도 설명 (description) — varchar(200)
- 생성 일자 (ceratedAt) — datetime
- 수정 일자 (updatedAt) — datetime
- 결제 ID (payment_Id) — bigint — Foreign key → Payment.결제 ID — NOT NULL
Store (가게)
- 가게 ID (Id) — bigint — Primary key — NOT NULL
- 이름 (name) — varchar(20)
- 주소 (address) — varchar(50)
- 전화번호 (number) — varchar(13)
- 활성화 여부 (activated) — boolean
- 생성 일자 (createdAt) — datetime
- 수정 일자 (updatedAt) — datetime
User (유저)
- 유저 ID (Id) — bigint — Primary key — NOT NULL
- 이름 (name) — varchar(20)
- 성별 (gender) — char(1)
- 로그인 아이디 (loginId) — varchar(20)
- 비밀번호 (password) — varchar(20)
- 전화번호 (phoneumber) — varchar(13)
- 국가 (country_type) — varchar(4)
- 활성화 여부 (activated) — boolean
- 최근 결제 일자 (last_paidAt) — datetime
- 생성 일자 (createdAt) — datetime
- 수정 일자 (updatedAt) — datetime