Open limitcool opened 4 months ago
What is your Entity definition?
This is my database model with some fields omitted。
CREATE TABLE "public"."users" (
"id" uuid NOT NULL,
"username" text COLLATE "pg_catalog"."default" NOT NULL,
"password" text COLLATE "pg_catalog"."default" NOT NULL,
"email" text COLLATE "pg_catalog"."default" NOT NULL,
"role" "public"."permission_level" NOT NULL,
"email_verified" bool NOT NULL DEFAULT false,
"is_2fa" bool NOT NULL DEFAULT false,
"created_at" timestamptz(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" timestamptz(6) NOT NULL DEFAULT CURRENT_TIMESTAMP
)
;
Thanks, but I mean how the SeaORM entity file look like?
Description
When generating entity with SeaORM, the insertion statement unexpectedly transforms the field name "is_2fa" into "is2fa".
Steps to Reproduce
Versions
sea-orm-cli 0.12.14 sea-orm = { version = "0.12.14", features = ["sqlx-postgres", "runtime-tokio-rustls", "macros", "debug-print"] }