/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PatentSolutions = sequelize.define('patentSolutions', { id: { type: DataTypes.BIGINT, allowNull: false, primaryKey: true, autoIncrement: true, field: 'id' }, name: { type: DataTypes.TEXT, allowNull: false, field: 'name' }, patentType: { type: DataTypes.TEXT, allowNull: true, field: 'patent_type' }, industry: { type: DataTypes.TEXT, allowNull: true, field: 'industry' }, status: { type: DataTypes.STRING, allowNull: false, defaultValue: 'created', field: 'status' }, creator: { type: DataTypes.STRING, allowNull: true, field: 'creator' }, projectInfo: { type: DataTypes.JSONB, allowNull: true, field: 'project_info' }, globalRequirements: { type: DataTypes.TEXT, allowNull: true, field: 'global_requirements' }, messages: { type: DataTypes.JSONB, allowNull: true, field: 'messages' }, currentDocVersion: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'current_doc_version' }, 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_solutions', comment: '专利方案主表', indexes: [] }); dc.models.PatentSolutions = PatentSolutions; return PatentSolutions; };