Added a description in DB
This commit is contained in:
parent
98f3c2aedc
commit
496b51646e
1 changed files with 6 additions and 5 deletions
|
|
@ -14,6 +14,7 @@ type Plan struct {
|
||||||
ID uint `gorm:"primaryKey;autoIncrement:true" json:"id"`
|
ID uint `gorm:"primaryKey;autoIncrement:true" json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Owner string `json:"owner"`
|
Owner string `json:"owner"`
|
||||||
|
Description string `json:"description"`
|
||||||
Members []User `gorm:"many2many:user_plans;" json:"-"`
|
Members []User `gorm:"many2many:user_plans;" json:"-"`
|
||||||
Polls []Poll `gorm:"foreignKey:PlanID;references:ID" json:"-"`
|
Polls []Poll `gorm:"foreignKey:PlanID;references:ID" json:"-"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue