Ash FrameworkAF
Ash Framework3y ago
21 replies
tellesleandro

Complex types (postgres)

Is it possible to create (and use) complex types like this
CREATE DOMAIN dow AS integer
      CHECK(
        value BETWEEN 1 and 7
      );

CREATE TYPE week_range as (
        start_dow dow,
        start_time time,
        end_dow dow,
        end_time time,
        limit_in_seconds integer
      );

?
Was this page helpful?