use h3 instead of trpc

This commit is contained in:
2023-12-09 21:26:41 +01:00
parent f0aa9ebdf4
commit ba067cf533
25 changed files with 1395 additions and 940 deletions

View File

@@ -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
}