Data Models & Schema

Document Prisma models, relations, and constraints from schema.prisma.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/tachfineamnay/LumiraV2 --skill data-models-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Data Models & Schema
Source: https://github.com/tachfineamnay/LumiraV2/tree/main/skills/18-data-models
Command: npx skills add https://github.com/tachfineamnay/LumiraV2 --skill data-models-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Data Models & Schema provides a complete reference of the Prisma schema used by Lumira V2, detailing all models, their fields, relations, and business logic to guide developers, data engineers, and architects.

Core Features & Use Cases

  • Complete Prisma models documentation covering the core entities like User, UserProfile, Order, OrderFile, SpiritualPath, PathStep, Insight, AkashicRecord, ChatSession, Expert, Product, ProcessedEvent, and SequenceCounter with their relations and constraints.
  • Relationship mapping and constraints guidance to support consistent data access patterns across the monorepo and inform migrations.
  • Usage guidance for onboarding, feature development, and architectural decision-making referencing the actual schema.prisma file.

Quick Start

Review the Prisma schema at packages/database/prisma/schema.prisma to understand the data models, their relations, and constraints.

Frequently Asked Questions about Data Models & Schema

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

FAQPage Schema
How do I model database schemas and relations with Prisma in a monorepo?

To model database schemas and relations with Prisma in a monorepo, you define your core entities, constraints, and relations in a centralized schema.prisma file to ensure consistent data access patterns across the workspace.

What is the best way to document Prisma models for database architecture review?

Documenting Prisma models for database architecture review involves detailing all models, fields, business logic, and relationship constraints to guide developers and data engineers during migrations and feature development.

How do I plan Prisma migrations using existing data models?

To plan Prisma migrations using existing data models, you review the schema reference to understand current constraints and relationship mappings, which informs the migration strategy and prevents data access inconsistencies.

Does this Prisma schema reference cover complex relations like OrderFile and AkashicRecord?

Yes, this Prisma schema reference covers complex relations and constraints for core entities including OrderFile, AkashicRecord, SpiritualPath, ChatSession, and SequenceCounter to support comprehensive data modeling.

When do I need to reference the schema.prisma file during onboarding?

You need to reference the schema.prisma file during onboarding to understand the existing data models, their relations, and constraints before starting feature development or making architectural decisions in the monorepo.