MySQL Create Table SQL
Table Structure: okayapi_dberp_purchase_order:/tablelist/okayapi_dberp_purchase_order.html
-- MySQL Table okayapi_dberp_purchase_order
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_purchase_order` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`p_order_sn` varchar(50) NOT NULL COMMENT '采购单编号',
`supplier_id` int(11) NOT NULL COMMENT '供应商id',
`supplier_contacts` varchar(30) NOT NULL COMMENT '供应商联系人',
`supplier_phone` varchar(20) NOT NULL COMMENT '手机号码',
`supplier_telephone` varchar(20) NOT NULL COMMENT '座机号码',
`p_order_goods_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '商品总额',
`p_order_tax_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '税金总额',
`p_order_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '订单总额',
`p_order_info` varchar(500) NOT NULL COMMENT '备注信息',
`p_order_state` tinyint(4) NOT NULL DEFAULT '0' COMMENT '采购单状态,0 未审核,1 已审核,2 已入库,-1 退货,-2 退货完成',
`payment_code` varchar(20) NOT NULL COMMENT '',
`return_state` tinyint(2) NOT NULL DEFAULT '0' COMMENT '',
`admin_id` int(11) NOT NULL COMMENT '',
KEY `p_order_sn` (`p_order_sn`),
KEY `supplier_id` (`supplier_id`),
KEY `supplier_contacts` (`supplier_contacts`),
KEY `supplier_phone` (`supplier_phone`),
KEY `supplier_telephone` (`supplier_telephone`),
KEY `p_order_goods_amount` (`p_order_goods_amount`),
KEY `p_order_tax_amount` (`p_order_tax_amount`),
KEY `p_order_amount` (`p_order_amount`),
KEY `p_order_info` (`p_order_info`),
KEY `p_order_state` (`p_order_state`),
KEY `payment_code` (`payment_code`),
KEY `return_state` (`return_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-13 of 13 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
p_order_sn | varchar(50) | 否 | 采购单编号 | |||
supplier_id | int(11) | 否 | 供应商id | |||
supplier_contacts | varchar(30) | 否 | 供应商联系人 | |||
supplier_phone | varchar(20) | 是 | 手机号码 | |||
supplier_telephone | varchar(20) | 是 | 座机号码 | |||
p_order_goods_amount | decimal(19,4) | 0.0000 | 是 | 商品总额 | 0.0000 | |
p_order_tax_amount | decimal(19,4) | 0.0000 | 是 | 税金总额 | 0.0000 | |
p_order_amount | decimal(19,4) | 0.0000 | 是 | 订单总额 | 0.0000 | |
p_order_info | varchar(500) | 是 | 备注信息 | |||
p_order_state | tinyint(4) | 0 | 是 | 采购单状态,0 未审核,1 已审核,2 已入库,-1 退货,-2 退货完成 | 0 | |
payment_code | varchar(20) | 否 | ||||
return_state | tinyint(2) | 0 | 是 | 0 | ||
admin_id | int(11) | 否 |