You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.1 KiB
97 lines
2.1 KiB
/* eslint-disable*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const PatentSolutionChapters = sequelize.define('patentSolutionChapters', {
|
|
id: {
|
|
type: DataTypes.BIGINT,
|
|
allowNull: false,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
field: 'id'
|
|
},
|
|
solutionId: {
|
|
type: DataTypes.BIGINT,
|
|
allowNull: false,
|
|
field: 'solution_id',
|
|
references: {
|
|
key: 'id',
|
|
model: 'patent_solutions'
|
|
}
|
|
},
|
|
parentId: {
|
|
type: DataTypes.BIGINT,
|
|
allowNull: true,
|
|
field: 'parent_id'
|
|
},
|
|
chapterKey: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
field: 'chapter_key'
|
|
},
|
|
title: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: false,
|
|
field: 'title'
|
|
},
|
|
level: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: 0,
|
|
field: 'level'
|
|
},
|
|
sortOrder: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: 0,
|
|
field: 'sort_order'
|
|
},
|
|
writingDirection: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: true,
|
|
field: 'writing_direction'
|
|
},
|
|
requirements: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: true,
|
|
field: 'requirements'
|
|
},
|
|
targetWords: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
field: 'target_words'
|
|
},
|
|
targetCharts: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
field: 'target_charts'
|
|
},
|
|
targetTables: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
field: 'target_tables'
|
|
},
|
|
createAt: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
|
|
field: 'create_at'
|
|
},
|
|
updateAt: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
|
|
field: 'update_at'
|
|
}
|
|
}, {
|
|
tableName: 'patent_solution_chapters',
|
|
comment: '专利方案目录表',
|
|
indexes: []
|
|
});
|
|
|
|
dc.models.PatentSolutionChapters = PatentSolutionChapters;
|
|
return PatentSolutionChapters;
|
|
};
|
|
|