use ry_flowable_plus; create table if not exists `qs_supplier` ( `supplier_id` bigint NOT NULL COMMENT '供应商Id', `supplier_name` varchar(100) COLLATE utf8mb4_bin NOT NULL COMMENT '供应商名称', `supplier_address` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '供应商地址', `supplier_contact` varchar(30) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '供应商联系人', `supplier_contact_num` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '供应商联系方式', `create_by` varchar(64) COLLATE utf8mb4_bin DEFAULT '' COMMENT '创建人', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) COLLATE utf8mb4_bin DEFAULT '' COMMENT '更新人', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `remark` varchar(500) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注', `del_flag` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT '0' COMMENT '逻辑删除标志', PRIMARY KEY (`supplier_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='供应商信息'; create table if not exists `qs_user_supplier` ( `user_id` bigint NOT NULL COMMENT '用户主键', `supplier_id` bigint NOT NULL COMMENT '供应商主键', PRIMARY KEY (`user_id`,`supplier_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='用户-供应商关联表'; create table if not exists qs_project( id bigint not null comment '模板Id', project_info longblob comment '模板信息', docker_user_id bigint not null comment '对接人Id', adopt_flag char(1) not null default '0' comment '是否采用', design_amount int not null default 0 comment '设计生产数量', create_by varchar(64) comment '创建人', create_time datetime comment '创建时间', update_by varchar(64) coment '更新人', update_time datetime comment '更新时间', remark varchar(500) comment '备注', del_flag char(1) not null default '0' comment '逻辑删除标志', primary key (id) ) comment '模板信息'; create table if not exists qs_operator_record( id bigint not null comment '记录Id', operator_id bigint not null comment '操作员Id', operation tinyint not null comment '操作类型', project_id bigint not null comment '对应样品模板', create_time datetime not null comment '记录时间', primary key (id) ) comment '操作员操作记录';