Skip to content

Database

The db package contains the Prisma schema, database client, and other database-related utilities.

Responsibilities

  • Defines the database schema using Prisma.
  • Provides a database client for other services to use.

Structure

The database package is located in the packages/db directory.

packages/db
├── src
│   ├── lib
│   │   └── enums.ts
│   ├── client.ts
│   ├── index.ts
│   ├── schema.ts
│   └── types.ts
├── eslint.config.js
├── package.json
├── schema.prisma
└── tsconfig.json