fastapi-model-creation

Community

Standardized SQLModel models for FastAPI apps.

Authortanaka-mambinge
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a standardized blueprint for creating SQLModel-based database models in FastAPI projects, ensuring consistent structure, naming, and inheritance across models and reducing onboarding time for new developers.

Core Features & Use Cases

  • Base Model Features: All models inherit from BaseModelMixin, include id, created_at, updated_at automatically.
  • File Structure & Registration: Models live under ./models/ with explicit tablename and export in ./models/init.py.
  • Conventions: Explicit table naming, nullable/required fields, indexing, uniqueness, and foreign keys.
  • Use Case: When starting a new FastAPI project or modifying existing models, apply this standard to ensure consistency and type safety.

Quick Start

Create a new model file under ./models/ following the naming and inheritance guidelines, and export it in ./models/init.py.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fastapi-model-creation
Download link: https://github.com/tanaka-mambinge/dotfiles/archive/main.zip#fastapi-model-creation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.