Update ChoreLabels struct with not null
constraints
This commit is contained in:
parent
46a5549e53
commit
a3c5a81ce4
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue