+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:易记账-科目余额表:https://open.yesapi.cn/tablelist/yesapi_yjz_prod_subject_balance.html


-- 数据库大全:易记账-科目余额表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_yjz_prod_subject_balance` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `subject_code` bigint(20) NOT NULL COMMENT '科目代码',
    `initial_debit_balance` decimal(11,2) NOT NULL COMMENT '期初借方金额',
    `initial_credit_balance` decimal(11,2) NOT NULL COMMENT '期初贷方金额',
    `period_debit_occur` decimal(11,2) NOT NULL COMMENT '本期借方发生额',
    `period_credit_occur` decimal(11,2) NOT NULL COMMENT '本期贷方发生额',
    `year_debit_occur` decimal(11,2) NOT NULL COMMENT '本年借方累计发生额',
    `year_credit_occur` decimal(11,2) NOT NULL COMMENT '本年贷方累计发生额',
    `terminal_debit_balance` decimal(11,2) NOT NULL COMMENT '期末借方余额',
    `terminal_credit_balance` decimal(11,2) NOT NULL COMMENT '期末贷方余额',
    `book_id` bigint(20) NOT NULL COMMENT '账套id',
    `period_id` bigint(20) NOT NULL COMMENT '',
    `profit_loss_occur_amount` decimal(11,2) NOT NULL COMMENT '损益类科目实际发生额',
    `profit_loss_total_occur_amount` decimal(11,2) NOT NULL COMMENT '损益类科目本年累计发生额',
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '',
    `modify_time` timestamp NOT NULL DEFAULT '2015-01-01 00:00:00' COMMENT '',
    KEY `subject_code` (`subject_code`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '易记账-科目余额表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-15 条, 共 15 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
subject_codebigint(20)科目代码普通索引
initial_debit_balancedecimal(11,2)期初借方金额无索引
initial_credit_balancedecimal(11,2)期初贷方金额无索引
period_debit_occurdecimal(11,2)本期借方发生额无索引
period_credit_occurdecimal(11,2)本期贷方发生额无索引
year_debit_occurdecimal(11,2)本年借方累计发生额无索引
year_credit_occurdecimal(11,2)本年贷方累计发生额无索引
terminal_debit_balancedecimal(11,2)期末借方余额无索引
terminal_credit_balancedecimal(11,2)期末贷方余额无索引
book_idbigint(20)账套id无索引
period_idbigint(20)无索引
profit_loss_occur_amountdecimal(11,2)损益类科目实际发生额无索引
profit_loss_total_occur_amountdecimal(11,2)损益类科目本年累计发生额无索引
create_timetimestampCURRENT_TIMESTAMP无索引CURRENT_TIMESTAMP
modify_timetimestamp2015-01-01 00:00:00无索引2015-01-01 00:00:00

猜你喜欢

MySQL数据库设计 财务管理-组件资源

MySQL数据库设计 财务管理-数据控制

MySQL数据库设计 财务管理-字典

MySQL数据库设计 财务管理-日志信息

MySQL数据库设计 财务管理-模块

MySQL数据库设计 财务管理-组织

MySQL数据库设计 财务管理-组织角色

MySQL数据库设计 财务管理-权限

MySQL数据库设计 财务管理-角色

MySQL数据库设计 财务管理-角色权限

MySQL数据库设计 财务管理-角色权限数据控制

MySQL数据库设计 财务管理-用户

MySQL数据库设计 财务管理-用户角色

MySQL数据库设计 财务管理-产品表

MySQL数据库设计 财务管理-任务表

MySQL数据库设计 mm财务管理-进账

MySQL数据库设计 mm财务管理-出账

MySQL数据库设计 mm财务管理-菜单

MySQL数据库设计 mm财务管理-消息

MySQL数据库设计 mm财务管理-页面



回到顶部 ↑