/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PatentSolutionBaseFields = sequelize.define('patentSolutionBaseFields', { 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' } }, fieldKey: { type: DataTypes.STRING, allowNull: false, field: 'field_key' }, fieldTitle: { type: DataTypes.TEXT, allowNull: false, field: 'field_title' }, fieldDesc: { type: DataTypes.TEXT, allowNull: true, field: 'field_desc' }, fieldValue: { type: DataTypes.TEXT, allowNull: true, field: 'field_value' }, sortOrder: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'sort_order' }, isSelected: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: true, field: 'is_selected' }, isRequired: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false, field: 'is_required' }, sourceType: { type: DataTypes.STRING, allowNull: false, defaultValue: 'manual', field: 'source_type' }, sourceChatId: { type: DataTypes.BIGINT, allowNull: true, field: 'source_chat_id' }, 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_base_fields', comment: '专利方案基础信息项', indexes: [] }); dc.models.PatentSolutionBaseFields = PatentSolutionBaseFields; return PatentSolutionBaseFields; };