MySQL Create Table SQL
Table Structure: okayapi_dberp_goods:/tablelist/okayapi_dberp_goods.html
-- MySQL Table okayapi_dberp_goods
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_goods` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`goods_category_id` int(11) NOT NULL COMMENT '',
`brand_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
`goods_name` varchar(100) NOT NULL COMMENT '',
`goods_stock` int(11) NOT NULL DEFAULT '0' COMMENT '',
`goods_spec` varchar(100) NOT NULL COMMENT '',
`goods_number` varchar(30) NOT NULL COMMENT '',
`unit_id` int(11) NOT NULL COMMENT '',
`goods_barcode` varchar(30) NOT NULL COMMENT '',
`goods_info` varchar(500) NOT NULL COMMENT '',
`goods_sort` int(11) NOT NULL DEFAULT '255' COMMENT '',
`goods_price` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
`admin_id` int(11) NOT NULL COMMENT '',
`goods_recommend_price` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
KEY `goods_category_id` (`goods_category_id`),
KEY `brand_id` (`brand_id`),
KEY `goods_name` (`goods_name`),
KEY `goods_stock` (`goods_stock`),
KEY `goods_spec` (`goods_spec`),
KEY `goods_number` (`goods_number`),
KEY `unit_id` (`unit_id`),
KEY `goods_barcode` (`goods_barcode`),
KEY `goods_info` (`goods_info`),
KEY `goods_sort` (`goods_sort`),
KEY `goods_price` (`goods_price`),
KEY `admin_id` (`admin_id`),
KEY `goods_recommend_price` (`goods_recommend_price`),
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-13 of 13 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
goods_category_id | int(11) | 否 | ||||
brand_id | int(11) | 0 | 是 | 0 | ||
goods_name | varchar(100) | 否 | ||||
goods_stock | int(11) | 0 | 是 | 0 | ||
goods_spec | varchar(100) | 是 | ||||
goods_number | varchar(30) | 否 | ||||
unit_id | int(11) | 否 | ||||
goods_barcode | varchar(30) | 是 | ||||
goods_info | varchar(500) | 是 | ||||
goods_sort | int(11) | 255 | 否 | 255 | ||
goods_price | decimal(19,4) | 0.0000 | 是 | 0.0000 | ||
admin_id | int(11) | 否 | ||||
goods_recommend_price | decimal(19,4) | 0.0000 | 否 | 0.0000 |