From d19973978f93ed488a2da12e7ce2d10c6eaebcb0 Mon Sep 17 00:00:00 2001 From: pricelees Date: Sun, 17 Aug 2025 21:18:26 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=97=94=ED=8B=B0=ED=8B=B0?= =?UTF-8?q?=EC=97=90=EC=84=9C=EC=9D=98=20=EC=88=98=EC=A0=95=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EC=8A=A4=ED=82=A4=EB=A7=88=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/schema/schema-h2.sql | 14 ++++++++------ src/main/resources/schema/schema-mysql.sql | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/main/resources/schema/schema-h2.sql b/src/main/resources/schema/schema-h2.sql index 75dfa2dc..3916f11e 100644 --- a/src/main/resources/schema/schema-h2.sql +++ b/src/main/resources/schema/schema-h2.sql @@ -81,6 +81,7 @@ create table if not exists payment1 ( type varchar(20) not null, method varchar(30) not null, payment_key varchar(255) not null unique, + order_id varchar(255) not null unique, total_amount integer not null, status varchar(20) not null, requested_at timestamp not null, @@ -91,17 +92,18 @@ create table if not exists payment1 ( ); create table if not exists payment_detail( - id bigint primary key, - payment_id bigint not null unique, - net_amount integer not null, - vat integer not null, + id bigint primary key, + payment_id bigint not null unique, + supplied_amount integer not null, + vat integer not null, constraint fk_payment_detail__paymentId foreign key (payment_id) references payment1 (id) ); create table if not exists payment_bank_transfer_detail ( - id bigint primary key, - bank_code varchar(10) not null, + id bigint primary key, + bank_code varchar(10) not null, + settlement_status varchar(20) not null, constraint fk_payment_bank_transfer_details__id foreign key (id) references payment_detail (id) ); diff --git a/src/main/resources/schema/schema-mysql.sql b/src/main/resources/schema/schema-mysql.sql index ba500fc9..1c225746 100644 --- a/src/main/resources/schema/schema-mysql.sql +++ b/src/main/resources/schema/schema-mysql.sql @@ -86,6 +86,7 @@ create table if not exists payment1 type varchar(20) not null, method varchar(30) not null, payment_key varchar(255) not null unique, + order_id varchar(255) not null unique, total_amount integer not null, status varchar(20) not null, requested_at datetime(6) not null, @@ -97,18 +98,19 @@ create table if not exists payment1 create table if not exists payment_detail ( - id bigint primary key, - payment_id bigint not null unique, - net_amount integer not null, - vat integer not null, + id bigint primary key, + payment_id bigint not null unique, + supplied_amount integer not null, + vat integer not null, constraint fk_payment_detail__paymentId foreign key (payment_id) references payment1 (id) ); create table if not exists payment_bank_transfer_detail ( - id bigint primary key, - bank_code varchar(10) not null, + id bigint primary key, + bank_code varchar(10) not null, + settlement_status varchar(20) not null, constraint fk_payment_bank_transfer_details__id foreign key (id) references payment_detail (id) );