first version of recurring order

This commit is contained in:
José Salazar
2026-02-17 16:24:59 -05:00
parent 7c85eb44e5
commit 85c8a09d9e
22 changed files with 2068 additions and 38 deletions

View File

@@ -15,7 +15,7 @@ mutation createOrder(
$shifts: Any
$requested: Int
$teamHubId: UUID!
$recurringDays: Any
$recurringDays: [String!]
$permanentStartDate: Timestamp
$permanentDays: Any
$notes: String
@@ -64,7 +64,7 @@ mutation updateOrder(
$shifts: Any
$requested: Int
$teamHubId: UUID!
$recurringDays: Any
$recurringDays: [String!]
$permanentDays: Any
$notes: String
$detectedConflicts: Any

View File

@@ -1,5 +1,5 @@
specVersion: "v1"
serviceId: "krow-workforce-db-validation"
serviceId: "krow-workforce-db"
location: "us-central1"
schema:
source: "./schema"
@@ -7,7 +7,7 @@ schema:
postgresql:
database: "krow_db"
cloudSql:
instanceId: "krow-sql-validation"
instanceId: "krow-sql"
# schemaValidation: "STRICT" # STRICT mode makes Postgres schema match Data Connect exactly.
# schemaValidation: "COMPATIBLE" # COMPATIBLE mode makes Postgres schema compatible with Data Connect.
connectorDirs: ["./connector"]

View File

@@ -52,7 +52,7 @@ type Order @table(name: "orders", key: ["id"]) {
startDate: Timestamp #for recurring and permanent
endDate: Timestamp #for recurring and permanent
recurringDays: Any @col(dataType: "jsonb")
recurringDays: [String!]
poReference: String
permanentDays: Any @col(dataType: "jsonb")