Files
crawlab/core/models/models/data_collection.go
2024-11-05 11:15:27 +08:00

18 lines
565 B
Go

package models
import (
"github.com/crawlab-team/crawlab/core/entity"
)
type DataCollection struct {
any `collection:"data_collections"`
BaseModel[DataCollection] `bson:",inline"`
Name string `json:"name" bson:"name"`
Fields []entity.DataField `json:"fields" bson:"fields"`
Dedup struct {
Enabled bool `json:"enabled" bson:"enabled"`
Keys []string `json:"keys" bson:"keys"`
Type string `json:"type" bson:"type"`
} `json:"dedup" bson:"dedup"`
}