feat: Initialize core database schema with user, restaurant, and menu models, and set up the NestJS application with authentication, CORS, and global validation.

This commit is contained in:
2025-12-02 14:41:17 +03:00
parent 018d9ad41d
commit fdfaafcdda
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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,
});