You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
2.5 KiB
38 lines
2.5 KiB
create table enterprise_information
|
|
(
|
|
id varchar(50) not null comment '主键ID'
|
|
primary key,
|
|
enterprise_name varchar(100) null comment '企业名称',
|
|
enterprise_number varchar(100) null comment '企业纳税识别号',
|
|
enterprise_type varchar(10) null comment '企业类型',
|
|
enterprise_address varchar(200) null comment '企业地址',
|
|
legal_person varchar(100) null,
|
|
registered_capital varchar(40) null comment '注册资本',
|
|
establishment_time datetime null comment '成立日期',
|
|
operating_term varchar(100) null comment '营业期限',
|
|
business_scope varchar(2000) null comment '经营范围',
|
|
create_time datetime null comment '创建时间',
|
|
create_by varchar(50) null comment '创建人',
|
|
user_id bigint null,
|
|
dept_id varchar(55) collate utf8mb4_unicode_ci null comment '部门ID',
|
|
qr_code_id varchar(50) null comment '二维码id',
|
|
last_qr_code_time datetime null comment '上一次二维码生成时间',
|
|
is_unsubscribe int default 0 null comment '是否注销 0 否 1 是',
|
|
is_delete int default 0 null comment '是否删除 0 否 1 是',
|
|
salt varchar(100) null comment '盐加密字符串',
|
|
enterprise_tel varchar(20) null,
|
|
company_org_type varchar(55) null,
|
|
industry varchar(1) null,
|
|
operating_term_end varchar(100) null,
|
|
update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP,
|
|
constraint idx_enforcement_registration_number
|
|
unique (enterprise_number)
|
|
)
|
|
comment '企业端-企业信息表' row_format = DYNAMIC;
|
|
|
|
create fulltext index idx_enforcement_registration_name
|
|
on enterprise_information (enterprise_name);
|
|
|
|
create index idx_enterprise_time_number
|
|
on enterprise_information (establishment_time, enterprise_number);
|
|
|
|
|