bknd-define-relationship
Installation
SKILL.md
Define Entity Relationships
Create relationships between entities in Bknd (foreign keys, references, associations).
Prerequisites
- At least two entities exist (see
bknd-create-entity) - For code mode: Access to your schema file
Relationship Types
| Type | Use Case | Example |
|---|---|---|
| Many-to-One | Child belongs to one parent | Posts → User (author) |
| One-to-One | Exclusive 1:1 pairing | User → Profile |
| Many-to-Many | Both sides have multiple | Posts ↔ Tags |
| Self-Referencing | Entity references itself | Categories → Parent Category |