Improve model and add roles

This commit is contained in:
William Bouzourène 2025-01-01 15:22:02 +01:00
parent c8fedfbc8a
commit 455930b4c2
5 changed files with 32 additions and 38 deletions

15
models/roles.go Normal file
View 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
}