1
0
Fork 0

feat: add training type/model

This commit is contained in:
Vojtěch Mareš 2024-05-04 11:44:45 +02:00
parent 3ee3be9e7f
commit 627be4d2f4
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
3 changed files with 18 additions and 3 deletions

15
pkg/training/model.go Normal file
View file

@ -0,0 +1,15 @@
package training
import "github.com/google/uuid"
type TrainingID uuid.UUID
func NewTrainingID() TrainingID {
return TrainingID(uuid.Must(uuid.NewV7()))
}
type Training struct {
ID TrainingID
Name string
Days int32
}