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.
 
 
 

70 lines
1.6 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const IndustrySolutionRecord = sequelize.define("industrySolutionRecord", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "唯一标识",
primaryKey: true,
field: "id",
autoIncrement: true
},
content: {
type: DataTypes.TEXT,
allowNull: false,
defaultValue: null,
comment: "方案内容",
primaryKey: false,
field: "content",
autoIncrement: false
},
tokens: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "tokens消耗",
primaryKey: false,
field: "tokens",
autoIncrement: false
},
userId: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "用户ID",
primaryKey: false,
field: "user_id",
autoIncrement: false
},
createdAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.fn('now'),
comment: "创建时间",
primaryKey: false,
field: "created_at",
autoIncrement: false
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.fn('now'),
comment: "更新时间",
primaryKey: false,
field: "updated_at",
autoIncrement: false
}
}, {
tableName: "industry_solution_record",
comment: "行业方案生成记录表",
indexes: []
});
dc.models.IndustrySolutionRecord = IndustrySolutionRecord;
return IndustrySolutionRecord;
};