+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
goods_numbervarchar(30)商品编号
goods_specvarchar(100)商品规格
goods_unitvarchar(20)商品单位,非对应id,单位名称
p_goods_buy_numint(11)商品购买数量
p_goods_pricedecimal(19,4)0.0000商品购买的单价0.0000
p_goods_taxdecimal(19,4)0.0000商品税金0.0000
p_goods_amountdecimal(19,4)0.0000商品总金额0.0000
p_goods_infovarchar(255)商品备注
p_order_idint(11)采购单id
goods_idint(11)商品id
goods_namevarchar(100)商品名称

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 ↑