# database Database

Generated with Bangstack using Prisma ORM.

## Setup

1. Install dependencies:
   ```bash
   npm install
   ```

2. Configure your database:
   ```bash
   cp .env.example .env
   # Edit .env with your database credentials
   ```

3. Run migrations:
   ```bash
   npm run db:migrate
   ```

4. (Optional) Seed the database:
   ```bash
   npm run db:seed
   ```

## Available Scripts

- `npm run db:generate` - Generate Prisma Client
- `npm run db:migrate` - Run database migrations
- `npm run db:push` - Push schema changes without migrations
- `npm run db:seed` - Seed the database
- `npm run db:studio` - Open Prisma Studio (database GUI)

## Database Provider

This project uses **postgresql** as the database provider.

## Schema

The Prisma schema is located at `prisma/schema.prisma`.

## Documentation

- [Prisma Documentation](https://www.prisma.io/docs)
- [Prisma CLI Reference](https://www.prisma.io/docs/reference/api-reference/command-reference)
