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 Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
Id | bigint(20) | 否 | 主键 | |||
Name | varchar(50) | 是 | 名称 | |||
CategoryLevel | smallint(6) | 是 | 等级 | |||
ParentId | bigint(20) | 是 | 上级ID | Normal Index | ||
sort | varchar(10) | 是 | 显示顺序 | |||
status | varchar(1) | 0 | 是 | 状态,0系统默认,1启用,2删除 | 0 | |
serial_no | varchar(100) | 是 | 编号 | |||
remark | varchar(1024) | 是 | 备注 | |||
create_time | datetime | 是 | 创建时间 | |||
creator | bigint(20) | 是 | 创建人 | |||
updater | bigint(20) | 是 | 更新人 | |||
tenant_id | bigint(20) | 是 | 租户id |