Files
memestream/prisma/schema.prisma
T
2024-04-09 13:04:05 +10:00

45 lines
869 B
Plaintext

generator client {
provider = "prisma-client-js"
// include for node docker image
binaryTargets = ["native", "debian-openssl-1.1.x"]
}
datasource db {
provider = "postgresql"
url = env("POSTGRES_URL")
}
model Attachment {
id BigInt @id
attachmentId BigInt
msgId BigInt
channelId BigInt
url String
message Json
guild Json
channel Json
vision Json
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
@@index([attachmentId])
@@index([channelId])
@@map("listings")
}
model Meme {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
url String
text String
tags Json
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
}