POC-server/prisma/schema.prisma
2025-01-29 11:03:36 +05:30

39 lines
993 B
Plaintext

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
model HeroImages {
id String @id @default(auto()) @map("_id") @db.ObjectId
urls String[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Coach {
id String @id @default(auto()) @map("_id") @db.ObjectId
name String
title String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Events {
id String @id @default(auto()) @map("_id") @db.ObjectId
title String
description String
date DateTime
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}