From 1c12d29aa5d33264697f2843882bb7b29cf9087c Mon Sep 17 00:00:00 2001 From: qowevisa Date: Fri, 2 Aug 2024 23:37:05 +0300 Subject: [PATCH] Add automigrate for users table --- db/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db.go b/db/db.go index a55d06f..b9bacd2 100644 --- a/db/db.go +++ b/db/db.go @@ -50,5 +50,6 @@ func Connect() *gorm.DB { gormDB.AutoMigrate(&ItemBought{}) gormDB.AutoMigrate(&Income{}) gormDB.AutoMigrate(&Debt{}) + gormDB.AutoMigrate(&User{}) return newUDB }