updated and runned and tested

This commit is contained in:
2025-07-25 09:57:16 +03:00
parent 5a47a06c0e
commit 8ca2d34dc6
35 changed files with 12456 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
-- CreateTable
CREATE TABLE "User" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"email" TEXT NOT NULL,
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");

View File

@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "postgresql"

View File

@@ -0,0 +1,8 @@
import { Module } from '@nestjs/common';
import { PrismaService } from '@/prisma.service';
@Module({
providers: [PrismaService],
exports: [PrismaService], // Dışarııyoruz ki başka modüller kullanabilsin
})
export class PrismaModule {}

View File

@@ -0,0 +1,10 @@
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}
datasource db {
provider = "postgresql"
url = "postgresql://postgres:password@10.10.2.14:5432/sample_db?schema=public"
}