img conversion

This commit is contained in:
Nathan Rashleigh committed 2024-04-09 15:57:09 +10:00
1 parent 38c5579fbb
commit b655adc305
5 files changed
+927 -24

No files matched your search

+12 -7
View File
@@ -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")
}