+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
Idbigint(20)主键
Typevarchar(50)类型(支出/收入/收款/付款/转账)
OrganIdbigint(20)单位Id(收款/付款单位)Normal Index
HandsPersonIdbigint(20)经手人IdNormal Index
ChangeAmountdecimal(24,6)变动金额(优惠/收款/付款/实付)
TotalPricedecimal(24,6)合计金额
AccountIdbigint(20)账户(收款/付款)Normal Index
BillNovarchar(50)单据编号
BillTimedatetime单据日期
Remarkvarchar(100)备注
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 ↑