adding hubid to order

This commit is contained in:
José Salazar
2026-01-29 15:17:34 -05:00
parent 0afb89e86a
commit aa450c7cbe
3 changed files with 67 additions and 24 deletions

View File

@@ -33,7 +33,7 @@ type Order @table(name: "orders") {
business: Business! @ref(fields: "businessId", references: "id")
orderType: OrderType!
location: String
#location: String
status: OrderStatus! @default(expr: "'DRAFT'")
duration: OrderDuration
lunchBreak: Int
@@ -44,7 +44,8 @@ type Order @table(name: "orders") {
shifts: Any @col(dataType: "jsonb")
requested: Int
hub: String
teamHubId: UUID!
teamHub: TeamHub! @ref(fields: "teamHubId", references: "id")
date: Timestamp