fix: register LoginSession model

This commit is contained in:
Derrick Hammer 2023-04-30 04:47:07 -04:00
parent 7257b5d597
commit 48164ec320
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func Init() {
}
// Automatically migrate the database schema based on the model definitions.
err = db.Migrator().AutoMigrate(&model.Account{}, &model.Key{}, &model.KeyChallenge{})
err = db.Migrator().AutoMigrate(&model.Account{}, &model.Key{}, &model.KeyChallenge{}, &model.LoginSession{})
if err != nil {
panic(fmt.Errorf("Database setup failed database type: %s \n", err))
}