Skip to content

Commit 7b37b0c

Browse files
committed
feat(database): add WorkloadType enum and column to WorkerInstanceGroup
1 parent 7349acb commit 7b37b0c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- CreateEnum
2+
CREATE TYPE "WorkloadType" AS ENUM ('CONTAINER', 'MICROVM');
3+
4+
-- AlterTable
5+
ALTER TABLE "WorkerInstanceGroup" ADD COLUMN "workloadType" "WorkloadType" NOT NULL DEFAULT 'CONTAINER';

internal-packages/database/prisma/schema.prisma

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,11 @@ enum WorkerInstanceGroupType {
12801280
UNMANAGED
12811281
}
12821282

1283+
enum WorkloadType {
1284+
CONTAINER
1285+
MICROVM
1286+
}
1287+
12831288
model WorkerInstanceGroup {
12841289
id String @id @default(cuid())
12851290
type WorkerInstanceGroupType
@@ -1314,6 +1319,8 @@ model WorkerInstanceGroup {
13141319
location String?
13151320
staticIPs String?
13161321
1322+
workloadType WorkloadType @default(CONTAINER)
1323+
13171324
createdAt DateTime @default(now())
13181325
updatedAt DateTime @updatedAt
13191326
}

0 commit comments

Comments
 (0)