Skip to content

Schema generations doesn't take well custom postgres types #299

@Fabricio-191

Description

@Fabricio-191

It's a small issue, in my postgres database (through supabase), i have a custom type:

CREATE DOMAIN api.rating_value AS FLOAT CHECK (VALUE BETWEEN 0 AND 5);

And the generated schema column for columns with that data type turns out to be Column.text instead of Column.real (i'm using dart/flutter)

It would be great if it could detect the subtype of the custom type, if not it would be nice a warning/comment while generating the schema like: x column datatype not recognized, assigned text type

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions