kotlin-spring-payment
Tables (3)
Order (주문)
- id (Key) — Long — Primary key — NOT NULL
- paymentUserId (사용자 아이디 fk) — Long — Foreign key → PaymentUser.id — NOT NULL
- orderId (주문의 고유 아이디) — Long
- orderStatus (주문의 상태) — OrderStatus
- orderTitle (주문 이름) — String
- orderAmount (주문 금액) — Long
- paidAmount (결제된 금액) — Long
- refundAmount (환불된 금액) — Long
OrderTransaction (주문의 세부 거래)
- id (Key) — Long — Primary key — NOT NULL
- orderId (주문 fk) — Long — Foreign key → Order.id — NOT NULL
- transactionId (거래 고유 아이디) — String
- transactionType (거래의 종류) — TransactionType
- transactionStatus (거래 상태) — TransactionStatus
- transactionAmount (거래 금액) — Long
- merchantRansactionId (가맹점 거래 번호) — String
- payMethodTransactionId (결제수단 거래 번호) — String
- transactedAt (거래시간) — LocalDateTime
- failureCode (실패코드) — String
- description (비고) — String
PaymentUser (결제 사용자)
- id (아이디) — Long — Primary key — NOT NULL
- payUserId (결제 시스템의 사용자 아이디) — String
- accountNumber (계좌번호) — String
- name (사용자 이름) — String