diff --git a/src/components/dashboard/dashboardElement/dashboardElement.interface.ts b/src/components/dashboard/dashboardElement/dashboardElement.interface.ts index 2054b30..e5c380c 100644 --- a/src/components/dashboard/dashboardElement/dashboardElement.interface.ts +++ b/src/components/dashboard/dashboardElement/dashboardElement.interface.ts @@ -36,6 +36,9 @@ export interface IDashboardElementBasicQueryMeasure { export interface IDashboardElementBasicQuery extends IDashboardElementVis { type: 'basicQuery'; + dbname: string; + schema: string; + table: string; dimension: string; differential?: string; measures: IDashboardElementBasicQueryMeasure[]; diff --git a/src/components/dashboard/dashboardElement/dashboardElement.model.ts b/src/components/dashboard/dashboardElement/dashboardElement.model.ts index dd588d0..79798ec 100644 --- a/src/components/dashboard/dashboardElement/dashboardElement.model.ts +++ b/src/components/dashboard/dashboardElement/dashboardElement.model.ts @@ -28,6 +28,9 @@ const dashboardElementButtonSchema = const dashboardElementBasicQuerySchema = new mongoose.Schema({ + dbname: { type: String }, + schema: { type: String }, + table: { type: String }, dimension: { type: String }, differential: { type: String }, measures: [