Add plan execution mode, game ID, and version to health endpoint

- Add executionMode and gameId columns to StreamPlan schema
- Add migration for new columns
- Support executionMode/gameId in plan create and update endpoints
- Add version field to health check response from package.json
This commit is contained in:
2026-02-28 22:38:56 +01:00
parent e16eb85071
commit 02755bd1f0
6 changed files with 220 additions and 11 deletions

View File

@@ -54,14 +54,16 @@ model LinkedAccount {
}
model StreamPlan {
id String @id @default(uuid())
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
name String
status String @default("DRAFT")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
destinations StreamDestination[]
id String @id @default(uuid())
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
name String
status String @default("DRAFT")
executionMode String @default("IN_GAME")
gameId String @default("")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
destinations StreamDestination[]
@@index([userId])
}