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.
87 lines
4.1 KiB
87 lines
4.1 KiB
|
|
DROP TABLE IF EXISTS `report_inventory_day_gather`;
|
|
CREATE TABLE `report_inventory_day_gather` (
|
|
`id` BIGINT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号',
|
|
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
|
|
`remarks` VARCHAR(100) DEFAULT NULL COMMENT '备注说明',
|
|
`orderDate` VARCHAR(100) DEFAULT NULL COMMENT '单据日期',
|
|
|
|
`serialNumber` VARCHAR(100) DEFAULT NULL COMMENT '编号',
|
|
`reportTime` VARCHAR(100) DEFAULT NULL COMMENT '上报时间',
|
|
|
|
`storeType` VARCHAR(100) DEFAULT NULL COMMENT '仓库类型',
|
|
`storeNumber` int(11) DEFAULT 1 COMMENT '仓库数量',
|
|
`productCountNumber` int(11) DEFAULT 1 COMMENT '品种数量',
|
|
`productAmount` DOUBLE(12,2) DEFAULT 0 COMMENT '货值',
|
|
|
|
`countAmount` DOUBLE(12,2) DEFAULT 0 COMMENT '合计货值',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE=InnoDB COMMENT='库存汇总表-库存汇总日报表';
|
|
|
|
|
|
DROP TABLE IF EXISTS `report_inventory_day_store`;
|
|
CREATE TABLE `report_inventory_day_store` (
|
|
`id` BIGINT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号',
|
|
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
|
|
`remarks` VARCHAR(100) DEFAULT NULL COMMENT '备注说明',
|
|
`orderDate` VARCHAR(100) DEFAULT NULL COMMENT '单据日期',
|
|
|
|
`serialNumber` VARCHAR(100) DEFAULT NULL COMMENT '编号',
|
|
`reportTime` VARCHAR(100) DEFAULT NULL COMMENT '上报时间',
|
|
|
|
`warehouseType` int(11) DEFAULT NULL COMMENT '仓库类型',
|
|
`storeCode` VARCHAR(100) DEFAULT NULL COMMENT '门店编号',
|
|
`storeCodeName` VARCHAR(100) DEFAULT NULL COMMENT '[门店编号]门店名称',
|
|
`productCountNumber` int(11) DEFAULT 1 COMMENT '品种数量',
|
|
`productAmount` DOUBLE(12,2) DEFAULT 0 COMMENT '货值',
|
|
`countAmount` double(12,2) DEFAULT NULL COMMENT '合计货值',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE=InnoDB COMMENT='库存汇总表-仓库库存明细表';
|
|
|
|
|
|
DROP TABLE IF EXISTS `report_inventory_day_tobacco_store`;
|
|
CREATE TABLE `report_inventory_day_tobacco_store` (
|
|
`id` BIGINT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号',
|
|
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
|
|
`remarks` VARCHAR(100) DEFAULT NULL COMMENT '备注说明',
|
|
`orderDate` VARCHAR(100) DEFAULT NULL COMMENT '单据日期',
|
|
|
|
`serialNumber` VARCHAR(100) DEFAULT NULL COMMENT '编号',
|
|
`reportTime` VARCHAR(100) DEFAULT NULL COMMENT '上报时间',
|
|
|
|
`warehouseType` int(11) DEFAULT NULL COMMENT '仓库类型',
|
|
`storeCode` VARCHAR(100) DEFAULT NULL COMMENT '门店编号',
|
|
`storeCodeName` VARCHAR(100) DEFAULT NULL COMMENT '[门店编号]门店名称',
|
|
`productCountNumber` int(11) DEFAULT 1 COMMENT '品种数量',
|
|
`productAmount` DOUBLE(12,2) DEFAULT 0 COMMENT '货值',
|
|
`countAmount` double(12,2) DEFAULT NULL COMMENT '合计货值',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE=InnoDB COMMENT='库存汇总表-烟草仓库库存明细表';
|
|
|
|
|
|
DROP TABLE IF EXISTS `report_inventory_day_product`;
|
|
CREATE TABLE `report_inventory_day_product` (
|
|
`id` BIGINT(32) NOT NULL AUTO_INCREMENT COMMENT 'ID,唯一编号',
|
|
`createTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
|
|
`remarks` VARCHAR(100) DEFAULT NULL COMMENT '备注说明',
|
|
`orderDate` VARCHAR(100) DEFAULT NULL COMMENT '单据日期',
|
|
|
|
`serialNumber` VARCHAR(100) DEFAULT NULL COMMENT '编号',
|
|
`productNumber` VARCHAR(100) DEFAULT NULL COMMENT '商品数量',
|
|
`reportTime` VARCHAR(100) DEFAULT NULL COMMENT '上报时间',
|
|
|
|
`prodCode` varchar(100) DEFAULT NULL COMMENT '商品编码',
|
|
`prodBarCode` varchar(100) DEFAULT NULL COMMENT '商品条码',
|
|
`prodName` varchar(100) DEFAULT NULL COMMENT '商品名称',
|
|
`prodNum` int(11) DEFAULT NULL COMMENT '商品数量',
|
|
`prodValue` double(12,2) DEFAULT NULL COMMENT '商品货值',
|
|
`typeCode` varchar(100) DEFAULT NULL COMMENT '类别编号',
|
|
`typeName` varchar(100) DEFAULT NULL COMMENT '类别名称',
|
|
`typeOne` varchar(100) DEFAULT NULL COMMENT '一级类别名称',
|
|
`typeTwo` varchar(100) DEFAULT NULL COMMENT '二级类别名称',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE=InnoDB COMMENT='库存汇总表-商品库存';
|