Add shortname in sections model

This commit is contained in:
William Bouzourène 2024-12-30 14:46:22 +01:00
parent dc1bd10c8f
commit fd49b69799

View file

@ -4,12 +4,14 @@ import "gorm.io/gorm"
type ParentSection struct { type ParentSection struct {
gorm.Model gorm.Model
Name string Name string
ShortName string
} }
type Section struct { type Section struct {
gorm.Model gorm.Model
Name string Name string
ShortName string
ParentSectionID uint ParentSectionID uint
ParentSection ParentSection ParentSection ParentSection
} }