+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_dberp_sales_order_goods:/tablelist/okayapi_dberp_sales_order_goods.html


-- MySQL Table okayapi_dberp_sales_order_goods
-- From: OkayAPI.com
CREATE TABLE `okayapi_dberp_sales_order_goods` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `sales_order_id` int(11) NULL COMMENT '销售订单id',
    `goods_id` int(11) NULL COMMENT '商品id',
    `goods_name` varchar(100) NULL COMMENT '商品名称',
    `goods_number` varchar(30) NULL COMMENT '商品编号',
    `goods_spec` varchar(100) NULL COMMENT '商品规格',
    `goods_unit` varchar(20) NULL COMMENT '商品单位',
    `sales_goods_sell_num` int(11) NULL COMMENT '销售商品数量',
    `sales_goods_price` decimal(19,4) NULL DEFAULT '0.0000' COMMENT '',
    `sales_goods_tax` decimal(19,4) NULL DEFAULT '0.0000' COMMENT '',
    `sales_goods_amount` decimal(19,4) NULL DEFAULT '0.0000' COMMENT '',
    `sales_goods_info` varchar(255) NULL COMMENT '',
    KEY `sales_order_id` (`sales_order_id`),
    KEY `goods_id` (`goods_id`),
    KEY `goods_name` (`goods_name`),
    KEY `goods_number` (`goods_number`),
    KEY `goods_spec` (`goods_spec`),
    KEY `goods_unit` (`goods_unit`),
    KEY `sales_goods_sell_num` (`sales_goods_sell_num`),
    KEY `sales_goods_price` (`sales_goods_price`),
    KEY `sales_goods_tax` (`sales_goods_tax`),
    KEY `sales_goods_amount` (`sales_goods_amount`),
    KEY `sales_goods_info` (`sales_goods_info`),
    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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
sales_order_idint(11)销售订单id
goods_idint(11)商品id
goods_namevarchar(100)商品名称
goods_numbervarchar(30)商品编号
goods_specvarchar(100)商品规格
goods_unitvarchar(20)商品单位
sales_goods_sell_numint(11)销售商品数量
sales_goods_pricedecimal(19,4)0.00000.0000
sales_goods_taxdecimal(19,4)0.00000.0000
sales_goods_amountdecimal(19,4)0.00000.0000
sales_goods_infovarchar(255)

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 ↑