Update ChoreLabels struct with not null constraints

This commit is contained in:
Mo Tarbin 2024-11-28 11:32:37 -05:00
parent 46a5549e53
commit a3c5a81ce4

View file

@ -107,8 +107,8 @@ type Label struct {
} }
type ChoreLabels struct { type ChoreLabels struct {
ChoreID int `json:"choreId" gorm:"primaryKey;autoIncrement:false"` ChoreID int `json:"choreId" gorm:"primaryKey;autoIncrement:false;not null"`
LabelID int `json:"labelId" gorm:"primaryKey;autoIncrement:false"` LabelID int `json:"labelId" gorm:"primaryKey;autoIncrement:false;not null"`
UserID int `json:"userId" gorm:"primaryKey;autoIncrement:false"` UserID int `json:"userId" gorm:"primaryKey;autoIncrement:false;not null"`
Label Label Label Label
} }