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.
 
 
 

107 lines
2.8 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const TenderImageLibrary = sequelize.define("tenderImageLibrary", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "主键ID",
primaryKey: true,
field: "id",
autoIncrement: true
},
name: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "图片库名称",
primaryKey: false,
field: "name",
autoIncrement: false
},
description: {
type: DataTypes.TEXT,
allowNull: true,
defaultValue: null,
comment: "图片库描述",
primaryKey: false,
field: "description",
autoIncrement: false
},
creator: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "图片库创建者",
primaryKey: false,
field: "creator",
autoIncrement: false
},
departmentId: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "图片库部门ID",
primaryKey: false,
field: "department_id",
autoIncrement: false
},
visibilityScope:{
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "图片库可见范围",
primaryKey: false,
field: "visibility_scope",
autoIncrement: false
},
visibleUserIds: {
type: DataTypes.JSON,
allowNull: true,
defaultValue: [],
comment: "可见人员ID列表",
primaryKey: false,
field: "visible_user_ids",
autoIncrement: false
},
libraryType:{
type: DataTypes.STRING,
allowNull: true,
defaultValue:'customImages',
comment: "图库类型",
primaryKey: false,
field: "library_type",
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_image_library",
comment: "图片库表",
indexes: []
});
dc.models.TenderImageLibrary = TenderImageLibrary;
return TenderImageLibrary;
};