From 045fc42991ea8f3c2e89cfdf60f043b9d94d141f Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Fri, 11 Oct 2024 19:06:31 +0800 Subject: [PATCH] feat: added field to spider --- core/models/models/v2/spider_v2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/models/models/v2/spider_v2.go b/core/models/models/v2/spider_v2.go index b743ede21..3c99f1fbc 100644 --- a/core/models/models/v2/spider_v2.go +++ b/core/models/models/v2/spider_v2.go @@ -10,6 +10,7 @@ type SpiderV2 struct { Name string `json:"name" bson:"name"` // spider name ColId primitive.ObjectID `json:"col_id" bson:"col_id"` // data collection id (deprecated) # TODO: remove this field in the future ColName string `json:"col_name,omitempty" bson:"col_name"` // data collection name + DbName string `json:"db_name,omitempty" bson:"db_name"` // database name DataSourceId primitive.ObjectID `json:"data_source_id" bson:"data_source_id"` // data source id DataSource *DatabaseV2 `json:"data_source,omitempty" bson:"-"` // data source Description string `json:"description" bson:"description"` // description