feat(db): add Prisma schema and global PrismaModule

Models mirror Hiboutik entities (categories tree, brands, suppliers, products and their versions, customers) plus addresses and orders for the upcoming sync. Every synced model is matched with Hiboutik through a unique hiboutikId. The generated client is ignored by git and env files other than .env.example are ignored.
This commit is contained in:
MastersGame
2026-11-05 23:00:46 +01:00
parent a0ddef240c
commit 8f377a1fe9
7 changed files with 271 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
import { Prisma } from '../generated/client';
/** Product loaded with its versions (`include: { versions: true }`). */
export type ProductWithVersions = Prisma.ProductGetPayload<{ include: { versions: true } }>;