添加模型token数表

This commit is contained in:
junleea 2025-03-30 14:14:35 +08:00
parent e2fbfc50e1
commit 77fc9a844a
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,12 @@ func Init() error {
return err
}
err = db.AutoMigrate(&ModelToken{})
if err != nil {
fmt.Println("model token table:", err)
return err
}
err = db.AutoMigrate(&Session{})
if err != nil {
fmt.Println("session table:", err)