update:
1. change payout account
This commit is contained in:
42
doc/sql/pending/20260429.sql
Normal file
42
doc/sql/pending/20260429.sql
Normal file
@@ -0,0 +1,42 @@
|
||||
alter table merchant_application
|
||||
drop column alipay_account;
|
||||
alter table merchant_application
|
||||
drop column wechat_account;
|
||||
|
||||
|
||||
drop table if exists merchant_payout_account;
|
||||
create table merchant_payout_account
|
||||
(
|
||||
id int8 not null primary key,
|
||||
user_id int8 not null default -1,
|
||||
account_type int4 not null default -1,
|
||||
holder_name varchar(255) default '' not null,
|
||||
account_number varchar(255) not null default '',
|
||||
account_url text not null default '',
|
||||
remark varchar(255) not null default '',
|
||||
create_user int8,
|
||||
create_dept int8,
|
||||
create_time timestamp(6),
|
||||
update_user int8,
|
||||
update_time timestamp(6),
|
||||
status int4,
|
||||
is_deleted int4 default 0
|
||||
);
|
||||
create index idx_merchant_payout_account_user_id on merchant_payout_account (user_id) where is_deleted = 0;
|
||||
|
||||
|
||||
comment on table merchant_payout_account is '商家收款资料表';
|
||||
comment on column merchant_payout_account.id is '主键';
|
||||
comment on column merchant_payout_account.user_id is '用户id';
|
||||
comment on column merchant_payout_account.account_type is '账号类型 1:支付宝 2:微信';
|
||||
comment on column merchant_payout_account.holder_name is '账户所有人';
|
||||
comment on column merchant_payout_account.account_number is '银行卡号';
|
||||
comment on column merchant_payout_account.account_url is '收款码图片';
|
||||
comment on column merchant_payout_account.remark is '备注';
|
||||
comment on column merchant_payout_account.create_user is '创建人';
|
||||
comment on column merchant_payout_account.create_dept is '创建部门';
|
||||
comment on column merchant_payout_account.create_time is '创建时间';
|
||||
comment on column merchant_payout_account.update_user is '修改人';
|
||||
comment on column merchant_payout_account.update_time is '修改时间';
|
||||
comment on column merchant_payout_account.status is '状态';
|
||||
comment on column merchant_payout_account.is_deleted is '是否已删除';
|
||||
Reference in New Issue
Block a user