ai-query对接新版freesun-agent接口的分支
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.
 
 
 

55 lines
1.2 KiB

/* 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;
};