data-model-design

Design entities, relationships, and migrations for tenant-scoped Open Mercato modules.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/TomekNocon/open-logistico --skill data-model-design-tomeknocon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-model-design
Source: https://github.com/TomekNocon/open-logistico/tree/main/packages/create-app/agentic/shared/ai/skills/data-model-design
Command: npx skills add https://github.com/TomekNocon/open-logistico --skill data-model-design-tomeknocon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design entities, relationships, and manage the migration lifecycle following Open Mercato conventions.

Core Features & Use Cases

  • Entity and relationship design guided by standard templates and best practices.
  • Migration lifecycle support with scaffolded migrations and consistency guarantees.
  • Cross-module reference planning and dependency mapping to maintain module boundaries.

Quick Start

Define your entities and relationships, then generate and apply migrations using the standard Open Mercato workflow.

Frequently Asked Questions about data-model-design

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

FAQPage Schema
How do I design a data model with cross-module references?

To design a data model effectively, this Skill guides you in planning entities, relationships, and cross-module references while maintaining module boundaries. It enforces standard conventions like UUID v4 primary keys for robust database schemas.

What is the best way to generate database migrations for tenant-scoped modules?

The best way to handle database migrations for tenant-scoped modules is using standard migration tooling like yarn db:generate and yarn db:migrate. This provides consistency guarantees and guides the migration lifecycle from scaffolding to deployment.

How do I plan a new data model using an ORM?

To plan a new data model with an ORM, you define your entities and relationships using standard templates. This process guides relationship patterns and enforces primary key conventions before applying database migrations.

Does this data model design approach work with Postgres?

Yes, this data model design approach works with Postgres by enforcing standard columns and UUID v4 primary keys. It supports the migration lifecycle using yarn db:generate and yarn db:migrate commands tailored for Postgres databases.

What are the standard columns required when designing entities?

When designing entities, standard columns and UUID v4 primary keys are required to follow Open Mercato conventions. These standard templates ensure consistency across entities and maintain robust relationship patterns.

When should I run yarn db:migrate during the migration lifecycle?

You should run yarn db:migrate after you generate migrations with yarn db:generate and define your entities. This sequence applies the scaffolded migrations to your database, ensuring consistency and proper dependency mapping.