Feat: finish login and add test

This commit is contained in:
ytshih committed 2025-12-07 17:42:28 +08:00
1 parent 2eb8a18c40
commit 3970dd5ebd
15 files changed
+110 -41

No files matched your search

+2 -1
View File
@@ -7,7 +7,8 @@ import (
"github.com/uptrace/bun"
)
func initDB(ctx context.Context, db *bun.DB) error {
func InitDB(ctx context.Context, db *bun.DB) error {
db.RegisterModel((*models.AliasImage)(nil))
return db.ResetModel(ctx,
(*models.Alias)(nil),
(*models.Image)(nil),