mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
- Updated Go version in go.work and backend/go.mod to 1.23.7 - Updated various dependencies in go.sum and backend/go.sum - Refactored models to remove generic type parameters from BaseModel - Introduced new utility functions for consistent API responses - Removed unused utility files from controllers
18 lines
485 B
Go
18 lines
485 B
Go
package models
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/entity"
|
|
)
|
|
|
|
type DataCollection struct {
|
|
any `collection:"data_collections"`
|
|
BaseModel `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"`
|
|
}
|