Files
Ivan Rezchikov 628dd6384b
Build and Deploy / test-backend (push) Successful in 1m11s
Build and Deploy / lint-frontend (push) Successful in 21s
Build and Deploy / build-backend (push) Successful in 58s
Build and Deploy / deploy (push) Canceled after 0s
Build and Deploy / build-frontend (push) Canceled after 5m38s
version 1
2026-09-18 00:45:51 +03:00

26 lines
644 B
Go

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"`
}