Extend model with sections & model
This commit is contained in:
parent
6b8cac30ce
commit
f491fdd9f4
4 changed files with 77 additions and 1 deletions
|
|
@ -16,3 +16,31 @@ type User struct {
|
|||
IsAdmin bool
|
||||
SkipWelcome bool
|
||||
}
|
||||
|
||||
type ManageSection struct {
|
||||
gorm.Model
|
||||
UserID uint
|
||||
User User
|
||||
SectionID uint
|
||||
Section Section
|
||||
ShowPerson bool
|
||||
CreatePerson bool
|
||||
EditPerson bool
|
||||
ShowArchivedPerson bool
|
||||
ArchivePerson bool
|
||||
UnarchivePerson bool
|
||||
}
|
||||
|
||||
type ManageParentSection struct {
|
||||
gorm.Model
|
||||
UserID uint
|
||||
User User
|
||||
ParentSectionID uint
|
||||
ParentSection ParentSection
|
||||
ShowPerson bool
|
||||
CreatePerson bool
|
||||
EditPerson bool
|
||||
ShowArchivedPerson bool
|
||||
ArchivePerson bool
|
||||
UnarchivePerson bool
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue