You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
)
;
Description
When generating entity with SeaORM, the insertion statement unexpectedly transforms the field name "is_2fa" into "is2fa".
Steps to Reproduce
sea-orm-cli generate entity --database-url postgres://postgres:password@host:5432/dbname -o src/entity --with-serde both --expanded-format
2.
Versions
sea-orm-cli 0.12.14
sea-orm = { version = "0.12.14", features = ["sqlx-postgres", "runtime-tokio-rustls", "macros", "debug-print"] }
The text was updated successfully, but these errors were encountered: