Improve model and add roles
This commit is contained in:
parent
488da64ccf
commit
3e984d059c
5 changed files with 32 additions and 38 deletions
15
models/roles.go
Normal file
15
models/roles.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Role struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
ShowPerson bool
|
||||
CreatePerson bool
|
||||
EditPerson bool
|
||||
ShowArchivedPerson bool
|
||||
ArchivePerson bool
|
||||
RestorePerson bool
|
||||
ExportData bool
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue