What problem does it solve?
This Skill ensures database models are well-defined, maintain data integrity, and accurately represent application entities, simplifying data management and reducing errors.
Core Features & Use Cases
- Data Integrity: Guides the definition of appropriate data types, constraints (NOT NULL, UNIQUE), and foreign key relationships.
- Clear Structure: Ensures models have clear naming, timestamps, and indexes for optimal performance and maintainability.
- Use Case: When creating a new
Product model, use this skill to define its attributes with correct data types (e.g., DECIMAL for price), add created_at and updated_at timestamps, and establish a foreign key relationship to a Category model.
Quick Start
Apply the Backend Models skill to define a new 'InvoiceItem' model, including fields for quantity, price, and a foreign key relationship to the 'Invoice' model, ensuring proper data types and constraints.