+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_jsh_materialcategory:/tablelist/okayapi_jsh_materialcategory.html


-- MySQL Table okayapi_jsh_materialcategory
-- From: OkayAPI.com
CREATE TABLE `okayapi_jsh_materialcategory` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `Id` bigint(20) NULL COMMENT '主键',
    `Name` varchar(50) NULL COMMENT '名称',
    `CategoryLevel` smallint(6) NULL COMMENT '等级',
    `ParentId` bigint(20) NULL COMMENT '上级ID',
    `sort` varchar(10) NULL COMMENT '显示顺序',
    `status` varchar(1) NULL DEFAULT '0' COMMENT '状态,0系统默认,1启用,2删除',
    `serial_no` varchar(100) NULL COMMENT '编号',
    `remark` varchar(1024) NULL COMMENT '备注',
    `create_time` datetime NULL COMMENT '创建时间',
    `creator` bigint(20) NULL COMMENT '创建人',
    `updater` bigint(20) NULL COMMENT '更新人',
    `tenant_id` bigint(20) NULL COMMENT '租户id',
    KEY `Id` (`Id`),
    KEY `Name` (`Name`),
    KEY `CategoryLevel` (`CategoryLevel`),
    KEY `ParentId` (`ParentId`),
    KEY `sort` (`sort`),
    KEY `status` (`status`),
    KEY `serial_no` (`serial_no`),
    KEY `remark` (`remark`),
    KEY `create_time` (`create_time`),
    KEY `creator` (`creator`),
    KEY `updater` (`updater`),
    KEY `tenant_id` (`tenant_id`),
    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-12 of 12 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
Idbigint(20)主键
Namevarchar(50)名称
CategoryLevelsmallint(6)等级
ParentIdbigint(20)上级IDNormal Index
sortvarchar(10)显示顺序
statusvarchar(1)0状态,0系统默认,1启用,2删除0
serial_novarchar(100)编号
remarkvarchar(1024)备注
create_timedatetime创建时间
creatorbigint(20)创建人
updaterbigint(20)更新人
tenant_idbigint(20)租户id

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 ↑