koibot/prisma/schema.prisma

28 lines
562 B
Plaintext
Raw Permalink Normal View History

2023-06-29 01:11:08 +09:00
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = "file:data.db"
}
model Session {
id String @id @default(uuid())
createdAt DateTime @default(now())
channel String
files File[]
}
model File {
id String @id @default(uuid())
filename String
timestamp BigInt
session Session @relation(fields: [sessionId], references: [id], onDelete: Cascade)
sessionId String
}