2023-07-10 08:10:13 +00:00
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS "wspay"
|
|
|
|
(
|
|
|
|
"id" uuid NOT NULL,
|
|
|
|
"shop_id" varchar(128) NOT NULL,
|
|
|
|
"shopping_card_id" varchar(128) NOT NULL,
|
|
|
|
"total_amount" int NOT NULL,
|
|
|
|
|
|
|
|
"lang" varchar(128) DEFAULT '',
|
|
|
|
|
|
|
|
"customer_first_name" varchar(128) DEFAULT '',
|
|
|
|
"customer_last_name" varchar(128) DEFAULT '',
|
|
|
|
"customer_address" varchar(128) DEFAULT '',
|
|
|
|
"customer_city" varchar(128) DEFAULT '',
|
|
|
|
"customer_zip" varchar(128) DEFAULT '',
|
|
|
|
"customer_country" varchar(128) DEFAULT '',
|
|
|
|
"customer_phone" varchar(128) DEFAULT '',
|
|
|
|
|
|
|
|
"payment_plan" varchar(128) DEFAULT '',
|
|
|
|
"credit_card_name" varchar(128) DEFAULT '',
|
|
|
|
"credit_card_number" varchar(128) DEFAULT '',
|
|
|
|
"payment_method" varchar(128) DEFAULT '',
|
|
|
|
"currency_code" int DEFAULT 0,
|
|
|
|
|
|
|
|
"date_time" timestamp DEFAULT current_timestamp,
|
|
|
|
|
|
|
|
"eci" varchar(256) DEFAULT '',
|
|
|
|
"stan" varchar(256) DEFAULT '',
|
|
|
|
|
|
|
|
"success" int DEFAULT 0,
|
|
|
|
"approval_code" varchar(256) DEFAULT '',
|
|
|
|
"error_message" varchar(256) DEFAULT '',
|
|
|
|
"error_codes" varchar(256) DEFAULT '',
|
|
|
|
|
|
|
|
"payment_state" varchar(256) DEFAULT '',
|
|
|
|
|
|
|
|
PRIMARY KEY (id),
|
|
|
|
CONSTRAINT unique_id UNIQUE ("shopping_card_id")
|
|
|
|
);
|
2023-07-26 07:51:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS "stripe"
|
|
|
|
(
|
|
|
|
"id" uuid NOT NULL,
|
|
|
|
"total_amount" int NOT NULL,
|
|
|
|
"lang" varchar(128) DEFAULT '',
|
|
|
|
"payment_intent_id" varchar(256) DEFAULT '',
|
2023-07-27 08:11:40 +00:00
|
|
|
"payment_state" varchar(256) DEFAULT '',
|
|
|
|
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2023-07-26 07:51:29 +00:00
|
|
|
|
2023-07-27 08:11:40 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS "viva"
|
|
|
|
(
|
|
|
|
"id" uuid NOT NULL,
|
|
|
|
"order_id" varchar(24) DEFAULT '',
|
|
|
|
"transaction_id" uuid DEFAULT NULL,
|
|
|
|
"total_amount" int NOT NULL,
|
|
|
|
"event_id" varchar(128) DEFAULT '',
|
|
|
|
"eci" varchar(128) DEFAULT '',
|
2023-07-26 07:51:29 +00:00
|
|
|
"payment_state" varchar(256) DEFAULT '',
|
|
|
|
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|