fastapi-core-models

Community

FastAPI base models with UUIDs and soft deletes.

Authoragusmdev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill standardizes SQLAlchemy base models for FastAPI projects by providing UUID primary keys, automatic timestamps, and soft delete support, reducing boilerplate and ensuring consistency across domains.

Core Features & Use Cases

  • Base: A reusable Base class with automatic table naming from class names.
  • Mixins: UUIDMixin, TimestampMixin, and SoftDeleteMixin to add common fields and behavior.
  • Usage: Create models by inheriting from the mixins and Base; example: class Item(UUIDMixin, TimestampMixin, SoftDeleteMixin, Base):
  • The approach supports consistent table schemas and easy maintenance across services.

Quick Start

  1. Ensure a Python environment with SQLAlchemy installed.
  2. Place the provided code into src/app/core/models.py (or project equivalent).
  3. Import and use the mixins in your FastAPI models, e.g. class Item(UUIDMixin, TimestampMixin, SoftDeleteMixin, Base): ...

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-core-models
Download link: https://github.com/agusmdev/burntop/archive/main.zip#fastapi-core-models

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 223,000+ vetted skills library on demand.