Backend Models

Define database models with constraints, relationships, and timestamps.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/frankdevlabs/compilothq --skill backend-models-frankdevlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Backend Models
Source: https://github.com/frankdevlabs/compilothq/tree/main/.claude/skills/backend-models
Command: npx skills add https://github.com/frankdevlabs/compilothq --skill backend-models-frankdevlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Poorly defined database models lead to data inconsistencies, integrity issues, and complex application logic required to compensate for a weak schema, increasing development and maintenance costs.

Core Features & Use Cases

  • Data Integrity Constraints: Enforce database-level constraints like NOT NULL, UNIQUE, CHECK, and foreign key relationships for robust data integrity.
  • Relationship Definitions: Clearly define associations between entities (e.g., one-to-many, many-to-many) using ORM features to accurately represent data connections.
  • Timestamps & Data Types: Include createdAt and updatedAt timestamp fields on all tables for auditing, and choose appropriate data types for columns based on their purpose.

Quick Start

Define a new Product model, including name (unique, not null), price (decimal), description (text), and createdAt/updatedAt timestamps, with a foreign key to a Category model.