Add shortname in sections model
This commit is contained in:
parent
dc1bd10c8f
commit
fd49b69799
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue