feat: ajout structure projet + config Node 20

This commit is contained in:
UltraLionFr
2025-12-07 00:11:21 +01:00
parent c728019f04
commit 25d49d04f0
60 changed files with 4260 additions and 157 deletions
+31
View File
@@ -0,0 +1,31 @@
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Tutorial {
id String @id @default(cuid())
slug String @unique
title String
categoryId String
category Category @relation(fields: [categoryId], references: [id])
difficulty String
readTime String?
excerpt String?
content String
date DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Category {
id String @id @default(cuid())
name String @unique
slug String @unique
color String @default("#06b6d4") // cyan-500
tutorials Tutorial[]
createdAt DateTime @default(now())
}