将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,6 +1,6 @@
create table user_benefit
(
id bigint not null primary key,
id int8 not null primary key,
amount decimal(14, 2) default 0,
version int default 1,
create_user int8,
@@ -30,15 +30,15 @@ alter table user_benefit
create table user_benefit_log
(
id bigint not null primary key,
user_id bigint,
user_phone bigint,
id int8 not null primary key,
user_id int8,
user_phone int8,
user_name varchar(128),
amount decimal(14, 2) default 0,
source_id bigint,
user_pack_id bigint,
source_id int8,
user_pack_id int8,
source_detail text,
order_id bigint,
order_id int8,
type int default 1,
statistical_date timestamp(6),
channel varchar(64),
@@ -85,7 +85,7 @@ alter table user_benefit_log
create table user_commission
(
id bigint not null primary key,
id int8 not null primary key,
amount decimal(14, 2) default 0,
version int default 1,
create_user int8,
@@ -116,14 +116,14 @@ alter table user_commission
create table user_commission_log
(
id bigint not null primary key,
user_id bigint,
user_phone bigint,
id int8 not null primary key,
user_id int8,
user_phone int8,
user_name varchar(128),
amount decimal(14, 2) default 0,
source_id bigint,
source_id int8,
source_detail text,
order_id bigint,
order_id int8,
type int default 1,
statistical_date timestamp(6),
channel varchar(64),
@@ -169,7 +169,7 @@ alter table user_commission_log
create table user_cash
(
id bigint not null primary key,
id int8 not null primary key,
amount decimal(14, 2) default 0,
version int default 1,
create_user int8,
@@ -200,14 +200,14 @@ alter table user_cash
create table user_cash_log
(
id bigint not null primary key,
user_id bigint,
user_phone bigint,
id int8 not null primary key,
user_id int8,
user_phone int8,
user_name varchar(128),
amount decimal(14, 2) default 0,
source_id bigint,
source_id int8,
source_detail text,
order_id bigint,
order_id int8,
type int default 1,
statistical_date timestamp(6),
channel varchar(64),
@@ -253,7 +253,7 @@ alter table user_cash_log
create table user_mall_integral
(
id bigint not null primary key,
id int8 not null primary key,
amount decimal(14, 2) default 0,
version int default 1,
create_user int8,
@@ -282,14 +282,14 @@ alter table user_mall_integral
create table user_mall_integral_log
(
id bigint not null primary key,
user_id bigint,
user_phone bigint,
id int8 not null primary key,
user_id int8,
user_phone int8,
user_name varchar(128),
amount decimal(14, 2) default 0,
source_id bigint,
source_id int8,
source_detail text,
order_id bigint,
order_id int8,
type int default 1,
statistical_date timestamp(6),
channel varchar(64),
@@ -336,9 +336,9 @@ alter table user_mall_integral_log
create table user_gains_day
(
id bigint not null primary key,
id int8 not null primary key,
statistical_date timestamp(6),
user_id bigint,
user_id int8,
amount decimal(14, 2) default 0,
gains_details text,
is_credited integer default 0,
@@ -376,15 +376,15 @@ alter table user_gains_day
create table user_gains_day_log
(
id bigint not null primary key,
user_id bigint,
user_phone bigint,
id int8 not null primary key,
user_id int8,
user_phone int8,
user_name varchar(128),
amount decimal(14, 2) default 0,
source_id bigint,
source_id int8,
source_detail text,
gains_details text,
order_id bigint,
order_id int8,
statistical_date timestamp(6),
is_summary integer default 0,
remark text,