From e1d46557b98d5c2c5a68fbe63d4c490b83cee532 Mon Sep 17 00:00:00 2001 From: xw Date: Thu, 22 Sep 2022 17:32:14 +0800 Subject: [PATCH] fix:table name may not be the same as in the database --- internal/entimport/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/entimport/import.go b/internal/entimport/import.go index a54fcdc..3ef9fdc 100644 --- a/internal/entimport/import.go +++ b/internal/entimport/import.go @@ -233,7 +233,7 @@ func isJoinTable(table *schema.Table) bool { } func typeName(tableName string) string { - return inflect.Camelize(inflect.Singularize(tableName)) + return inflect.Camelize(tableName) } func tableName(typeName string) string {