order number support

This commit is contained in:
Alex Frantz
2024-03-21 01:40:07 -04:00
parent 381081c051
commit 94b7b9a83c
5 changed files with 122 additions and 48 deletions
+5 -4
View File
@@ -8,7 +8,7 @@ datasource db {
}
model BlogPost {
id String @id @default(uuid()) @map("_id")
id Int @id @default(autoincrement())
name String
image String
contents String
@@ -23,7 +23,7 @@ model BlogPost {
}
model Post {
id String @id @default(uuid()) @map("_id")
id Int @id @default(autoincrement())
type String
name String
reviewContents String
@@ -38,9 +38,10 @@ model Post {
}
model SocialLink {
id String @id @default(uuid()) @map("_id")
id Int @id @default(autoincrement())
name String
url String
orderNumber Int @default(0)
@@index([name])
}
@@ -85,7 +86,7 @@ model User {
}
model VerificationToken {
identifier String @id @map("_id")
identifier String
token String @unique
expires DateTime