Create a product information database templates
The CREATE TABLE `goods_base` ( ` id` BIGINT ( 20 is ) the NOT NULL the AUTO_INCREMENT the COMMENT ' data identifier ID ' , `create_time` timestamp the NOT NULL the DEFAULT CURRENT_TIMESTAMP the COMMENT ' data creation time ' , ` modify_time` timestamp the NOT NULL the DEFAULT CURRENT_TIMESTAMP the ON the UPDATE CURRENT_TIMESTAMP the COMMENT ' data modification time ' , `is_deleted` tinyint ( . 1) The NOT NULL the DEFAULT ' 0 ' the COMMENT ' data is deleted ' , `line_time` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' on-line time ' , ` purchase` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' purchase ' , `mb_category_one` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' mother's boy a category ' , mb_category_three` `VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' mother's boy three categories ' , `yz_category_one` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' have a like category ' , ` yz_category_two` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' has two Like Category ' , `yzcode` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' have Like barcode ', `Goods_name` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' Product Name ' , ` supplier` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' supplier ' , `brand` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' brand ' , ` specification` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' standard ' , supplier_ways` ` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' stream mode ' , ` goods_ori_price` decimal ( 18 is , 2 ) the NOT NULL the COMMENT ' commodity price naked ' , `Postage` decimal ( 18 is , 2 ) the NOT NULL the COMMENT ' Free ' , ` ERP_ori_price` decimal ( 18 is , 2 ) the NOT NULLThe COMMENT ' the ERP purchase price ' , `yz_routine_price` decimal ( 18 is , 2 ) the NOT NULL the COMMENT ' regular price ' , ` yz_acvtie_price` decimal ( 18 is , 2 ) the NOT NULL the COMMENT ' activity price ' , `yz_routine_Rebate` decimal ( 18 is , 2 ) the NOT NULL the COMMENT ' conventional rebate amount ' , `yz_active_Rebate`decimal ( 18 is , 2 ) the NOT NULL the COMMENT ' activities rebate amount ' , `routine_profit_margin` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' conventional margin ' , ` activa_profit_margin` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' activities margin ' , `is_drainage` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' whether drainage ', `Rebate_percent` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' rebate ratio ' , ` routine_Rebate_percent` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' After the usual margin rebate ' , `active_Rebate_percent` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' After the usual margin rebate ' , `ERP_price` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT 'ERP retail price ' , `ERP_deliever_price` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' ERP distribution price ' , a PRIMARY KEY (` id`) the USING BTREE ) ENGINE = the InnoDB the AUTO_INCREMENT = 27266 the DEFAULT the CHARSET = utf8mb4;