forked from goffee/cup
authority system start
This commit is contained in:
parent
e5dee10221
commit
cac2986b59
6 changed files with 476 additions and 0 deletions
|
|
@ -18,4 +18,8 @@ func RunAutoMigrations() {
|
|||
|
||||
// Add auto migrations for your models here...
|
||||
db.AutoMigrate(&models.User{})
|
||||
db.AutoMigrate(&models.UserRole{})
|
||||
db.AutoMigrate(&models.Role{})
|
||||
db.AutoMigrate(&models.RolePermission{})
|
||||
db.AutoMigrate(&models.Permission{})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue