# Database

#### 1. Create a Neon DB Account

1. **Sign Up**: Go to the [Neon DB website](https://neon.tech/) and sign up for an account.
2. **Create a New Database**: Once logged in, create a new database instance. Note down the connection details (host, database name, username, password).

**Add Your Database Credentials**:

```bash
DATABASE_URL=postgresql://username:password@hostname:port/database?sslmode=require
```

PS: Your SAAS Plan names and affiliate program payment methods should be determined at both the config object level (/lib/config/main.ts) and the Prisma schema level.

```prisma
enum SubscriptionPlan {
  STARTER
  PREMIUM
  ENTREPRISE
  PLUS
}
```

```prisma
enum SelectedPaymentMethod {
  PAYONEER
  PAYPAL
  WISE
}

```

When you've ensured the config file and schema are aligned, run `npx prisma db push`  to  updates your database to match your Prisma schema , followed by `npx prisma generate` to regenerate the Prisma Client.
