mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-14 12:14:42 +01:00
use h3 instead of trpc
This commit is contained in:
@@ -29,8 +29,6 @@ model Category {
|
||||
createdAt DateTime @default(now())
|
||||
slug String
|
||||
name String
|
||||
type CategoryType
|
||||
bookmarks CategoriesOnBookMarks[]
|
||||
talents CategoriesOnTalents[]
|
||||
}
|
||||
|
||||
@@ -56,26 +54,6 @@ model CategoriesOnTalents {
|
||||
@@index([categoryId])
|
||||
}
|
||||
|
||||
model BookMark {
|
||||
id Int @id @default(autoincrement())
|
||||
createdAd DateTime @default(now())
|
||||
name String
|
||||
description String
|
||||
link String
|
||||
CategoriesOnBookMarks CategoriesOnBookMarks[]
|
||||
}
|
||||
|
||||
model CategoriesOnBookMarks {
|
||||
bookmarkId Int
|
||||
categoryId Int
|
||||
bookmark BookMark @relation(fields: [bookmarkId], references: [id])
|
||||
category Category @relation(fields: [categoryId], references: [id])
|
||||
|
||||
@@id([bookmarkId, categoryId])
|
||||
@@index([bookmarkId])
|
||||
@@index([categoryId])
|
||||
}
|
||||
|
||||
model Post {
|
||||
id Int @id @default(autoincrement())
|
||||
slug String @unique
|
||||
@@ -84,6 +62,14 @@ model Post {
|
||||
likes Int @default(0)
|
||||
}
|
||||
|
||||
model Suggestion {
|
||||
id Int @id @default(autoincrement())
|
||||
author String @unique
|
||||
content String
|
||||
added Boolean @default(false)
|
||||
createdAt DateTime @default(now())
|
||||
}
|
||||
|
||||
model Form {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
@@ -91,8 +77,3 @@ model Form {
|
||||
content String
|
||||
createdAt DateTime @default(now())
|
||||
}
|
||||
|
||||
enum CategoryType {
|
||||
TALENT
|
||||
BOOKMARK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user