log middleware

This commit is contained in:
2025-09-29 09:14:39 +03:00
parent 49ffe9ae03
commit e15d56196d
27 changed files with 641 additions and 164 deletions

10
database/psql/migrate.go Normal file
View File

@@ -0,0 +1,10 @@
package psql
import "kurumibot/database"
func Migrate() error {
return database.PostgresDatabase.AutoMigrate(
&User{}, &Fraction{}, &Group{}, &Waifu{}, &Work{},
&ShopAuto{}, &ShopBusiness{}, &ShopMaid{}, &ShopMiner{},
)
}