Table "public.sessions"
Column | Type | Collation | Nullable | Default
---------+------------------------+-----------+----------+---------
id | character varying(128) | | not null |
expires | integer | | |
session | text | | not null |
Indexes:
"sessions_pkey" PRIMARY KEY, btree (id)
id is a session id with length 128 and I believe it is a UUID and hence the 128 length.
With sea-orm-cli generate entity, the type is incorrectly produced.
Description
character varying(128)
in incorrectly generated as128u32
Steps to Reproduce
Consider the following table
id
is a session id with length 128 and I believe it is a UUID and hence the 128 length. Withsea-orm-cli generate entity
, the type is incorrectly produced.If I don't manually coerce it to
ColumnType::Text.def()
, it won't compileExpected Behavior
After referencing this table, I cannot tell what type should be.
Reproduces How Often
It is always reproducible
Workarounds
Change to
ColumnType::Text.def()
manually.Versions
psql (16.1 (Debian 16.1-1.pgdg100+1), server 9.6.24) Debian 12