MySQL Create Table SQL
Table Structure: okayapi_dberp_stock_check:/tablelist/okayapi_dberp_stock_check.html
-- MySQL Table okayapi_dberp_stock_check
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_stock_check` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`stock_check_sn` varchar(50) NOT NULL COMMENT '盘点单号',
`warehouse_id` int(11) NOT NULL COMMENT '仓库id',
`stock_check_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '盘点金额',
`stock_check_user` varchar(100) NOT NULL COMMENT '盘点人',
`stock_check_info` varchar(255) NOT NULL COMMENT '盘点备注',
`stock_check_time` int(10) NOT NULL COMMENT '盘点时间',
`stock_check_state` tinyint(1) NOT NULL DEFAULT '2' COMMENT '盘点状态,1 已盘点,2 待盘点',
`admin_id` int(11) NOT NULL COMMENT '管理员id',
KEY `stock_check_sn` (`stock_check_sn`),
KEY `warehouse_id` (`warehouse_id`),
KEY `stock_check_amount` (`stock_check_amount`),
KEY `stock_check_user` (`stock_check_user`),
KEY `stock_check_info` (`stock_check_info`),
KEY `stock_check_time` (`stock_check_time`),
KEY `stock_check_state` (`stock_check_state`),
KEY `admin_id` (`admin_id`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'DBErp进销存-商城订单商品';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-8 of 8 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
stock_check_sn | varchar(50) | 否 | 盘点单号 | |||
warehouse_id | int(11) | 否 | 仓库id | |||
stock_check_amount | decimal(19,4) | 0.0000 | 否 | 盘点金额 | 0.0000 | |
stock_check_user | varchar(100) | 否 | 盘点人 | |||
stock_check_info | varchar(255) | 否 | 盘点备注 | |||
stock_check_time | int(10) | 否 | 盘点时间 | |||
stock_check_state | tinyint(1) | 2 | 否 | 盘点状态,1 已盘点,2 待盘点 | 2 | |
admin_id | int(11) | 否 | 管理员id |