Centralized database authority repository for the Jethings ecosystem.
This repository is the single source of truth for:
- Prisma schema
- Database migrations
- Database structure
- Seeds
- Database evolution
Run the full database bootstrap after migrations:
pnpm db:bootstrapRun only the idempotent seed:
pnpm prisma:seedThe seed flow generates permission resources from every Prisma model, then seeds:
- base roles and role-resource permissions
- the global super admin account
- store types:
OPTIC,SHOES - product types:
LENS,FRAME,SHOES - required lens variants and their product-type relations
Configure the super admin through .env:
SUPER_ADMIN_EMAIL=superadmin@jethings.local
SUPER_ADMIN_PASSWORD=SuperAdmin123!jethings-database
└── Owns schema + migrations
j-shoes-backend
└── Prisma consumer only
j-optic
└── Drizzle consumer only