MySQL Create Table SQL
Table Structure: okayapi_jsh_accounthead:/tablelist/okayapi_jsh_accounthead.html
-- MySQL Table okayapi_jsh_accounthead
-- From: OkayAPI.com
CREATE TABLE `okayapi_jsh_accounthead` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`Id` bigint(20) NULL COMMENT '主键',
`Type` varchar(50) NULL COMMENT '类型(支出/收入/收款/付款/转账)',
`OrganId` bigint(20) NULL COMMENT '单位Id(收款/付款单位)',
`HandsPersonId` bigint(20) NULL COMMENT '经手人Id',
`ChangeAmount` decimal(24,6) NULL COMMENT '变动金额(优惠/收款/付款/实付)',
`TotalPrice` decimal(24,6) NULL COMMENT '合计金额',
`AccountId` bigint(20) NULL COMMENT '账户(收款/付款)',
`BillNo` varchar(50) NULL COMMENT '单据编号',
`BillTime` datetime 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 `Type` (`Type`),
KEY `OrganId` (`OrganId`),
KEY `HandsPersonId` (`HandsPersonId`),
KEY `ChangeAmount` (`ChangeAmount`),
KEY `TotalPrice` (`TotalPrice`),
KEY `AccountId` (`AccountId`),
KEY `BillNo` (`BillNo`),
KEY `BillTime` (`BillTime`),
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-12 of 12 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
Id | bigint(20) | 否 | 主键 | |||
Type | varchar(50) | 是 | 类型(支出/收入/收款/付款/转账) | |||
OrganId | bigint(20) | 是 | 单位Id(收款/付款单位) | Normal Index | ||
HandsPersonId | bigint(20) | 是 | 经手人Id | Normal Index | ||
ChangeAmount | decimal(24,6) | 是 | 变动金额(优惠/收款/付款/实付) | |||
TotalPrice | decimal(24,6) | 是 | 合计金额 | |||
AccountId | bigint(20) | 是 | 账户(收款/付款) | Normal Index | ||
BillNo | varchar(50) | 是 | 单据编号 | |||
BillTime | datetime | 是 | 单据日期 | |||
Remark | varchar(100) | 是 | 备注 | |||
tenant_id | bigint(20) | 是 | 租户id | |||
delete_Flag | varchar(1) | 0 | 是 | 删除标记,0未删除,1删除 | 0 |