From 48164ec320c693937ead352246ec1e94bede3684 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 30 Apr 2023 04:47:07 -0400 Subject: [PATCH] fix: register LoginSession model --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index f383694..150b81c 100644 --- a/db/db.go +++ b/db/db.go @@ -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)) }