Add automigrate for users table
This commit is contained in:
parent
f35e5db1a9
commit
1c12d29aa5
1
db/db.go
1
db/db.go
|
@ -50,5 +50,6 @@ func Connect() *gorm.DB {
|
||||||
gormDB.AutoMigrate(&ItemBought{})
|
gormDB.AutoMigrate(&ItemBought{})
|
||||||
gormDB.AutoMigrate(&Income{})
|
gormDB.AutoMigrate(&Income{})
|
||||||
gormDB.AutoMigrate(&Debt{})
|
gormDB.AutoMigrate(&Debt{})
|
||||||
|
gormDB.AutoMigrate(&User{})
|
||||||
return newUDB
|
return newUDB
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user