diff --git a/scripts/vue-admin-zz.sql b/scripts/vue-admin-zz.sql index 61e9c72..3cdce6c 100644 --- a/scripts/vue-admin-zz.sql +++ b/scripts/vue-admin-zz.sql @@ -381,3 +381,41 @@ CREATE TABLE `pur_plan_detail` ( SET FOREIGN_KEY_CHECKS = 1; + + +alter table sup_manufacturer Add column createTime datetime(0) DEFAULT NULL COMMENT '创建时间'; +alter table sup_manufacturer Add column updateTime datetime(0) DEFAULT NULL COMMENT '更新时间'; +alter table sup_product Add column createTime datetime(0) DEFAULT NULL COMMENT '创建时间'; +alter table sup_product Add column updateTime datetime(0) DEFAULT NULL COMMENT '更新时间'; + + +alter table sup_manufacturer DROP COLUMN create_date; +alter table sup_manufacturer DROP COLUMN update_date; +alter table sup_product DROP COLUMN create_date; +alter table sup_product DROP COLUMN update_date; + + + +alter table pur_apply Add column targetInv VARCHAR(64) DEFAULT NULL COMMENT '目标仓库'; +alter table pur_apply Add column targetSubInv VARCHAR(64) DEFAULT NULL COMMENT '目标分库'; + + +alter table pur_apply modify column billType varchar(60); +alter table pur_plan modify column billType varchar(60); + + + + +alter table sup_company add unique index uniquekey(customerId); +alter table sup_manufacturer add unique index uniquekey(manufacturerId,customerId); +alter table sup_product add unique index uniquekey(productId,manufacturerIdFk,customerId); + + + +alter table sync_data_set Add column unCheckCert TINYINT(0) DEFAULT NULL COMMENT '未审核'; +alter table sync_data_set Add column checkedCert TINYINT(0) DEFAULT NULL COMMENT '已审核'; +alter table sync_data_set Add column companyCert TINYINT(0) DEFAULT NULL COMMENT '企业证书'; +alter table sync_data_set Add column manufacturerCert TINYINT(0) DEFAULT NULL COMMENT '生产企业证书'; +alter table sync_data_set Add column productCert TINYINT(0) DEFAULT NULL COMMENT '产品证书'; + +