sqlmodel-task-models

Define SQLModel User and Task schemas with PostgreSQL compatibility.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/SyedaNabila559/phase2-3-todo-full-web-with-ai-chatbot --skill sqlmodel-task-models-syedanabila559
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqlmodel-task-models
Source: https://github.com/SyedaNabila559/phase2-3-todo-full-web-with-ai-chatbot/tree/main/.claude/skills/sqlmodel-task-models
Command: npx skills add https://github.com/SyedaNabila559/phase2-3-todo-full-web-with-ai-chatbot --skill sqlmodel-task-models-syedanabila559

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a robust, type-safe SQLModel-based schema for a Todo application, enabling reliable data modeling and safer async operations with PostgreSQL.

Core Features & Use Cases

  • User Model: Schema aligned with Better Auth requirements.
  • Task Model: Full CRUD capabilities with relational mapping to Users.
  • Performance & Safety: Proper foreign keys, back-references, and indexing on user_id and completed, plus automated created_at and updated_at timestamps.
  • Use Case: Rapidly spin up a scalable data model for a Todo app, including migrations and queries by user.

Quick Start

Run the provided SQLModel User and Task model definitions to create tables in PostgreSQL and validate indexing and timestamp fields.

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 SQLModel schemas for a Todo app with PostgreSQL?

To define SQLModel schemas for a Todo app with PostgreSQL, you use robust type-safe User and Task models with proper foreign keys, automated created_at and updated_at timestamps, and indexing on user_id and completed fields to ensure scalable data modeling.

Can I use Better Auth with SQLModel User models?

Yes, you can use Better Auth with SQLModel because the User model schema is explicitly aligned with Better Auth requirements, enabling reliable data modeling and safer async operations for your application.

How do I set up async-friendly relationships between User and Task models?

To set up async-friendly relationships between User and Task models, you enforce proper foreign keys and back-references mapping Tasks to Users, which supports reliable relational mapping and scalable async operations.

Does this SQLModel schema support indexing on completed tasks and user_id?

Yes, this SQLModel schema supports indexing on both user_id and completed fields, enforcing proper foreign keys and back-references to optimize query performance and ensure scalable data retrieval by user.

What's the best way to automate created_at and updated_at timestamps in SQLModel?

The best way to automate created_at and updated_at timestamps in SQLModel is using a schema design that enforces automated timestamp fields on User and Task models, supporting reliable data modeling for scalable PostgreSQL applications.

Do I need PostgreSQL to run these SQLModel Task models?

Yes, you need PostgreSQL to run these SQLModel Task models because the schema is specifically designed for PostgreSQL compatibility, ensuring reliable data modeling and safer async operations within that database environment.