holistics / holistics/dbml

feat request: Allow TablePartial to have composite foreign keys

Open
#868 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
3.7k
Forks
233
Avg merge
1d 23h
Merged PRs (30d)
4

Description

I am hoping to do something like

```
Table relationship {
customer_id bigint
employee_id bigint
}

TablePartial rel {
customer_id bigint
employee_id bigint
}

Ref: rel(customer_id, employee_id) > relationship(customer_id, employee_id)

Table preferred_relationship {
~rel
category text
}
```
where each table that references a TablePartial will also create the same composite foreign key.

Do you think it is a good idea to add a feature like this? Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.