-
Notifications
You must be signed in to change notification settings - Fork 5
/
schema.prisma
37 lines (33 loc) · 910 Bytes
/
schema.prisma
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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"
previewFeatures = []
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model QueueJob {
id BigInt @id @default(autoincrement()) @db.BigInt
queue String
key String?
cron String?
payload Json?
result Json?
error Json?
progress Int @default(0)
priority Int @default(0)
attempts Int @default(0)
maxAttempts Int?
runAt DateTime @default(now())
notBefore DateTime?
finishedAt DateTime?
processedAt DateTime?
failedAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([key, runAt])
@@index([queue, priority, runAt, finishedAt])
@@map("queue_jobs")
}