feat: add training type/model
This commit is contained in:
parent
3ee3be9e7f
commit
627be4d2f4
3 changed files with 18 additions and 3 deletions
15
pkg/training/model.go
Normal file
15
pkg/training/model.go
Normal 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
|
||||
}
|
||||
Reference in a new issue