chore(legacy): relocate v1 dataconnect source

This commit is contained in:
zouantchaw
2026-03-18 15:04:18 +01:00
parent c9e917bed5
commit 1d850811c4
164 changed files with 55 additions and 26 deletions

View File

@@ -0,0 +1,46 @@
enum AssignmentStatus {
PENDING
CONFIRMED
OPEN
COMPLETED
CANCELED
ACTIVE
}
type Assignment @table(name: "assignments") {
id: UUID! @default(expr: "uuidV4()")
# Who is doing the assignment
workforceId: UUID!
workforce: Workforce! @ref(fields: "workforceId", references: "id")
# What exact shift + role this assignment is for
roleId: UUID!
shiftId: UUID!
shiftRole: ShiftRole! @ref(
fields: ["shiftId", "roleId"],
references: ["shiftId", "roleId"]
)
# --- task info ---
title: String
description: String
instructions: String
status: AssignmentStatus @default(expr: "'PENDING'")
# flags / perks
tipsAvailable: Boolean
travelTime: Boolean
mealProvided: Boolean
parkingAvailable: Boolean
gasCompensation: Boolean
# Optional managers list (still ok as json)
managers: [Any!]
createdAt: Timestamp @default(expr: "request.time")
updatedAt: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid")
}