MySQL Create Table SQL
Table Structure: okayapi_jsh_accountitem:/tablelist/okayapi_jsh_accountitem.html
-- MySQL Table okayapi_jsh_accountitem
-- From: OkayAPI.com
CREATE TABLE `okayapi_jsh_accountitem` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`Id` bigint(20) NULL COMMENT '主键',
`HeaderId` bigint(20) NULL COMMENT '表头Id',
`AccountId` bigint(20) NULL COMMENT '账户Id',
`InOutItemId` bigint(20) NULL COMMENT '收支项目Id',
`EachAmount` decimal(24,6) NULL COMMENT '单项金额',
`Remark` varchar(100) 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 `AccountId` (`AccountId`),
KEY `InOutItemId` (`InOutItemId`),
KEY `EachAmount` (`EachAmount`),
KEY `Remark` (`Remark`),
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-8 of 8 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
Id | bigint(20) | 否 | 主键 | |||
HeaderId | bigint(20) | 否 | 表头Id | Normal Index | ||
AccountId | bigint(20) | 是 | 账户Id | Normal Index | ||
InOutItemId | bigint(20) | 是 | 收支项目Id | Normal Index | ||
EachAmount | decimal(24,6) | 是 | 单项金额 | |||
Remark | varchar(100) | 是 | 单据备注 | |||
tenant_id | bigint(20) | 是 | 租户id | |||
delete_Flag | varchar(1) | 0 | 是 | 删除标记,0未删除,1删除 | 0 |