What problem does it solve?
This Skill simplifies complex database interactions by providing a unified, type-safe interface for defining models, managing relationships, and executing queries within the Stacks framework.
Core Features & Use Cases
- Model Definition: Easily define models with built-in support for traits like billable, taggable, and two-factor authentication.
- Relationship Management: Automatically handle complex database relationships including hasMany, belongsToMany, and polymorphic associations.
- Use Case: When building a new feature, use this Skill to define a Product model with Stripe integration and search indexing, allowing you to focus on business logic rather than boilerplate database code.
Quick Start
Use the stacks-orm skill to define a new model named Order with belongsTo relationships to User and Product.