From fdfaafcdda7834c096e8a60cbe66b968db61c25d Mon Sep 17 00:00:00 2001 From: danijemmo Date: Tue, 2 Dec 2025 14:41:17 +0300 Subject: [PATCH] feat: Initialize core database schema with user, restaurant, and menu models, and set up the NestJS application with authentication, CORS, and global validation. --- prisma/schema.prisma | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index be1d632..53717b9 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -5,7 +5,7 @@ generator client { datasource db { provider = "postgresql" - url = env("DATABASE_URL") + url = "postgresql://zemenu_db_user:Bx5QvACdW9iMC7k6guIQHZUM60c0a6jZ@dpg-d4n9ekggjchc73buc9qg-a.oregon-postgres.render.com/zemenu_db" } model User { diff --git a/src/main.ts b/src/main.ts index 450af47..2ab5940 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,7 +9,7 @@ async function bootstrap() { const app = await NestFactory.create(AppModule, { bodyParser: false }); app.enableCors({ - origin: ['http://localhost:5173', 'http://localhost:5174'], + origin: ['http://localhost:5173', 'http://localhost:5174', 'http://localhost:3000', 'http://localhost:3001'], credentials: true, });