MySQL Create Table SQL
Table Structure: okayapi_smpss_purchase:/tablelist/okayapi_smpss_purchase.html
-- MySQL Table okayapi_smpss_purchase
-- From: OkayAPI.com
CREATE TABLE `okayapi_smpss_purchase` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`goods_id` int(10) NOT NULL COMMENT '',
`goods_sn` varchar(32) NOT NULL COMMENT '',
`goods_name` varchar(100) NOT NULL COMMENT '',
`cat_id` int(10) NOT NULL COMMENT '',
`in_num` float NOT NULL COMMENT '进货数量',
`out_num` float NOT NULL DEFAULT '0' COMMENT '销售数量',
`in_price` decimal(8,2) NOT NULL COMMENT '进价',
`dateymd` date NOT NULL COMMENT '进货时间',
`dateline` int(10) NOT NULL COMMENT '',
`isdel` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可用1不可用 0可用',
KEY `goods_id` (`goods_id`),
KEY `goods_sn` (`goods_sn`),
KEY `goods_name` (`goods_name`),
KEY `cat_id` (`cat_id`),
KEY `in_num` (`in_num`),
KEY `out_num` (`out_num`),
KEY `in_price` (`in_price`),
KEY `dateymd` (`dateymd`),
KEY `dateline` (`dateline`),
KEY `isdel` (`isdel`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '进销存-进货表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-10 of 10 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
goods_id | int(10) | 否 | Normal Index | |||
goods_sn | varchar(32) | 否 | Normal Index | |||
goods_name | varchar(100) | 否 | ||||
cat_id | int(10) | 否 | ||||
in_num | float | 否 | 进货数量 | |||
out_num | float | 0 | 否 | 销售数量 | 0 | |
in_price | decimal(8,2) | 否 | 进价 | |||
dateymd | date | 否 | 进货时间 | Normal Index | ||
dateline | int(10) | 否 | ||||
isdel | tinyint(1) | 0 | 否 | 是否可用1不可用 0可用 | 0 |