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