Add shortname in sections model

This commit is contained in:
William Bouzourène 2024-12-30 14:46:22 +01:00
parent 52372bcf69
commit 52951753a1
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww

View file

@ -5,11 +5,13 @@ import "gorm.io/gorm"
type ParentSection struct {
gorm.Model
Name string
ShortName string
}
type Section struct {
gorm.Model
Name string
ShortName string
ParentSectionID uint
ParentSection ParentSection
}