data-model

Document 17 GORM database models, fields, relationships, and indexes.

125|18|Updated Jun 21, 2025
One-click install
npx skills add https://github.com/gjovanovicst/golang-auth-api --skill data-model-gjovanovicst
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-model
Source: https://github.com/gjovanovicst/golang-auth-api/tree/main/.opencode/skills/data-model
Command: npx skills add https://github.com/gjovanovicst/golang-auth-api --skill data-model-gjovanovicst

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive understanding of the Auth API's database schema, including all models, their fields, relationships, and indexes, enabling efficient data management and development.

Core Features & Use Cases

  • Database Model Details: Lists all 17 GORM models with detailed field descriptions, types, and key constraints.
  • Entity Relationship Diagram: Visualizes the connections between different entities like Tenants, Applications, Users, Roles, etc.
  • Cross-Cutting Patterns: Highlights common design patterns used across models, such as UUID primary keys and multi-tenancy via AppID.
  • Use Case: When developing a new feature that requires storing user preferences, you can use this Skill to quickly identify the User model, understand its structure, and see how it relates to other entities like Application.

Quick Start

Show me the database schema for the Auth API, including all models and their relationships.

Frequently Asked Questions about data-model

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

FAQPage Schema
How do I map out the GORM database schema for a Golang auth API?

To map the GORM database schema for a Golang auth API, you can reference details of all 17 models, including their fields, relationships, and indexes, provided with an entity relationship diagram.

What database models are used for multi-tenancy in a Golang auth application?

Multi-tenancy in this Golang auth application is handled via an AppID cross-cutting pattern across its 17 GORM models, connecting entities like Tenants, Applications, and Users.

Does the Auth API database schema use UUID primary keys across all models?

Yes, the Auth API database schema uses UUID primary keys as a cross-cutting pattern across its 17 GORM models to ensure unique identification.

How do I identify relationships between Users and Applications in a GORM schema?

You can identify relationships between Users and Applications by reviewing the entity relationship diagram, which visualizes connections between these and other auth entities like Roles.

What is the best way to understand GORM model fields and constraints for repository query development?

The best way to understand GORM model fields and constraints for repository query development is by referencing detailed model descriptions that list types, fields, and key constraints.

When do I need to review the Auth API schema before adding user preferences?

You need to review the Auth API schema before adding user preferences to identify the User model, understand its structure, and see how it relates to other entities like Application.