Commit f7d31266 authored by neo.wang's avatar neo.wang

Merge branch 'dev_neo2' into 'dev'

[DEV] project new table sql define

See merge request root/atms!33
parents 2e01a40d 2c2e9b29
......@@ -183,58 +183,6 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`BalanceStdManual` (
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`CellComment`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`CellComment` (
`ID` VARCHAR(128) NOT NULL,
`CellDataId` VARCHAR(128) NOT NULL,
`UserId` VARCHAR(128) NOT NULL,
`UserName` VARCHAR(50) NULL DEFAULT NULL,
`Comment` TEXT NULL DEFAULT NULL,
`ReplyToUserName` VARCHAR(50) NULL DEFAULT NULL,
`CreateTime` DATETIME NOT NULL,
`UpdateTime` DATETIME NOT NULL,
PRIMARY KEY (`ID`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`CellData`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`CellData` (
`ID` VARCHAR(128) NOT NULL,
`ReportID` VARCHAR(128) NOT NULL,
`CellTemplateID` VARCHAR(128) NOT NULL,
`Data` VARCHAR(200) NULL DEFAULT NULL,
`FormulaExp` LONGTEXT NULL DEFAULT NULL,
`Creator` VARCHAR(128) NOT NULL,
`CreateTime` DATETIME NOT NULL,
`Updater` VARCHAR(128) NOT NULL,
`UpdateTime` DATETIME NOT NULL,
PRIMARY KEY (`ID`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`CellDataSource`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`CellDataSource` (
`ID` VARCHAR(128) NOT NULL,
`CellTemplateID` VARCHAR(128) NOT NULL,
`CellDataID` VARCHAR(128) NOT NULL,
`DataSourceID` VARCHAR(128) NOT NULL,
`OperationType` INT(11) NULL DEFAULT NULL,
`CreateTime` DATETIME NOT NULL,
`UpdateTime` DATETIME NOT NULL,
PRIMARY KEY (`ID`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`CompanyBalance`
-- -----------------------------------------------------
......@@ -348,44 +296,6 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`CustomsInvoice` (
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`DataSource`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`DataSource` (
`ID` VARCHAR(128) NOT NULL,
`Type` INT(11) NOT NULL,
`Name` TEXT NULL DEFAULT NULL,
`Amount` DECIMAL(20,4) NULL DEFAULT NULL,
`Description` LONGTEXT NULL DEFAULT NULL,
`KeyValueDataID` VARCHAR(128) NULL DEFAULT NULL,
`Creator` VARCHAR(128) NOT NULL,
`CreateTime` DATETIME NOT NULL,
`Updater` VARCHAR(128) NOT NULL,
`UpdateTime` DATETIME NOT NULL,
`RowName` TEXT NULL DEFAULT NULL,
`ColumnName` TEXT NULL DEFAULT NULL,
`RowIndex` INT(11) NULL DEFAULT NULL,
`RemapBatchId` VARCHAR(128) NULL DEFAULT NULL,
`ColumnIndex` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`ID`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`DataSourceDetail`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`DataSourceDetail` (
`ID` VARCHAR(128) NOT NULL,
`DataSourceID` VARCHAR(128) NOT NULL,
`DataSourceType` INT(11) NOT NULL,
`ItemValue` VARCHAR(128) NOT NULL,
PRIMARY KEY (`ID`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`EnterpriseAccount`
-- -----------------------------------------------------
......@@ -838,155 +748,6 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodCellReference` (
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`PeriodCellTemplate`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodCellTemplate` (
`ID` VARCHAR(128) NOT NULL,
`Period` INT(11) NOT NULL,
`ReportTemplateID` VARCHAR(128) NOT NULL,
`RowIndex` INT(11) NOT NULL,
`RowName` TEXT NULL DEFAULT NULL,
`ColumnIndex` INT(11) NOT NULL,
`ColumnName` TEXT NULL DEFAULT NULL,
`Comment` TEXT NULL DEFAULT NULL,
`CreateTime` DATETIME NOT NULL,
`UpdateTime` DATETIME NOT NULL,
`CopyFromID` VARCHAR(128) NULL DEFAULT NULL,
`DataType` INT(11) NULL DEFAULT NULL,
`IsReadOnly` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`PeriodCellTemplateConfig`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodCellTemplateConfig` (
`ID` VARCHAR(128) NOT NULL,
`Period` INT(11) NOT NULL,
`CellTemplateID` VARCHAR(128) NOT NULL,
`ReportTemplateID` VARCHAR(128) NULL DEFAULT NULL,
`DataSourceType` INT(11) NOT NULL,
`Formula` TEXT NULL DEFAULT NULL,
`ParsedFormula` TEXT NULL DEFAULT NULL,
`FormulaDescription` TEXT NULL DEFAULT NULL,
`AccountCodes` TEXT NULL DEFAULT NULL,
`InvoiceType` INT(11) NULL DEFAULT NULL,
`TaxRate` VARCHAR(50) NULL DEFAULT NULL,
`InvoiceAmountType` INT(11) NULL DEFAULT NULL,
`ModelIDs` TEXT NULL DEFAULT NULL,
`Creator` VARCHAR(128) NOT NULL,
`CreateTime` DATETIME NOT NULL,
`Updater` VARCHAR(128) NOT NULL,
`UpdateTime` DATETIME NOT NULL,
`InvoiceCategory` VARCHAR(50) NULL DEFAULT NULL,
`FormulaDataSource` TEXT NULL DEFAULT NULL,
`Validation` TEXT NULL DEFAULT NULL,
`ParsedValidation` TEXT NULL DEFAULT NULL,
`ValidationDescription` TEXT NULL DEFAULT NULL,
`VoucherKeyword` TEXT NULL DEFAULT NULL,
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`PeriodFormulaBlock`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodFormulaBlock` (
`ID` VARCHAR(128) NOT NULL,
`Period` INT(11) NOT NULL,
`FormulaBlock` VARCHAR(50) NOT NULL,
`Index` INT(11) NOT NULL,
`Data` VARCHAR(200) NULL DEFAULT NULL,
`ResultType` INT(11) NULL DEFAULT NULL,
`DataSourceInfo` LONGTEXT NULL DEFAULT NULL,
`IsCalculated` SMALLINT(6) NULL DEFAULT NULL,
`Creator` VARCHAR(128) NULL DEFAULT NULL,
`CreateTime` DATETIME NULL DEFAULT NULL,
`Updater` VARCHAR(128) NULL DEFAULT NULL,
`UpdateTime` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`PeriodTaxPayerReportRule`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodTaxPayerReportRule` (
`ID` VARCHAR(128) NOT NULL,
`IsDefault` INT(11) NOT NULL,
`Period` INT(11) NOT NULL,
`TaxPayerType` INT(11) NOT NULL,
`TemplateGroupID` VARCHAR(128) NOT NULL,
`OrganizationID` LONGTEXT NULL DEFAULT NULL,
`CreateTime` DATETIME NOT NULL,
`UpdateTime` DATETIME NOT NULL,
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`PeriodTaxRuleSetting`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodTaxRuleSetting` (
`ID` VARCHAR(128) NOT NULL,
`Name` VARCHAR(50) NOT NULL,
`IsDefault` INT(11) NOT NULL,
`Period` INT(11) NOT NULL,
`GroupName` VARCHAR(50) NULL DEFAULT NULL,
`TaxBase` TEXT NOT NULL,
`TaxRate` DECIMAL(20,4) NOT NULL,
`CreateTime` DATETIME NOT NULL,
`UpdateTime` DATETIME NOT NULL,
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`PeriodTaxRuleSettingOrganization`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodTaxRuleSettingOrganization` (
`ID` VARCHAR(128) NOT NULL,
`TaxSettingID` VARCHAR(128) NOT NULL,
`Period` INT(11) NOT NULL,
`OrganizationID` VARCHAR(128) NOT NULL,
`CreateTime` DATETIME NOT NULL,
`UpdateTime` DATETIME NOT NULL,
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`PeriodTemplate`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`PeriodTemplate` (
`ID` VARCHAR(128) NOT NULL,
`Period` INT(11) NOT NULL,
`Name` TEXT NOT NULL,
`Code` TEXT NULL DEFAULT NULL,
`Path` TEXT NOT NULL,
`ReportType` INT(11) NULL DEFAULT NULL,
`TemplateGroupID` VARCHAR(128) NOT NULL,
`OrderIndex` INT(11) NULL DEFAULT NULL,
`CreateTime` DATETIME NOT NULL,
`UpdateTime` DATETIME NOT NULL,
`IsSystemType` INT(11) NOT NULL,
`IsActiveAssociation` INT(11) NOT NULL,
`ParentId` VARCHAR(128) NULL DEFAULT NULL,
PRIMARY KEY (`ID`, `Period`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `DBKeyword_ProjectDbName`.`Report`
-- -----------------------------------------------------
......@@ -1121,6 +882,231 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`VoucherMapping` (
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4;
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`cell_comment` (
`id` bigint(18) unsigned NOT NULL,
`cell_data_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`user_id` varchar(128) NOT NULL DEFAULT '',
`user_name` varchar(50) NOT NULL DEFAULT '',
`comment` varchar(1000) NOT NULL DEFAULT '',
`reply_to_user_name` varchar(50) NOT NULL DEFAULT '',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`create_by` varchar(128) NOT NULL DEFAULT '',
`update_by` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `cell_data` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`cell_data` (
`id` bigint(18) unsigned NOT NULL,
`report_id` varchar(128) NOT NULL DEFAULT '',
`cell_template_id` varchar(128) NOT NULL DEFAULT '',
`data` varchar(200) NOT NULL DEFAULT '',
`formula_exp` varchar(1000) NOT NULL DEFAULT '',
`create_by` varchar(128) NOT NULL DEFAULT '',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update_by` varchar(128) NOT NULL DEFAULT '',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `cell_data_source` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`cell_data_source` (
`id` bigint(18) unsigned NOT NULL,
`cell_template_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`cell_data_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`data_source_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`operation_type` int(11) unsigned NOT NULL DEFAULT '0',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update)_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `data_source` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`data_source` (
`id` bigint(18) unsigned NOT NULL,
`type` int(11) unsigned NOT NULL DEFAULT '0',
`name` varchar(1000) NOT NULL DEFAULT '',
`amount` decimal(20,4) NOT NULL DEFAULT '0.0000',
`description` varchar(1000) NOT NULL DEFAULT '',
`key_value_data_id` varchar(128) NOT NULL DEFAULT '',
`create_by` varchar(128) NOT NULL DEFAULT '',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update_by` varchar(128) NOT NULL DEFAULT '',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`row_name` varchar(1000) NOT NULL DEFAULT '',
`column_name` varchar(1000) NOT NULL DEFAULT '',
`row_index` int(11) unsigned NOT NULL DEFAULT '0',
`remap_batch_id` varchar(128) NOT NULL DEFAULT '',
`column_index` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `data_source_detail` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`data_source_detail` (
`id` bigint(18) unsigned NOT NULL,
`data_source_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`data_source_type` int(11) unsigned NOT NULL DEFAULT '0',
`item_value` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `period_cell_template` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_cell_template` (
`id` bigint(18) unsigned NOT NULL,
`period` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '月份',
`report_template_id` varchar(128) NOT NULL DEFAULT '' COMMENT '报表模板ID',
`row_index` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '行号',
`row_name` varchar(200) NOT NULL DEFAULT '' COMMENT '行名称',
`column_index` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '列号',
`column_name` varchar(200) NOT NULL DEFAULT '' COMMENT '列名称',
`comment` varchar(1000) NOT NULL DEFAULT '' COMMENT '注释',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00' COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00' COMMENT '更新时间',
`cell_template_id` bigint(18) unsigned NOT NULL DEFAULT '0' COMMENT '主库单元格模板ID',
`data_type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '数据类型',
`is_read_only` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否只读',
`copy_from_id` bigint(18) unsigned NOT NULL DEFAULT '0' COMMENT '复制数据源ID',
`create_by` varchar(128) NOT NULL DEFAULT '',
`update_by` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `period_cell_template_config` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_cell_template_config` (
`id` bigint(18) unsigned NOT NULL,
`period` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '月份',
`cell_template_id` varchar(128) NOT NULL DEFAULT '' COMMENT '单元格模板ID',
`report_template_id` varchar(128) NOT NULL DEFAULT '' COMMENT '报表模板ID',
`data_source_type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '数据源类型',
`formula` varchar(500) NOT NULL DEFAULT '' COMMENT '公式',
`parsed_formula` varchar(1000) NOT NULL DEFAULT '' COMMENT '解析后公式',
`formula_description` varbinary(1000) NOT NULL DEFAULT '' COMMENT '公式描述',
`account_codes` varchar(1000) NOT NULL DEFAULT '' COMMENT '账套代码',
`invoice_type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '发票类型',
`tax_rate` varchar(50) NOT NULL DEFAULT '' COMMENT '税率',
`invoice_amount_type` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '发票账户类型',
`model_ids` varchar(1000) NOT NULL DEFAULT '' COMMENT '模型IDs',
`create_by` varchar(128) NOT NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00' COMMENT '创建时间',
`update_by` varchar(128) NOT NULL DEFAULT '' COMMENT '更改者',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00' COMMENT '更改时间',
`invoice_category` varchar(50) NOT NULL DEFAULT '' COMMENT '发票类型',
`formula_data_source` varchar(1000) NOT NULL DEFAULT '' COMMENT '公式数据源',
`validation` varchar(1000) NOT NULL DEFAULT '' COMMENT '验证信息',
`parsed_validation` varchar(1000) NOT NULL DEFAULT '' COMMENT '解析验证信息',
`validation_description` varchar(1000) NOT NULL DEFAULT '' COMMENT '验证信息描述',
`voucher_keyword` varchar(1000) NOT NULL DEFAULT '' COMMENT '票证关键字',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `period_formula_block` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_formula_block` (
`id` bigint(18) unsigned NOT NULL,
`period` int(11) unsigned NOT NULL DEFAULT '0',
`report_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`cell_template_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`formula_expression` varchar(1000) NOT NULL DEFAULT '',
`data` varchar(200) NOT NULL DEFAULT '',
`data_source_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`create_by` varchar(128) NOT NULL,
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update_by` varchar(128) NOT NULL,
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `period_tax_payer_report_rule` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_tax_payer_report_rule` (
`id` bigint(18) unsigned NOT NULL,
`is_default` int(11) unsigned NOT NULL DEFAULT '0',
`period` int(11) unsigned NOT NULL DEFAULT '0',
`tax_payer_type` int(11) unsigned NOT NULL DEFAULT '0',
`template_group_id` varchar(128) NOT NULL DEFAULT '',
`organization_id` varchar(128) NOT NULL DEFAULT '',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`tax_payer_report_rule_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`create_by` varchar(128) NOT NULL DEFAULT '',
`update_by` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `period_tax_rule_setting` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_tax_rule_setting` (
`id` bigint(18) unsigned NOT NULL,
`name` varchar(50) NOT NULL DEFAULT '',
`is_default` int(11) unsigned NOT NULL DEFAULT '0',
`period` int(11) unsigned NOT NULL DEFAULT '0',
`group_name` varchar(50) NOT NULL DEFAULT '',
`tax_base` varchar(1000) NOT NULL DEFAULT '',
`tax_rate` decimal(18,4) NOT NULL DEFAULT '0.0000',
`create_time` datetime NOT NULL,
`update_time` datetime NOT NULL,
`tax_rule_setting_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`create_by` varchar(128) NOT NULL DEFAULT '',
`update_by` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `period_tax_rule_setting_organization` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_tax_rule_setting_organization` (
`id` bigint(18) unsigned NOT NULL,
`tax_setting_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`period` int(11) unsigned NOT NULL DEFAULT '0',
`organization_id` varchar(128) NOT NULL DEFAULT '',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`tax_rule_setting_organization_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`create_by` varchar(128) NOT NULL DEFAULT '',
`update_by` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `period_template` */
CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`period_template` (
`id` bigint(18) unsigned NOT NULL,
`period` int(11) unsigned NOT NULL DEFAULT '0',
`name` varchar(1000) NOT NULL DEFAULT '',
`code` varchar(1000) NOT NULL DEFAULT '',
`path` varchar(1000) NOT NULL DEFAULT '',
`report_type` int(11) unsigned NOT NULL DEFAULT '0',
`template_group_id` varchar(128) NOT NULL DEFAULT '',
`order_index` int(11) unsigned NOT NULL DEFAULT '0',
`create_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`update_time` datetime NOT NULL DEFAULT '1970-01-01 08:00:00',
`is_system_type` int(11) unsigned NOT NULL DEFAULT '0',
`is_active_association` int(11) unsigned NOT NULL DEFAULT '0',
`parent_id` varchar(128) NOT NULL DEFAULT '',
`template_id` bigint(18) unsigned NOT NULL DEFAULT '0',
`create_by` varchar(128) NOT NULL DEFAULT '',
`update_by` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Insert INTO EnterpriseAccount
SELECT
a.ID,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment