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.
 
 
 

71 lines
1.6 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const ReportDataSource = sequelize.define("reportDataSource", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "Primary key",
primaryKey: true,
field: "id",
autoIncrement: true
},
name: {
type: DataTypes.TEXT,
allowNull: false,
defaultValue: null,
comment: "Data source name",
primaryKey: false,
field: "name",
autoIncrement: false
},
type: {
type: DataTypes.TEXT,
allowNull: false,
defaultValue: null,
comment: "Data source type",
primaryKey: false,
field: "type",
autoIncrement: false
},
connectionConfig: {
type: DataTypes.JSONB,
allowNull: false,
defaultValue: null,
comment: "Data source connection config",
primaryKey: false,
field: "connection_config",
autoIncrement: false
},
createdBy: {
type: DataTypes.TEXT,
allowNull: false,
defaultValue: null,
comment: "Creator",
primaryKey: false,
field: "created_by",
autoIncrement: false
},
createdAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
comment: "Created time",
primaryKey: false,
field: "created_at",
autoIncrement: false
}
}, {
tableName: "report_data_source",
comment: "Report data source table",
indexes: []
});
dc.models.ReportDataSource = ReportDataSource;
return ReportDataSource;
};