This commit is contained in:
junleea 2024-08-30 11:51:31 +08:00
parent 8189048e5b
commit 2c7d0d3b09
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ func Init() error {
fmt.Println("message table:", err)
}
err = db.AutoMigrate(&File{})
if err != nil {
fmt.Println("file table:", err)
}
err = db.AutoMigrate(&Group{})
if err != nil {
fmt.Println("usergroup table:", err)