+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
p_order_snvarchar(50)采购单编号
supplier_idint(11)供应商id
supplier_contactsvarchar(30)供应商联系人
supplier_phonevarchar(20)手机号码
supplier_telephonevarchar(20)座机号码
p_order_goods_amountdecimal(19,4)0.0000商品总额0.0000
p_order_tax_amountdecimal(19,4)0.0000税金总额0.0000
p_order_amountdecimal(19,4)0.0000订单总额0.0000
p_order_infovarchar(500)备注信息
p_order_statetinyint(4)0采购单状态,0 未审核,1 已审核,2 已入库,-1 退货,-2 退货完成0
payment_codevarchar(20)
return_statetinyint(2)00
admin_idint(11)

Guess You Like

MySQL Table Design okayapi_smpss_admin

MySQL Table Design okayapi_smpss_category

MySQL Table Design okayapi_smpss_goods

MySQL Table Design okayapi_smpss_group

MySQL Table Design okayapi_smpss_log

MySQL Table Design okayapi_smpss_mbgroup

MySQL Table Design okayapi_smpss_member

MySQL Table Design okayapi_smpss_purchase

MySQL Table Design okayapi_smpss_region

MySQL Table Design okayapi_smpss_sales

MySQL Table Design okayapi_smpss_system

MySQL Table Design okayapi_smpss_tempsales

MySQL Table Design okayapi_dberp_accounts_receivable

MySQL Table Design okayapi_dberp_accounts_receivable_log

MySQL Table Design okayapi_dberp_admin

MySQL Table Design okayapi_dberp_admin_group

MySQL Table Design okayapi_dberp_app

MySQL Table Design okayapi_dberp_brand

MySQL Table Design okayapi_dberp_customer

MySQL Table Design okayapi_dberp_customer_category

TOP ↑