14 lines
387 B
GraphQL
14 lines
387 B
GraphQL
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
|
|
}
|