+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_jsh_material:/tablelist/okayapi_jsh_material.html


-- MySQL Table okayapi_jsh_material
-- From: OkayAPI.com
CREATE TABLE `okayapi_jsh_material` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `Id` bigint(20) NULL COMMENT '主键',
    `CategoryId` bigint(20) NULL COMMENT '产品类型',
    `Name` varchar(50) NULL COMMENT '名称',
    `Mfrs` varchar(50) NULL COMMENT '制造商',
    `Packing` decimal(24,6) NULL COMMENT '包装(KG/包)',
    `SafetyStock` decimal(24,6) NULL COMMENT '安全存量(KG)',
    `Model` varchar(50) NULL COMMENT '型号',
    `Standard` varchar(50) NULL COMMENT '规格',
    `Color` varchar(50) NULL COMMENT '颜色',
    `Unit` varchar(50) NULL COMMENT '单位-单个',
    `Remark` varchar(100) NULL COMMENT '备注',
    `RetailPrice` decimal(24,6) NULL COMMENT '零售价',
    `LowPrice` decimal(24,6) NULL COMMENT '最低售价',
    `PresetPriceOne` decimal(24,6) NULL COMMENT '预设售价一',
    `PresetPriceTwo` decimal(24,6) NULL COMMENT '预设售价二',
    `UnitId` bigint(20) NULL COMMENT '计量单位Id',
    `FirstOutUnit` varchar(50) NULL COMMENT '首选出库单位',
    `FirstInUnit` varchar(50) NULL COMMENT '首选入库单位',
    `PriceStrategy` varchar(500) NULL COMMENT '价格策略',
    `Enabled` bit(1) NULL COMMENT '启用 0-禁用  1-启用',
    `OtherField1` varchar(50) NULL COMMENT '自定义1',
    `OtherField2` varchar(50) NULL COMMENT '自定义2',
    `OtherField3` varchar(50) NULL COMMENT '自定义3',
    `enableSerialNumber` varchar(1) NULL DEFAULT '0' COMMENT '是否开启序列号,0否,1是',
    `tenant_id` bigint(20) NULL COMMENT '租户id',
    `delete_Flag` varchar(1) NULL DEFAULT '0' COMMENT '删除标记,0未删除,1删除',
    KEY `Id` (`Id`),
    KEY `CategoryId` (`CategoryId`),
    KEY `Name` (`Name`),
    KEY `Mfrs` (`Mfrs`),
    KEY `Packing` (`Packing`),
    KEY `SafetyStock` (`SafetyStock`),
    KEY `Model` (`Model`),
    KEY `Standard` (`Standard`),
    KEY `Color` (`Color`),
    KEY `Unit` (`Unit`),
    KEY `Remark` (`Remark`),
    KEY `RetailPrice` (`RetailPrice`),
    KEY `LowPrice` (`LowPrice`),
    KEY `PresetPriceOne` (`PresetPriceOne`),
    KEY `PresetPriceTwo` (`PresetPriceTwo`),
    KEY `UnitId` (`UnitId`),
    KEY `FirstOutUnit` (`FirstOutUnit`),
    KEY `FirstInUnit` (`FirstInUnit`),
    KEY `PriceStrategy` (`PriceStrategy`),
    KEY `Enabled` (`Enabled`),
    KEY `OtherField1` (`OtherField1`),
    KEY `OtherField2` (`OtherField2`),
    KEY `OtherField3` (`OtherField3`),
    KEY `enableSerialNumber` (`enableSerialNumber`),
    KEY `tenant_id` (`tenant_id`),
    KEY `delete_Flag` (`delete_Flag`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ERP进销存-产品表';

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


MySQL database table structure design

Displaying 1-26 of 26 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
Idbigint(20)主键
CategoryIdbigint(20)产品类型Normal Index
Namevarchar(50)名称
Mfrsvarchar(50)制造商
Packingdecimal(24,6)包装(KG/包)
SafetyStockdecimal(24,6)安全存量(KG)
Modelvarchar(50)型号
Standardvarchar(50)规格
Colorvarchar(50)颜色
Unitvarchar(50)单位-单个
Remarkvarchar(100)备注
RetailPricedecimal(24,6)零售价
LowPricedecimal(24,6)最低售价
PresetPriceOnedecimal(24,6)预设售价一
PresetPriceTwodecimal(24,6)预设售价二
UnitIdbigint(20)计量单位IdNormal Index
FirstOutUnitvarchar(50)首选出库单位
FirstInUnitvarchar(50)首选入库单位
PriceStrategyvarchar(500)价格策略
Enabledbit(1)启用 0-禁用 1-启用
OtherField1varchar(50)自定义1
OtherField2varchar(50)自定义2
OtherField3varchar(50)自定义3
enableSerialNumbervarchar(1)0是否开启序列号,0否,1是0
tenant_idbigint(20)租户id
delete_Flagvarchar(1)0删除标记,0未删除,1删除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_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 ↑