[#35] 결제 스키마 재정의 & 예약 조회 페이지 개선 #36

Merged
pricelees merged 37 commits from refactor/#35 into main 2025-08-22 06:43:16 +00:00
2 changed files with 22 additions and 20 deletions
Showing only changes of commit 0cb7f3e234 - Show all commits

View File

@ -115,7 +115,7 @@ create table if not exists payment_card_detail (
owner_type varchar(10) not null,
amount integer not null,
card_number varchar(20) not null,
approval_number varchar(8) not null unique,
approval_number varchar(8) not null, -- 실제로는 unique 이지만 테스트 결제 위젯에서는 항상 000000으로 동일한 값이 나옴.
installment_plan_months tinyint not null,
is_interest_free boolean not null,
easypay_provider_code varchar(20),
@ -136,13 +136,14 @@ create table if not exists payment_easypay_prepaid_detail(
create table if not exists canceled_payment1(
id bigint primary key,
payment_id bigint not null,
requested_at timestamp not null,
canceled_at timestamp not null,
canceled_by bigint not null,
cancel_reason varchar(255) not null,
cancel_amount integer not null,
cardDiscountAmount integer not null,
transferDiscountAmount integer not null,
easyPayDiscountAmount integer not null,
card_discount_amount integer not null,
transfer_discount_amount integer not null,
easypay_discount_amount integer not null,
constraint uk_canceled_payment1__paymentId unique (payment_id),
constraint fk_canceled_payment__paymentId foreign key (payment_id) references payment1(id),

View File

@ -123,7 +123,7 @@ create table if not exists payment_card_detail
owner_type varchar(10) not null,
amount integer not null,
card_number varchar(20) not null,
approval_number varchar(8) not null unique,
approval_number varchar(8) not null, -- 실제로는 unique 이지만 테스트 결제 위젯에서는 항상 000000으로 동일한 값이 나옴.
installment_plan_months tinyint not null,
is_interest_free boolean not null,
easypay_provider_code varchar(20),
@ -146,13 +146,14 @@ create table if not exists canceled_payment1
(
id bigint primary key,
payment_id bigint not null,
requested_at datetime(6) not null,
canceled_at datetime(6) not null,
canceled_by bigint not null,
cancel_reason varchar(255) not null,
cancel_amount integer not null,
cardDiscountAmount integer not null,
transferDiscountAmount integer not null,
easyPayDiscountAmount integer not null,
card_discount_amount integer not null,
transfer_discount_amount integer not null,
easypay_discount_amount integer not null,
constraint uk_canceled_payment1__paymentId unique (payment_id),
constraint fk_canceled_payment__paymentId foreign key (payment_id) references payment1(id),