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.
 
 
 

123 lines
3.1 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const ReportTemplateBlockBatchBinding = sequelize.define("reportTemplateBlockBatchBinding", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "Primary key",
primaryKey: true,
field: "id",
autoIncrement: true
},
templateBlockId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "Template block id",
primaryKey: false,
field: "template_block_id",
autoIncrement: false,
references: {
key: "id",
model: "reportTemplateBlock"
}
},
templateBatchDimensionId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "Template batch dimension id",
primaryKey: false,
field: "template_batch_dimension_id",
autoIncrement: false,
references: {
key: "id",
model: "reportTemplateBatchDimension"
}
},
bindingType: {
type: DataTypes.TEXT,
allowNull: false,
defaultValue: null,
comment: "Binding type",
primaryKey: false,
field: "binding_type",
autoIncrement: false
},
targetTable: {
type: DataTypes.TEXT,
allowNull: true,
defaultValue: null,
comment: "Target query table or dataset id",
primaryKey: false,
field: "target_table",
autoIncrement: false
},
targetField: {
type: DataTypes.TEXT,
allowNull: true,
defaultValue: null,
comment: "Target field",
primaryKey: false,
field: "target_field",
autoIncrement: false
},
filterOperator: {
type: DataTypes.TEXT,
allowNull: true,
defaultValue: null,
comment: "Filter operator",
primaryKey: false,
field: "filter_operator",
autoIncrement: false
},
valueSource: {
type: DataTypes.TEXT,
allowNull: false,
defaultValue: "key",
comment: "Injected value source",
primaryKey: false,
field: "value_source",
autoIncrement: false
},
config: {
type: DataTypes.JSONB,
allowNull: false,
defaultValue: {},
comment: "Binding extra config",
primaryKey: false,
field: "config",
autoIncrement: false
},
createdAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
comment: "Created time",
primaryKey: false,
field: "created_at",
autoIncrement: false
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
comment: "Updated time",
primaryKey: false,
field: "updated_at",
autoIncrement: false
}
}, {
tableName: "report_template_block_batch_binding",
comment: "Report template block batch binding table",
indexes: []
});
dc.models.ReportTemplateBlockBatchBinding = ReportTemplateBlockBatchBinding;
return ReportTemplateBlockBatchBinding;
};