22 lines
383 B
Go
22 lines
383 B
Go
package training
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type DateID uuid.UUID
|
|
|
|
type Date struct {
|
|
ID DateID
|
|
TrainingID ID
|
|
Date time.Time
|
|
StartTime time.Time
|
|
Days int8
|
|
Price Price
|
|
IsOnline bool
|
|
Location string // could be empty (null) for example: Prague, Brno, London, ...
|
|
Address string // could be empty (null)
|
|
Capacity int8
|
|
}
|