mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
18 lines
577 B
Go
18 lines
577 B
Go
package models
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/entity"
|
|
)
|
|
|
|
type DataCollectionV2 struct {
|
|
any `collection:"data_collections"`
|
|
BaseModelV2[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"`
|
|
}
|