Write this
```dbml
Table users {
id bigint [pk, increment]
email varchar(254) [not null, unique]
}
Table posts {
id bigint [pk, increment]
author_id bigint [not null, ref: > users.id]
title varchar(200) [not null]
status post_status [not null, default: 'DRAFT']
}
Enum post_status {
DRAFT
PUBLISHED
ARCHIVED
}
```
Get this
- Preview
- Code
Table users {
id bigint [pk, increment]
email varchar(254) [not null, unique]
}
Table posts {
id bigint [pk, increment]
author_id bigint [not null, ref: > users.id]
title varchar(200) [not null]
status post_status [not null, default: 'DRAFT']
}
Enum post_status {
DRAFT
PUBLISHED
ARCHIVED
}