Skip to content

Commit 8ae8633

Browse files
committed
Round 8
1 parent 9c97020 commit 8ae8633

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?
@@ -335,10 +333,7 @@ model RuntimeEnvironment {
335333
336334
tunnelId String?
337335
338-
endpoints Endpoint[]
339-
JobQueue JobQueue[]
340336
ExternalAccount ExternalAccount[]
341-
concurrencyLimitGroups ConcurrencyLimitGroup[]
342337
backgroundWorkers BackgroundWorker[]
343338
backgroundWorkerTasks BackgroundWorkerTask[]
344339
taskRuns TaskRun[]
@@ -400,8 +395,6 @@ model Project {
400395
defaultWorkerGroupId String?
401396
402397
environments RuntimeEnvironment[]
403-
endpoints Endpoint[]
404-
jobs Job[]
405398
backgroundWorkers BackgroundWorker[]
406399
backgroundWorkerTasks BackgroundWorkerTask[]
407400
taskRuns TaskRun[]
@@ -429,92 +422,11 @@ enum ProjectVersion {
429422
V3
430423
}
431424

432-
model Endpoint {
433-
id String @id @default(cuid())
434-
slug String
435-
url String?
436-
437-
environment RuntimeEnvironment @relation(fields: [environmentId], references: [id], onDelete: Cascade, onUpdate: Cascade)
438-
environmentId String
439-
440-
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade, onUpdate: Cascade)
441-
organizationId String
442-
443-
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade, onUpdate: Cascade)
444-
projectId String
445-
446-
createdAt DateTime @default(now())
447-
updatedAt DateTime @updatedAt
448-
449-
indexingHookIdentifier String?
450-
version String @default("unknown")
451-
sdkVersion String @default("unknown")
452-
453-
runChunkExecutionLimit Int @default(60000)
454-
startTaskThreshold Int @default(750)
455-
beforeExecuteTaskThreshold Int @default(1500)
456-
beforeCompleteTaskThreshold Int @default(750)
457-
afterCompleteTaskThreshold Int @default(750)
458-
459-
@@unique([environmentId, slug])
460-
}
461-
462-
model Job {
463-
id String @id @default(cuid())
464-
slug String
465-
title String
466-
internal Boolean @default(false)
467-
468-
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade, onUpdate: Cascade)
469-
organizationId String
470-
471-
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade, onUpdate: Cascade)
472-
projectId String
473-
474-
createdAt DateTime @default(now())
475-
updatedAt DateTime @default(now()) @updatedAt
476-
477-
deletedAt DateTime?
478-
479-
@@unique([projectId, slug])
480-
}
481-
482425
enum JobVersionStatus {
483426
ACTIVE
484427
DISABLED
485428
}
486429

487-
model ConcurrencyLimitGroup {
488-
id String @id @default(cuid())
489-
name String
490-
491-
concurrencyLimit Int
492-
493-
environment RuntimeEnvironment @relation(fields: [environmentId], references: [id], onDelete: Cascade, onUpdate: Cascade)
494-
environmentId String
495-
496-
createdAt DateTime @default(now())
497-
updatedAt DateTime @updatedAt
498-
499-
@@unique([environmentId, name])
500-
}
501-
502-
model JobQueue {
503-
id String @id @default(cuid())
504-
name String
505-
506-
environment RuntimeEnvironment @relation(fields: [environmentId], references: [id], onDelete: Cascade, onUpdate: Cascade)
507-
environmentId String
508-
509-
createdAt DateTime @default(now())
510-
updatedAt DateTime @updatedAt
511-
512-
jobCount Int @default(0)
513-
maxJobs Int @default(100)
514-
515-
@@unique([environmentId, name])
516-
}
517-
518430
enum DynamicTriggerType {
519431
EVENT
520432
SCHEDULE

0 commit comments

Comments
 (0)