添加文件内容表结构

This commit is contained in:
junleea 2025-04-07 18:06:59 +08:00
parent d148d453b8
commit 7064c156a8
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ func Init() error {
return err
}
err = db.AutoMigrate(&FileContent{})
if err != nil {
fmt.Println("file content table:", err)
return err
}
err = db.AutoMigrate(&Model{})
if err != nil {
fmt.Println("model table:", err)