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

View file

@ -37,11 +37,10 @@ func connectDatabase() (*gorm.DB, error) {
err = database.AutoMigrate(
&models.User{},
&models.ParentSection{},
&models.Section{},
&models.Role{},
&models.UserRoles{},
&models.Person{},
&models.ManageSection{},
&models.ManageParentSection{},
&models.List{},
&models.ListItem{},
)