task-crud-model

Generate SQLModel Task models with primary and foreign keys for Python backends.

Updated Dec 31, 2025
One-click install
npx skills add https://github.com/Jawad-Chaudhary/Hackathone-2-TODO-Spec-Driven-Development --skill task-crud-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: task-crud-model
Source: https://github.com/Jawad-Chaudhary/Hackathone-2-TODO-Spec-Driven-Development/tree/main/Phase02/.claude/skills/task-crud-model
Command: npx skills add https://github.com/Jawad-Chaudhary/Hackathone-2-TODO-Spec-Driven-Development --skill task-crud-model

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates SQLModel-based Todo task models to define a robust database schema for task persistence and ORM usage.

Core Features & Use Cases

  • Generate a Task model with id as primary key, title, description (optional), completed boolean, and user_id foreign key to user.id.
  • Supports table=True for SQLModel to integrate with migrations and databases.
  • Use Case: As a backend engineer, quickly scaffold Todo-related data models for API and DB schema generation.

Quick Start

Define a Task model class using SQLModel with fields id, title, description, completed, and user_id.

Frequently Asked Questions about task-crud-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define a SQLModel Todo task model for my Python database schema?

To define a SQLModel Todo task model, create a Task class with table=True, specifying fields like id as primary key, title, description, completed boolean, and user_id as foreign key to user.id for database schema persistence.

What fields should a Todo task SQLModel include for CRUD API operations?

A Todo task SQLModel for CRUD API operations should include an id primary key, title string, optional description string, completed boolean, and a user_id foreign key referencing user.id to enforce data integrity.

Can I use SQLModel to generate database models with foreign keys for Python backend services?

Yes, you can use SQLModel to generate database models with foreign keys for Python backend services by applying table=True and defining relationships like user_id linking to user.id, enabling ORM integration and migrations.

How does SQLModel handle data integrity across migrations for Todo task persistence?

SQLModel handles data integrity across migrations for Todo task persistence by enforcing proper primary keys and foreign key constraints, such as linking user_id to user.id, within the generated table=True model class.

What is the best way to scaffold a Todo task data model for API and DB schema generation?

The best way to scaffold a Todo task data model for API and DB schema generation is using SQLModel to define a standalone Task model class with id, title, description, completed, and user_id fields for immediate ORM use.

Do I need an existing user model to define a Todo task SQLModel with a foreign key?

Yes, defining a Todo task SQLModel with a user_id foreign key requires an existing user.id reference to establish the relational database constraint and ensure proper task persistence linked to specific users.