Add shortname in sections model
This commit is contained in:
parent
52372bcf69
commit
52951753a1
1 changed files with 3 additions and 1 deletions
|
|
@ -5,11 +5,13 @@ 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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue