[question] How do I create composite types
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 3.7k
- Forks
- 233
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 4
Description
Is it possible to create structures (like PostgreSQL's composite types) with current DBML syntax? If not is there any workaround?
The equivalent in Postgres:
```sql
CREATE TYPE inventory_item AS (
name text,
supplier_id integer,
price numeric
);
```
I would like to define new types and use them as a type of a column
Contributor guide
Assessment
This issue has not been assessed yet.