feat(training): add model for TrainingDateAttendee
This commit is contained in:
parent
fc9e9d4b1f
commit
96eec62a5d
1 changed files with 20 additions and 0 deletions
|
|
@ -55,3 +55,23 @@ type TrainingDate struct {
|
||||||
Price money.Price
|
Price money.Price
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type TrainingDateAttendeeID = uuid.UUID
|
||||||
|
|
||||||
|
func NewTrainingDateAttendeeID() TrainingDateAttendeeID {
|
||||||
|
return uuid.Must(uuid.NewV7())
|
||||||
|
}
|
||||||
|
|
||||||
|
type TrainingDateAttendee struct {
|
||||||
|
trainingDateID TrainingDateID
|
||||||
|
|
||||||
|
ID TrainingDateAttendeeID
|
||||||
|
Name string
|
||||||
|
Email string
|
||||||
|
Phone string
|
||||||
|
Company string
|
||||||
|
Position string
|
||||||
|
Bill money.Price
|
||||||
|
IsStudent bool
|
||||||
|
HasPaid bool
|
||||||
|
HasAttended bool
|
||||||
|
}
|
||||||
|
|
|
||||||
Reference in a new issue