Added a description in DB

This commit is contained in:
Manuel Forcén Muñoz 2025-01-14 19:28:25 +01:00
parent 98f3c2aedc
commit 496b51646e

View file

@ -14,6 +14,7 @@ type Plan struct {
ID uint `gorm:"primaryKey;autoIncrement:true" json:"id"`
Name string `json:"name"`
Owner string `json:"owner"`
Description string `json:"description"`
Members []User `gorm:"many2many:user_plans;" json:"-"`
Polls []Poll `gorm:"foreignKey:PlanID;references:ID" json:"-"`
}