MySQL Create Table SQL
Table Structure: okayapi_dberp_purchase_order_goods:/tablelist/okayapi_dberp_purchase_order_goods.html
-- MySQL Table okayapi_dberp_purchase_order_goods
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_purchase_order_goods` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`goods_number` varchar(30) NOT NULL COMMENT '商品编号',
`goods_spec` varchar(100) NOT NULL COMMENT '商品规格',
`goods_unit` varchar(20) NOT NULL COMMENT '商品单位,非对应id,单位名称',
`p_goods_buy_num` int(11) NOT NULL COMMENT '商品购买数量',
`p_goods_price` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '商品购买的单价',
`p_goods_tax` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '商品税金',
`p_goods_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '商品总金额',
`p_goods_info` varchar(255) NOT NULL COMMENT '商品备注',
`p_order_id` int(11) NOT NULL COMMENT '采购单id',
`goods_id` int(11) NOT NULL COMMENT '商品id',
`goods_name` varchar(100) NOT NULL COMMENT '商品名称',
KEY `goods_number` (`goods_number`),
KEY `goods_spec` (`goods_spec`),
KEY `goods_unit` (`goods_unit`),
KEY `p_goods_buy_num` (`p_goods_buy_num`),
KEY `p_goods_price` (`p_goods_price`),
KEY `p_goods_tax` (`p_goods_tax`),
KEY `p_goods_amount` (`p_goods_amount`),
KEY `p_goods_info` (`p_goods_info`),
KEY `p_order_id` (`p_order_id`),
KEY `goods_id` (`goods_id`),
KEY `goods_name` (`goods_name`),
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-11 of 11 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
goods_number | varchar(30) | 否 | 商品编号 | |||
goods_spec | varchar(100) | 是 | 商品规格 | |||
goods_unit | varchar(20) | 是 | 商品单位,非对应id,单位名称 | |||
p_goods_buy_num | int(11) | 否 | 商品购买数量 | |||
p_goods_price | decimal(19,4) | 0.0000 | 否 | 商品购买的单价 | 0.0000 | |
p_goods_tax | decimal(19,4) | 0.0000 | 否 | 商品税金 | 0.0000 | |
p_goods_amount | decimal(19,4) | 0.0000 | 否 | 商品总金额 | 0.0000 | |
p_goods_info | varchar(255) | 是 | 商品备注 | |||
p_order_id | int(11) | 否 | 采购单id | |||
goods_id | int(11) | 否 | 商品id | |||
goods_name | varchar(100) | 否 | 商品名称 |