+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_jsh_depotitem:/tablelist/okayapi_jsh_depotitem.html


-- MySQL Table okayapi_jsh_depotitem
-- From: OkayAPI.com
CREATE TABLE `okayapi_jsh_depotitem` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `Id` bigint(20) NULL COMMENT '主键',
    `HeaderId` bigint(20) NULL COMMENT '表头Id',
    `MaterialId` bigint(20) NULL COMMENT '材料Id',
    `MUnit` varchar(20) NULL COMMENT '商品计量单位',
    `OperNumber` decimal(24,6) NULL COMMENT '数量',
    `BasicNumber` decimal(24,6) NULL COMMENT '基础数量,如kg、瓶',
    `UnitPrice` decimal(24,6) NULL COMMENT '单价',
    `TaxUnitPrice` decimal(24,6) NULL COMMENT '含税单价',
    `AllPrice` decimal(24,6) NULL COMMENT '金额',
    `Remark` varchar(200) NULL COMMENT '描述',
    `Img` varchar(50) NULL COMMENT '图片',
    `Incidentals` decimal(24,6) NULL COMMENT '运杂费',
    `DepotId` bigint(20) NULL COMMENT '仓库ID(库存是统计出来的)',
    `AnotherDepotId` bigint(20) NULL COMMENT '调拨时,对方仓库Id',
    `TaxRate` decimal(24,6) NULL COMMENT '税率',
    `TaxMoney` decimal(24,6) NULL COMMENT '税额',
    `TaxLastMoney` decimal(24,6) NULL COMMENT '价税合计',
    `OtherField1` varchar(50) NULL COMMENT '自定义字段1-品名',
    `OtherField2` varchar(50) NULL COMMENT '自定义字段2-型号',
    `OtherField3` varchar(50) NULL COMMENT '自定义字段3-制造商',
    `OtherField4` varchar(50) NULL COMMENT '自定义字段4',
    `OtherField5` varchar(50) NULL COMMENT '自定义字段5',
    `MType` varchar(20) NULL COMMENT '商品类型',
    `tenant_id` bigint(20) NULL COMMENT '租户id',
    `delete_Flag` varchar(1) NULL DEFAULT '0' COMMENT '删除标记,0未删除,1删除',
    KEY `Id` (`Id`),
    KEY `HeaderId` (`HeaderId`),
    KEY `MaterialId` (`MaterialId`),
    KEY `MUnit` (`MUnit`),
    KEY `OperNumber` (`OperNumber`),
    KEY `BasicNumber` (`BasicNumber`),
    KEY `UnitPrice` (`UnitPrice`),
    KEY `TaxUnitPrice` (`TaxUnitPrice`),
    KEY `AllPrice` (`AllPrice`),
    KEY `Remark` (`Remark`),
    KEY `Img` (`Img`),
    KEY `Incidentals` (`Incidentals`),
    KEY `DepotId` (`DepotId`),
    KEY `AnotherDepotId` (`AnotherDepotId`),
    KEY `TaxRate` (`TaxRate`),
    KEY `TaxMoney` (`TaxMoney`),
    KEY `TaxLastMoney` (`TaxLastMoney`),
    KEY `OtherField1` (`OtherField1`),
    KEY `OtherField2` (`OtherField2`),
    KEY `OtherField3` (`OtherField3`),
    KEY `OtherField4` (`OtherField4`),
    KEY `OtherField5` (`OtherField5`),
    KEY `MType` (`MType`),
    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-25 of 25 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
Idbigint(20)主键
HeaderIdbigint(20)表头IdNormal Index
MaterialIdbigint(20)材料IdNormal Index
MUnitvarchar(20)商品计量单位
OperNumberdecimal(24,6)数量
BasicNumberdecimal(24,6)基础数量,如kg、瓶
UnitPricedecimal(24,6)单价
TaxUnitPricedecimal(24,6)含税单价
AllPricedecimal(24,6)金额
Remarkvarchar(200)描述
Imgvarchar(50)图片
Incidentalsdecimal(24,6)运杂费
DepotIdbigint(20)仓库ID(库存是统计出来的)Normal Index
AnotherDepotIdbigint(20)调拨时,对方仓库IdNormal Index
TaxRatedecimal(24,6)税率
TaxMoneydecimal(24,6)税额
TaxLastMoneydecimal(24,6)价税合计
OtherField1varchar(50)自定义字段1-品名
OtherField2varchar(50)自定义字段2-型号
OtherField3varchar(50)自定义字段3-制造商
OtherField4varchar(50)自定义字段4
OtherField5varchar(50)自定义字段5
MTypevarchar(20)商品类型
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 ↑