Feat: add more tests

This commit is contained in:
2025-12-07 23:59:24 +08:00
parent 1f313fc17d
commit f191aef810
17 changed files with 307 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ type Alias struct {
bun.BaseModel `bun:"table:alias"`
Id int64 `bun:"id,pk,autoincrement"`
Name string `bun:"name,notnull"`
Name string `bun:"name,unique"`
Images []Image `bun:"m2m:alias_image,join:Alias=Image"`
}