localhost_oa_based/deploy/sql/raw_materials_inventory.sql

23 lines
1.2 KiB
MySQL
Raw Normal View History

2024-02-29 10:32:37 +08:00
CREATE TABLE `materials_inventory`(
id INT AUTO_INCREMENT PRIMARY KEY COMMENT 'ID',
company_name VARCHAR(255) COMMENT '公司名称',
product_name VARCHAR(255) COMMENT '产品名称',
unit VARCHAR(50) COMMENT '单位',
previous_inventory_quantity INT COMMENT '之前的库存数量',
previous_unit_price DECIMAL(10, 2) COMMENT '之前的单价',
previous_amount DECIMAL(10, 2) COMMENT '之前的金额',
inventory_time DATETIME COMMENT '入库时间',
inventory_quantity INT COMMENT '入库后数量',
inventory_unit_price DECIMAL(10, 2) COMMENT '入库后单价',
inventory_amount DECIMAL(10, 2) COMMENT '入库金额',
out_time DATETIME COMMENT '出库时间',
out_quantity INT COMMENT '出库数量',
out_unit_price DECIMAL(10, 2) COMMENT '出库单价',
out_amount DECIMAL(10, 2) COMMENT '出库金额',
current_inventory_quantity INT COMMENT '现在的结存数量',
current_unit_price DECIMAL(10, 2) COMMENT '现在的单价',
current_amount DECIMAL(10, 2) COMMENT '现在的金额',
agent VARCHAR(100) COMMENT '经办人',
issuance_number VARCHAR(100) COMMENT '领料单号',
remark VARCHAR(255) COMMENT '备注'
);