package training import ( "time" "github.com/google/uuid" ) type DateID uuid.UUID func NewDateID() DateID { id := uuid.Must(uuid.NewV7()) return DateID(id) } type Date struct { ID DateID TrainingID ID Date time.Time StartTime time.Time Days int8 IsOnline bool Location string // could be empty (null) for example: Prague, Brno, London, ... Address string // could be empty (null) Capacity int8 PriceAmount float64 PriceCurrency string }