-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathschema.prisma
More file actions
36 lines (32 loc) · 881 Bytes
/
schema.prisma
File metadata and controls
36 lines (32 loc) · 881 Bytes
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
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client"
output = "./client"
}
datasource db {
provider = "postgresql"
}
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, finishedAt, processedAt, priority, runAt])
@@map("queue_jobs")
}