update:
1. fix
This commit is contained in:
@@ -24,6 +24,8 @@ create table merchant_application
|
||||
user_account varchar(20) not null,
|
||||
type int4 not null,
|
||||
store_name varchar(255) default '' not null,
|
||||
alipay_account text,
|
||||
wechat_account text,
|
||||
company_name varchar(100),
|
||||
business_license varchar(100),
|
||||
business_license_url TEXT,
|
||||
@@ -47,6 +49,8 @@ comment on column merchant_application.user_id is '用户id';
|
||||
comment on column merchant_application.user_account is '用户账号';
|
||||
comment on column merchant_application.type is '商家类型: 0-未审核, 1-个人商家, 2-企业商家';
|
||||
comment on column merchant_application.store_name is '店铺名称';
|
||||
comment on column merchant_application.alipay_account is '支付宝账号';
|
||||
comment on column merchant_application.wechat_account is '微信账号';
|
||||
comment on column merchant_application.company_name is '公司名称(企业商家时必填)';
|
||||
comment on column merchant_application.business_license is '营业执照注册号';
|
||||
comment on column merchant_application.business_license_url is '营业执照图片URL';
|
||||
|
||||
@@ -104,3 +104,70 @@ INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, cat
|
||||
is_deleted)
|
||||
VALUES ('2047553982355394566', '2047553982355394562', 'merchantproduct_view', '查看', 'view',
|
||||
'/market/merchantProduct/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
drop table if exists merchant_store_favorite;
|
||||
create table merchant_store_favorite
|
||||
(
|
||||
id int8 not null primary key,
|
||||
user_id int8 not null default -1,
|
||||
merchant_id int8 not null default -1,
|
||||
store_name varchar(255) 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_store_favorite_user_id on merchant_store_favorite (user_id) where is_deleted = 0;
|
||||
create index idx_merchant_store_favorite_merchant_id on merchant_store_favorite (merchant_id) where is_deleted = 0;
|
||||
|
||||
comment on table merchant_store_favorite is '自营商家店铺收藏表';
|
||||
comment on column merchant_store_favorite.id is '主键';
|
||||
comment on column merchant_store_favorite.user_id is '用户id';
|
||||
comment on column merchant_store_favorite.merchant_id is '商家id';
|
||||
comment on column merchant_store_favorite.store_name is '店铺名称';
|
||||
comment on column merchant_store_favorite.remark is '备注';
|
||||
comment on column merchant_product_inventory.create_user is '创建人';
|
||||
comment on column merchant_product_inventory.create_dept is '创建部门';
|
||||
comment on column merchant_product_inventory.create_time is '创建时间';
|
||||
comment on column merchant_product_inventory.update_user is '修改人';
|
||||
comment on column merchant_product_inventory.update_time is '修改时间';
|
||||
comment on column merchant_product_inventory.status is '状态';
|
||||
comment on column merchant_product_inventory.is_deleted is '是否已删除';
|
||||
|
||||
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,
|
||||
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
|
||||
);
|
||||
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.account_number is '银行卡号';
|
||||
comment on column merchant_payout_account.account_url is '收款码图片';
|
||||
comment on column merchant_store_favorite.remark is '备注';
|
||||
comment on column merchant_product_inventory.create_user is '创建人';
|
||||
comment on column merchant_product_inventory.create_dept is '创建部门';
|
||||
comment on column merchant_product_inventory.create_time is '创建时间';
|
||||
comment on column merchant_product_inventory.update_user is '修改人';
|
||||
comment on column merchant_product_inventory.update_time is '修改时间';
|
||||
comment on column merchant_product_inventory.status is '状态';
|
||||
comment on column merchant_product_inventory.is_deleted is '是否已删除';
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user