+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_smpss_purchase:/tablelist/okayapi_smpss_purchase.html


-- MySQL Table okayapi_smpss_purchase
-- From: OkayAPI.com
CREATE TABLE `okayapi_smpss_purchase` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `goods_id` int(10) NOT NULL COMMENT '',
    `goods_sn` varchar(32) NOT NULL COMMENT '',
    `goods_name` varchar(100) NOT NULL COMMENT '',
    `cat_id` int(10) NOT NULL COMMENT '',
    `in_num` float NOT NULL COMMENT '进货数量',
    `out_num` float NOT NULL DEFAULT '0' COMMENT '销售数量',
    `in_price` decimal(8,2) NOT NULL COMMENT '进价',
    `dateymd` date NOT NULL COMMENT '进货时间',
    `dateline` int(10) NOT NULL COMMENT '',
    `isdel` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可用1不可用 0可用',
    KEY `goods_id` (`goods_id`),
    KEY `goods_sn` (`goods_sn`),
    KEY `goods_name` (`goods_name`),
    KEY `cat_id` (`cat_id`),
    KEY `in_num` (`in_num`),
    KEY `out_num` (`out_num`),
    KEY `in_price` (`in_price`),
    KEY `dateymd` (`dateymd`),
    KEY `dateline` (`dateline`),
    KEY `isdel` (`isdel`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '进销存-进货表';

After replication, you can go to the database to create the database table.


MySQL database table structure design

Displaying 1-10 of 10 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
goods_idint(10)Normal Index
goods_snvarchar(32)Normal Index
goods_namevarchar(100)
cat_idint(10)
in_numfloat进货数量
out_numfloat0销售数量0
in_pricedecimal(8,2)进价
dateymddate进货时间Normal Index
datelineint(10)
isdeltinyint(1)0是否可用1不可用 0可用0

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_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

MySQL Table Design okayapi_dberp_finance_payable

TOP ↑