merge with dev

This commit is contained in:
José Salazar
2026-02-26 11:17:01 -05:00
parent f389b6de5b
commit 3cf791ddbf
8 changed files with 81 additions and 62 deletions

View File

@@ -1,6 +1,8 @@
type CostCenter @table(name: "cost_centers") {
id: UUID! @default(expr: "uuidV4()")
name: String!
businessId: UUID!
createdAt: Timestamp @default(expr: "request.time")
updatedAt: Timestamp @default(expr: "request.time")
createdBy: String

View File

@@ -1,13 +0,0 @@
type Hub @table(name: "hubs") {
id: UUID! @default(expr: "uuidV4()")
name: String!
locationName: String
address: String
nfcTagId: String
ownerId: UUID!
costCenterId: UUID
costCenter: CostCenter @ref(fields: "costCenterId", references: "id")
createdAt: Timestamp @default(expr: "request.time")
updatedAt: Timestamp @default(expr: "request.time")
createdBy: String
}

View File

@@ -3,6 +3,9 @@ type TeamHub @table(name: "team_hubs") {
teamId: UUID!
team: Team! @ref(fields: "teamId", references: "id")
costCenterId: UUID
costCenter: CostCenter @ref(fields: "costCenterId", references: "id")
hubName: String!