Prisma schema editing.
apps/backend/prisma/schema.prisma.apps/backend/prisma.config.ts.apps/backend/src/prisma/services/.Current schema is large: 200+ models and 140+ enums. Do not duplicate exhaustive model lists in skills; inspect the schema before editing.
schema.prisma declares provider/generator. The database URL is not in the schema; it is provided through apps/backend/prisma.config.ts.
// prisma.config.ts
export default defineConfig({
datasource: { url: process.env.DATABASE_URL! },
});
snake_case: users, store_users, subscription_plans.snake_case, but exceptions exist. Preserve existing naming in the touched model._enum, but enum values are mixed lower/upper case.vendix-prisma-migrations.schema.prisma minimally.prisma migrate dev --create-only when SQL needs review first.Preferred commands:
npm run db:migrate:dev -w apps/backend
npm run prisma:generate -w apps/backend
organization_id, store_id, or a relation to a scoped parent.StorePrismaService, OrganizationPrismaService, or EcommercePrismaService, update the scoped service registration.Unsupported("vector(1536)"); vector operations use raw SQL.ALTER TYPE ... ADD VALUE IF NOT EXISTS or guarded DO $$.DATA IMPACT header.vendix-prisma-migrationsvendix-prisma-scopesvendix-prisma-seedvendix-naming-conventions