img conversion
This commit is contained in:
1 parent
38c5579fbb
commit
b655adc305
5 files changed
+927
-24
No files matched your search
+12
-7
@@ -11,11 +11,14 @@ datasource db {
|
||||
|
||||
model Attachment {
|
||||
id BigInt @id
|
||||
attachmentId BigInt
|
||||
msgId BigInt
|
||||
channelId BigInt
|
||||
|
||||
url String
|
||||
memeId String @unique @db.Uuid
|
||||
meme Meme @relation(fields: [memeId], references: [id], onDelete: Restrict)
|
||||
|
||||
url String
|
||||
contentType String
|
||||
|
||||
message Json
|
||||
guild Json
|
||||
@@ -23,12 +26,10 @@ model Attachment {
|
||||
vision Json
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([attachmentId])
|
||||
@@index([channelId])
|
||||
|
||||
@@map("listings")
|
||||
@@map("attachments")
|
||||
}
|
||||
|
||||
model Meme {
|
||||
@@ -38,7 +39,11 @@ model Meme {
|
||||
tags Json
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
attachment Attachment?
|
||||
|
||||
@@map("memes")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user