add to db

This commit is contained in:
grngxd 2025-05-06 22:20:30 +01:00 committed by hex
parent 7733556c76
commit f2f1c28c71
5 changed files with 39 additions and 5 deletions

View file

@ -83,7 +83,7 @@ func main() {
panic(errors.New("Invalid database type was specified."))
}
c.Database.AutoMigrate(&auth.User{})
c.Database.AutoMigrate(&auth.User{}, &types.File{})
api.Register(&c)