将bigint 修改成 int8

This commit is contained in:
2026-02-03 20:46:49 +08:00
parent a22f698620
commit 2aa351e43c
14 changed files with 230 additions and 245 deletions

View File

@@ -1,11 +1,11 @@
CREATE TABLE user_order
(
id BIGINT DEFAULT 0 NOT NULL PRIMARY KEY,
user_id BIGINT DEFAULT 0 NOT NULL,
user_phone bigint,
id int8 DEFAULT 0 NOT NULL PRIMARY KEY,
user_id int8 DEFAULT 0 NOT NULL,
user_phone int8,
user_name varchar(128),
order_type INTEGER DEFAULT 0 NOT NULL,
order_id BIGINT DEFAULT 0 NOT NULL,
order_id int8 DEFAULT 0 NOT NULL,
title VARCHAR(256) DEFAULT '' NOT NULL,
images VARCHAR(512) NULL,
quantity INTEGER NULL,
@@ -76,15 +76,15 @@ CREATE INDEX user_order_index ON user_order (user_id, order_type);
CREATE TABLE mall_summary_order
(
id BIGINT NOT NULL PRIMARY KEY,
user_id BIGINT DEFAULT 0 NOT NULL,
user_phone bigint,
id int8 NOT NULL PRIMARY KEY,
user_id int8 DEFAULT 0 NOT NULL,
user_phone int8,
user_name varchar(128),
products_info text NULL,
order_info text NULL,
confirm_info text NULL,
vendor_regions_id BIGINT NOT NULL,
address_id BIGINT NOT NULL,
vendor_regions_id int8 NOT NULL,
address_id int8 NOT NULL,
delivery_info text NULL,
freight_amount DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,
cost_amount DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,
@@ -105,7 +105,7 @@ CREATE TABLE mall_summary_order
is_recorded INTEGER DEFAULT 0 NULL,
is_statistics INTEGER DEFAULT 0 NULL,
remarks VARCHAR(200) DEFAULT '' NOT NULL,
version BIGINT DEFAULT 0 NULL,
version int8 DEFAULT 0 NULL,
create_user int8 NULL,
create_dept int8 NULL,
create_time TIMESTAMP NULL,
@@ -163,12 +163,12 @@ CREATE INDEX mso_statistics_index ON mall_summary_order (payment_status, is_stat
CREATE TABLE mall_detail_order
(
id BIGINT NOT NULL PRIMARY KEY,
user_id BIGINT DEFAULT 0 NOT NULL,
user_phone bigint,
id int8 NOT NULL PRIMARY KEY,
user_id int8 DEFAULT 0 NOT NULL,
user_phone int8,
user_name varchar(128),
summary_order_id BIGINT DEFAULT 0 NOT NULL,
spu_id BIGINT DEFAULT 0 NOT NULL,
summary_order_id int8 DEFAULT 0 NOT NULL,
spu_id int8 DEFAULT 0 NOT NULL,
quantity INTEGER DEFAULT 0 NOT NULL,
sku_snapshot text NULL,
actual_cost_amount DECIMAL(10, 2) DEFAULT 0.00 NOT NULL,
@@ -225,13 +225,13 @@ CREATE INDEX mdo_uid_index ON mall_detail_order (user_id);
CREATE TABLE mall_summary_order_after
(
id BIGINT NOT NULL PRIMARY KEY,
user_id BIGINT DEFAULT -1 NOT NULL,
user_phone bigint,
id int8 NOT NULL PRIMARY KEY,
user_id int8 DEFAULT -1 NOT NULL,
user_phone int8,
user_name varchar(128),
summary_order_id BIGINT DEFAULT -1 NOT NULL,
goods_id BIGINT DEFAULT -1 NOT NULL,
sku_id BIGINT NOT NULL,
summary_order_id int8 DEFAULT -1 NOT NULL,
goods_id int8 DEFAULT -1 NOT NULL,
sku_id int8 NOT NULL,
goods_name VARCHAR(256) NOT NULL,
third_plat_order_no VARCHAR(32) NOT NULL,
third_plat_after_no VARCHAR(32) NOT NULL,