orm-models

Official

Effortlessly build ORM models for LiteORM.

Authorgo-again
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill unit provides a comprehensive guide to define and manage ORM models using LiteORM's declarative ORM front-end, streamlining the process of creating and interacting with database models.

Core Features & Use Cases

  • Model Definition: Learn how to define model structs with TableName() and orm:"..." tags.
  • AutoMigrate: Automate the creation and synchronization of database tables with AutoMigrate.
  • Associations: Understand how to handle relationships like belongs-to, has-many, and many-to-many.
  • Hooks: Implement custom hooks for lifecycle events like create, update, and delete.
  • Soft Delete: Implement soft delete functionality for models with soft delete columns.
  • Use Case: Create a User model with associated Post and Comment models, and implement soft delete for user records.

Quick Start

Use the orm-models skill to define a new model 'User' with fields for ID, username, and email.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: orm-models
Download link: https://github.com/go-again/liteorm/archive/main.zip#orm-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 620,000+ vetted skills library on demand.