Skip to content

Commit 27799f5

Browse files
committed
Round 8
1 parent 19cb542 commit 27799f5

File tree

2 files changed

+20
-88
lines changed

2 files changed

+20
-88
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the `ConcurrencyLimitGroup` table. If the table is not empty, all the data it contains will be lost.
5+
- You are about to drop the `Endpoint` table. If the table is not empty, all the data it contains will be lost.
6+
- You are about to drop the `Job` table. If the table is not empty, all the data it contains will be lost.
7+
- You are about to drop the `JobQueue` table. If the table is not empty, all the data it contains will be lost.
8+
9+
*/
10+
-- DropTable
11+
DROP TABLE IF EXISTS "ConcurrencyLimitGroup" CASCADE;
12+
13+
-- DropTable
14+
DROP TABLE IF EXISTS "Endpoint" CASCADE;
15+
16+
-- DropTable
17+
DROP TABLE IF EXISTS "Job" CASCADE;
18+
19+
-- DropTable
20+
DROP TABLE IF EXISTS "JobQueue" CASCADE;

internal-packages/database/prisma/schema.prisma

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ model Organization {
142142
hasRequestedV3 Boolean @default(false)
143143
144144
environments RuntimeEnvironment[]
145-
endpoints Endpoint[]
146-
jobs Job[]
147145
148146
apiRateLimiterConfig Json?
149147
realtimeRateLimiterConfig Json?
@@ -351,10 +349,7 @@ model RuntimeEnvironment {
351349
352350
tunnelId String?
353351
354-
endpoints Endpoint[]
355-
JobQueue JobQueue[]
356352
ExternalAccount ExternalAccount[]
357-
concurrencyLimitGroups ConcurrencyLimitGroup[]
358353
backgroundWorkers BackgroundWorker[]
359354
backgroundWorkerTasks BackgroundWorkerTask[]
360355
taskRuns TaskRun[]
@@ -418,8 +413,6 @@ model Project {
418413
defaultWorkerGroupId String?
419414
420415
environments RuntimeEnvironment[]
421-
endpoints Endpoint[]
422-
jobs Job[]
423416
backgroundWorkers BackgroundWorker[]
424417
backgroundWorkerTasks BackgroundWorkerTask[]
425418
taskRuns TaskRun[]
@@ -447,92 +440,11 @@ enum ProjectVersion {
447440
V3
448441
}
449442

450-
model Endpoint {
451-
id String @id @default(cuid())
452-
slug String
453-
url String?
454-
455-
environment RuntimeEnvironment @relation(fields: [environmentId], references: [id], onDelete: Cascade, onUpdate: Cascade)
456-
environmentId String
457-
458-
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade, onUpdate: Cascade)
459-
organizationId String
460-
461-
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade, onUpdate: Cascade)
462-
projectId String
463-
464-
createdAt DateTime @default(now())
465-
updatedAt DateTime @updatedAt
466-
467-
indexingHookIdentifier String?
468-
version String @default("unknown")
469-
sdkVersion String @default("unknown")
470-
471-
runChunkExecutionLimit Int @default(60000)
472-
startTaskThreshold Int @default(750)
473-
beforeExecuteTaskThreshold Int @default(1500)
474-
beforeCompleteTaskThreshold Int @default(750)
475-
afterCompleteTaskThreshold Int @default(750)
476-
477-
@@unique([environmentId, slug])
478-
}
479-
480-
model Job {
481-
id String @id @default(cuid())
482-
slug String
483-
title String
484-
internal Boolean @default(false)
485-
486-
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade, onUpdate: Cascade)
487-
organizationId String
488-
489-
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade, onUpdate: Cascade)
490-
projectId String
491-
492-
createdAt DateTime @default(now())
493-
updatedAt DateTime @default(now()) @updatedAt
494-
495-
deletedAt DateTime?
496-
497-
@@unique([projectId, slug])
498-
}
499-
500443
enum JobVersionStatus {
501444
ACTIVE
502445
DISABLED
503446
}
504447

505-
model ConcurrencyLimitGroup {
506-
id String @id @default(cuid())
507-
name String
508-
509-
concurrencyLimit Int
510-
511-
environment RuntimeEnvironment @relation(fields: [environmentId], references: [id], onDelete: Cascade, onUpdate: Cascade)
512-
environmentId String
513-
514-
createdAt DateTime @default(now())
515-
updatedAt DateTime @updatedAt
516-
517-
@@unique([environmentId, name])
518-
}
519-
520-
model JobQueue {
521-
id String @id @default(cuid())
522-
name String
523-
524-
environment RuntimeEnvironment @relation(fields: [environmentId], references: [id], onDelete: Cascade, onUpdate: Cascade)
525-
environmentId String
526-
527-
createdAt DateTime @default(now())
528-
updatedAt DateTime @updatedAt
529-
530-
jobCount Int @default(0)
531-
maxJobs Int @default(100)
532-
533-
@@unique([environmentId, name])
534-
}
535-
536448
enum DynamicTriggerType {
537449
EVENT
538450
SCHEDULE

0 commit comments

Comments
 (0)