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.
 
 
 

128 lines
3.5 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const TenderImages = sequelize.define("tenderImages", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "主键ID",
primaryKey: true,
field: "id",
autoIncrement: true
},
libraryId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "关联图片库ID",
primaryKey: false,
field: "library_id",
autoIncrement: false,
references: {
key: "id",
model: "tenderImageLibrary"
}
},
title: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "图片标题",
primaryKey: false,
field: "title",
autoIncrement: false
},
groupKey: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "分组标识(用于文件夹分组,避免标题修改影响分组)",
primaryKey: false,
field: "group_key",
autoIncrement: false
},
pageNo: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "页码(用于文件分组内排序/去重)",
primaryKey: false,
field: "page_no",
autoIncrement: false
},
sourceUrl: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "来源文件URL(用于稳定分组/排查)",
primaryKey: false,
field: "source_url",
autoIncrement: false
},
description: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "图片描述",
primaryKey: false,
field: "description",
autoIncrement: false
},
imageUrl: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "图片链接",
primaryKey: false,
field: "image_url",
autoIncrement: false
},
status: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "图片状态:training, trainingSuccess, trainingFailure, waitSync",
primaryKey: false,
field: "status",
autoIncrement: false
},
datasetCollectionId: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "关联知识库collectionId",
primaryKey: false,
field: "dataset_collection_id",
autoIncrement: false
},
createdAt: {
type: DataTypes.DATE,
allowNull: true,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
comment: "创建时间",
primaryKey: false,
field: "created_at",
autoIncrement: false
},
updatedAt: {
type: DataTypes.DATE,
allowNull: true,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
comment: "更新时间",
primaryKey: false,
field: "updated_at",
autoIncrement: false
}
}, {
tableName: "tender_images",
comment: "图片表",
indexes: []
});
dc.models.TenderImages = TenderImages;
return TenderImages;
};