sqlmodel-task-models

Define type-safe SQLModel schemas for Todo apps with user-task relationships.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/omerspac/advanced-to-do-app --skill sqlmodel-task-models-omerspac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqlmodel-task-models
Source: https://github.com/omerspac/advanced-to-do-app/tree/main/Phase-2/.claude/skills/sqlmodel-task-models
Command: npx skills add https://github.com/omerspac/advanced-to-do-app --skill sqlmodel-task-models-omerspac

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Define a robust, type-safe SQLModel schema for a Todo application to streamline data modeling and accuracy.

Core Features & Use Cases

  • User and Task models mapped to database tables with proper relationships and back-references.
  • Foreign key constraints, data integrity, and indexed fields for performance (e.g., user_id, completed).
  • Automatic timestamp handling with created_at and updated_at.
  • Async-ready design compatible with FastAPI and Better Auth workflows.

Quick Start

Define the User and Task models in your FastAPI project and wire SQLModel to PostgreSQL with proper relationships.

Frequently Asked Questions about sqlmodel-task-models

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

FAQPage Schema
How do I define type-safe SQLModel schemas for a Todo app?

To define type-safe SQLModel schemas for a Todo app, you map User and Task models to database tables with proper relationships, back-references, and foreign key constraints. This enforces data integrity and explicit indexing for optimized PostgreSQL performance.

Does SQLModel support async workflows with FastAPI and Better Auth?

Yes, SQLModel supports async workflows with FastAPI and Better Auth. The schema design is async-ready, allowing you to wire SQLModel to PostgreSQL while maintaining compatibility with asynchronous backend authentication and routing processes.

What is the best way to manage automatic timestamps in SQLModel?

The best way to manage automatic timestamps in SQLModel is to enforce automatic timestamp handling within the schema definition. This automatically tracks created_at and updated_at fields, ensuring accurate time records without manual input during database updates.

Can I optimize PostgreSQL performance with indexed SQLModel fields?

Yes, you can optimize PostgreSQL performance by applying explicit indexing to specific SQLModel fields like user_id and completed. This schema design improves query speed and database efficiency when filtering through large volumes of user-task data.

How do I enforce user-task relationships in a SQLModel database schema?

To enforce user-task relationships in a SQLModel database schema, you apply foreign key constraints and configure back-references between the User and Task models. This ensures clear relational mapping and strict data integrity across your PostgreSQL backend.