+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_dberp_sales_order:/tablelist/okayapi_dberp_sales_order.html


-- MySQL Table okayapi_dberp_sales_order
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_sales_order` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `sales_order_sn` varchar(50) NOT NULL COMMENT '销售订单编号',
    `customer_id` int(11) NOT NULL COMMENT '客户id',
    `customer_contacts` varchar(30) NOT NULL COMMENT '客户联系人',
    `customer_address` varchar(255) NOT NULL COMMENT '',
    `customer_phone` varchar(20) NOT NULL COMMENT '客户手机',
    `customer_telephone` varchar(20) NOT NULL COMMENT '客户电话',
    `sales_order_goods_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '客户购买商品金额',
    `sales_order_tax_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '商品税金',
    `sales_order_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '客户购买商品总额',
    `receivables_code` varchar(20) NOT NULL COMMENT '支付方式',
    `sales_order_state` tinyint(4) NOT NULL DEFAULT '0' COMMENT '销售状态',
    `sales_order_info` varchar(500) NOT NULL COMMENT '备注说明',
    `return_state` tinyint(2) NOT NULL DEFAULT '0' COMMENT '退货状态',
    `admin_id` int(11) NOT NULL COMMENT '操作者id',
    KEY `sales_order_sn` (`sales_order_sn`),
    KEY `customer_id` (`customer_id`),
    KEY `customer_contacts` (`customer_contacts`),
    KEY `customer_address` (`customer_address`),
    KEY `customer_phone` (`customer_phone`),
    KEY `customer_telephone` (`customer_telephone`),
    KEY `sales_order_goods_amount` (`sales_order_goods_amount`),
    KEY `sales_order_tax_amount` (`sales_order_tax_amount`),
    KEY `sales_order_amount` (`sales_order_amount`),
    KEY `receivables_code` (`receivables_code`),
    KEY `sales_order_state` (`sales_order_state`),
    KEY `sales_order_info` (`sales_order_info`),
    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-14 of 14 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
sales_order_snvarchar(50)销售订单编号
customer_idint(11)客户id
customer_contactsvarchar(30)客户联系人
customer_addressvarchar(255)
customer_phonevarchar(20)客户手机
customer_telephonevarchar(20)客户电话
sales_order_goods_amountdecimal(19,4)0.0000客户购买商品金额0.0000
sales_order_tax_amountdecimal(19,4)0.0000商品税金0.0000
sales_order_amountdecimal(19,4)0.0000客户购买商品总额0.0000
receivables_codevarchar(20)支付方式
sales_order_statetinyint(4)0销售状态0
sales_order_infovarchar(500)备注说明
return_statetinyint(2)0退货状态0
admin_idint(11)操作者id

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 ↑