/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PatentGrantCache = sequelize.define('patentGrantCache', { id: { type: DataTypes.BIGINT, allowNull: false, primaryKey: true, autoIncrement: true, field: 'id' }, patentNumber: { type: DataTypes.STRING(32), allowNull: false, unique: true, field: 'patent_number' }, isOneShot: { type: DataTypes.BOOLEAN, allowNull: false, field: 'is_one_shot' }, notices: { type: DataTypes.JSONB, allowNull: true, defaultValue: [], field: 'notices' }, basis: { type: DataTypes.TEXT, allowNull: true, field: 'basis' }, createAt: { type: DataTypes.DATE, allowNull: false, defaultValue: sequelize.literal('CURRENT_TIMESTAMP'), field: 'create_at' } }, { tableName: 'patent_grant_cache', comment: '一次性授权查询缓存表', timestamps: false, indexes: [ { fields: ['patent_number'], unique: true } ] }); dc.models.PatentGrantCache = PatentGrantCache; return PatentGrantCache; };