package model import ( "time" "github.com/google/uuid" ) type CollectionType string const ( CollectionTypeAuto CollectionType = "auto" CollectionTypeUser CollectionType = "user" ) type Collection struct { Id uuid.UUID `json:"id" db:"id"` Name string `json:"name" db:"name"` Lang Language `json:"lang" db:"lang"` UserID uuid.UUID `json:"user_id" db:"user_id"` Words []string `json:"words" db:"words"` Type CollectionType `json:"type" db:"type"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` CreatedAt time.Time `json:"created_at" db:"created_at"` }