feat: more clear output

This commit is contained in:
2025-03-18 03:23:15 +07:00
parent 6e5e676e84
commit 4536be4d10
3 changed files with 1 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ func CheckOneToMany(pass *analysis.Pass, models map[string]common.Model) {
if !foundOneToMany {
if foundBelongsTo {
fmt.Printf("Found belongs to relation in model `%s` with model `%s`\n", model.Name, *baseType)
fmt.Printf("`%s` belongs `%s`\n", *baseType, model.Name)
} else if hasOne {
fmt.Printf("`%s` has one `%s` \n", model.Name, relatedModel.Name)
} else {