Improve model and add roles
This commit is contained in:
parent
488da64ccf
commit
3e984d059c
5 changed files with 32 additions and 38 deletions
|
|
@ -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{},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue