Swag Docs
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
config "studioj/boilerplate_go/configs"
|
||||
"studioj/boilerplate_go/internal/models"
|
||||
"fmt"
|
||||
config "learnsteam/learsteam-quiz-api/configs"
|
||||
"learnsteam/learsteam-quiz-api/internal/models"
|
||||
|
||||
"gorm.io/driver/mysql"
|
||||
"gorm.io/gorm"
|
||||
@ -33,8 +34,12 @@ func GetDB() *gorm.DB {
|
||||
}
|
||||
|
||||
func AutoMigrate() {
|
||||
fmt.Println("AugoMigrate")
|
||||
DB.AutoMigrate(
|
||||
&models.User{},
|
||||
&models.Token{},
|
||||
&models.Program{},
|
||||
&models.Quiz{},
|
||||
// &models.Course{},
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user