fix: Issue 523, 536 to delete duplicate queries and create cost center schema and queries
This commit is contained in:
7
backend/dataconnect/schema/costCenter.gql
Normal file
7
backend/dataconnect/schema/costCenter.gql
Normal file
@@ -0,0 +1,7 @@
|
||||
type CostCenter @table(name: "cost_centers") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
name: String!
|
||||
createdAt: Timestamp @default(expr: "request.time")
|
||||
updatedAt: Timestamp @default(expr: "request.time")
|
||||
createdBy: String
|
||||
}
|
||||
@@ -5,6 +5,8 @@ type Hub @table(name: "hubs") {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user