37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
// 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 = env("DATABASE_URL")
|
|
}
|
|
|
|
model Event {
|
|
id Int @id
|
|
titleFormatted String
|
|
locationFormatted String
|
|
descriptionDescriptionFormatted String
|
|
dateTime String
|
|
endDateTime String
|
|
isOfficial Boolean
|
|
videoUrl String
|
|
group Int
|
|
createdBy Int
|
|
EventState EventState[]
|
|
}
|
|
|
|
// pub time, url/id
|
|
// TODO: add publish dates, store links
|
|
model EventState {
|
|
id Int @id @default(autoincrement())
|
|
event Event @relation(fields: [eventId], references: [id])
|
|
publishYoutube Boolean
|
|
publishFacebook Boolean
|
|
publishInstagram Boolean
|
|
eventId Int
|
|
}
|