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

When to Use UI vs Code

Related skills

More from cameronapak/bknd-skills

Installs
13
GitHub Stars
3
First Seen
Jan 21, 2026