generated from pricelees/issue-pr-template
[#35] 결제 스키마 재정의 & 예약 조회 페이지 개선 #36
@ -115,7 +115,7 @@ create table if not exists payment_card_detail (
|
|||||||
owner_type varchar(10) not null,
|
owner_type varchar(10) not null,
|
||||||
amount integer not null,
|
amount integer not null,
|
||||||
card_number varchar(20) 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,
|
installment_plan_months tinyint not null,
|
||||||
is_interest_free boolean not null,
|
is_interest_free boolean not null,
|
||||||
easypay_provider_code varchar(20),
|
easypay_provider_code varchar(20),
|
||||||
@ -134,15 +134,16 @@ create table if not exists payment_easypay_prepaid_detail(
|
|||||||
);
|
);
|
||||||
|
|
||||||
create table if not exists canceled_payment1(
|
create table if not exists canceled_payment1(
|
||||||
id bigint primary key,
|
id bigint primary key,
|
||||||
payment_id bigint not null,
|
payment_id bigint not null,
|
||||||
canceled_at timestamp not null,
|
requested_at timestamp not null,
|
||||||
canceled_by bigint not null,
|
canceled_at timestamp not null,
|
||||||
cancel_reason varchar(255) not null,
|
canceled_by bigint not null,
|
||||||
cancel_amount integer not null,
|
cancel_reason varchar(255) not null,
|
||||||
cardDiscountAmount integer not null,
|
cancel_amount integer not null,
|
||||||
transferDiscountAmount integer not null,
|
card_discount_amount integer not null,
|
||||||
easyPayDiscountAmount integer not null,
|
transfer_discount_amount integer not null,
|
||||||
|
easypay_discount_amount integer not null,
|
||||||
|
|
||||||
constraint uk_canceled_payment1__paymentId unique (payment_id),
|
constraint uk_canceled_payment1__paymentId unique (payment_id),
|
||||||
constraint fk_canceled_payment__paymentId foreign key (payment_id) references payment1(id),
|
constraint fk_canceled_payment__paymentId foreign key (payment_id) references payment1(id),
|
||||||
|
|||||||
@ -123,7 +123,7 @@ create table if not exists payment_card_detail
|
|||||||
owner_type varchar(10) not null,
|
owner_type varchar(10) not null,
|
||||||
amount integer not null,
|
amount integer not null,
|
||||||
card_number varchar(20) 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,
|
installment_plan_months tinyint not null,
|
||||||
is_interest_free boolean not null,
|
is_interest_free boolean not null,
|
||||||
easypay_provider_code varchar(20),
|
easypay_provider_code varchar(20),
|
||||||
@ -144,15 +144,16 @@ create table if not exists payment_easypay_prepaid_detail
|
|||||||
|
|
||||||
create table if not exists canceled_payment1
|
create table if not exists canceled_payment1
|
||||||
(
|
(
|
||||||
id bigint primary key,
|
id bigint primary key,
|
||||||
payment_id bigint not null,
|
payment_id bigint not null,
|
||||||
canceled_at datetime(6) not null,
|
requested_at datetime(6) not null,
|
||||||
canceled_by bigint not null,
|
canceled_at datetime(6) not null,
|
||||||
cancel_reason varchar(255) not null,
|
canceled_by bigint not null,
|
||||||
cancel_amount integer not null,
|
cancel_reason varchar(255) not null,
|
||||||
cardDiscountAmount integer not null,
|
cancel_amount integer not null,
|
||||||
transferDiscountAmount integer not null,
|
card_discount_amount integer not null,
|
||||||
easyPayDiscountAmount integer not null,
|
transfer_discount_amount integer not null,
|
||||||
|
easypay_discount_amount integer not null,
|
||||||
|
|
||||||
constraint uk_canceled_payment1__paymentId unique (payment_id),
|
constraint uk_canceled_payment1__paymentId unique (payment_id),
|
||||||
constraint fk_canceled_payment__paymentId foreign key (payment_id) references payment1(id),
|
constraint fk_canceled_payment__paymentId foreign key (payment_id) references payment1(id),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user