530.sql 1.92 KB
CREATE TABLE yh_shops.`hot_search_brand` (
  `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  
  `brand_name` VARCHAR(255) DEFAULT NULL COMMENT '品牌名称',
  `brand_id` INT(11) COMMENT '品牌id',
  `order_by` INT(11) COMMENT '排序',
  `status` SMALLINT(5) UNSIGNED DEFAULT '1' COMMENT '状态 0停用 1 启用',  
  `creator_id` INT(10) UNSIGNED DEFAULT '0',
  `creator_name` VARCHAR(255) DEFAULT NULL,
  `create_time` INT(11) DEFAULT '0',
  `modify_id` INT(10) UNSIGNED DEFAULT '0',
  `modify_name` VARCHAR(255) DEFAULT NULL,
  `modify_time` INT(10) UNSIGNED DEFAULT '0',  
  PRIMARY KEY `id` (`id`) 
) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;




-- 网销页面增加skn的所有skc是否都已上架状态
Alter table erp_product.product add column skc_onsale_status tinyint(4) NOT NULL DEFAULT '0' comment '是否skc都已经上架, 1代表是 0代表否';
update erp_product.product set skc_onsale_status = 1;



ALTER TABLE erp_supplier.supplier MODIFY `registered_capital` VARCHAR(100)  NOT NULL DEFAULT '0' COMMENT '注册资本';

ALTER TABLE erp_supplier.supplier_check MODIFY `registered_capital` VARCHAR(100)  NOT NULL DEFAULT '0' COMMENT '注册资本';



-- yh_opearations
ALTER TABLE yh_opearations.suggest
ADD COLUMN `reply_person_id`  varchar(50) NULL DEFAULT '' COMMENT '回复人姓名' AFTER `reply_content`
ADD COLUMN `reply_person_name`  varchar(50) NULL DEFAULT '' COMMENT '回复人id' AFTER `reply_content`;

CREATE TABLE yh_opearations.suggest_reply_person (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `reply_person_id` varchar(250) DEFAULT NULL,
  `reply_person_name` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT=' 反馈管理-反馈人信息';




ALTER TABLE yh_shops.product_timing ADD COLUMN `out_sale_flag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '预下架标识', ADD COLUMN `on_sale_flag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '预上架标识';