Relations
Link rows to another Database of the same project, with referential integrity.
A Relation column holds the IDs of rows in a target Database of the same project, one row or many. Think Store keeps the references valid inside the same transaction: writing an ID that does not exist in the target fails.
On delete
| Option | When a target row is deleted |
|---|---|
restrict | The delete is refused with 409; the message names the referencing table. |
setNull | The ID is removed from referencing cells. |
cascade | Referencing rows are deleted too, recursively, up to 8 levels. Self-references are safe. |