diff --git a/backend/dataconnect/connector/staff/mutations.gql b/backend/dataconnect/connector/staff/mutations.gql index 17e2e25e..f76caeae 100644 --- a/backend/dataconnect/connector/staff/mutations.gql +++ b/backend/dataconnect/connector/staff/mutations.gql @@ -40,6 +40,13 @@ mutation CreateStaff( $englishRequired: Boolean $city: String $addres: String + $placeId: String + $latitude: Float + $longitude: Float + $state: String + $street: String + $country: String + $zipCode: String ) @auth(level: USER) { staff_insert( data: { @@ -82,6 +89,13 @@ mutation CreateStaff( englishRequired: $englishRequired city: $city addres: $addres + placeId: $placeId + latitude: $latitude + longitude: $longitude + state: $state + street: $street + country: $country + zipCode: $zipCode } ) @@ -131,6 +145,13 @@ mutation UpdateStaff( $englishRequired: Boolean $city: String $addres: String + $placeId: String + $latitude: Float + $longitude: Float + $state: String + $street: String + $country: String + $zipCode: String ) @auth(level: USER) { staff_update( id: $id @@ -174,6 +195,13 @@ mutation UpdateStaff( englishRequired: $englishRequired city: $city addres: $addres + placeId: $placeId + latitude: $latitude + longitude: $longitude + state: $state + street: $street + country: $country + zipCode: $zipCode } ) diff --git a/backend/dataconnect/connector/staff/queries.gql b/backend/dataconnect/connector/staff/queries.gql index 5b9dc6f5..a3d38d86 100644 --- a/backend/dataconnect/connector/staff/queries.gql +++ b/backend/dataconnect/connector/staff/queries.gql @@ -40,6 +40,13 @@ query listStaff @auth(level: USER) { englishRequired city addres + placeId + latitude + longitude + state + street + country + zipCode } } @@ -87,6 +94,13 @@ query getStaffById($id: UUID!) @auth(level: USER) { englishRequired city addres + placeId + latitude + longitude + state + street + country + zipCode } } @@ -133,6 +147,13 @@ query getStaffByUserId($userId: String!) @auth(level: USER) { englishRequired city addres + placeId + latitude + longitude + state + street + country + zipCode } } @@ -170,5 +191,12 @@ query filterStaff( englishRequired city addres + placeId + latitude + longitude + state + street + country + zipCode } } diff --git a/backend/dataconnect/schema/staff.gql b/backend/dataconnect/schema/staff.gql index c098bd21..9c1efab9 100644 --- a/backend/dataconnect/schema/staff.gql +++ b/backend/dataconnect/schema/staff.gql @@ -84,8 +84,17 @@ type Staff @table(name: "staffs") { employmentType: EmploymentType initial: String englishRequired: Boolean @default(expr: "false") - city: String + addres: String + placeId: String + latitude: Float + longitude: Float + + city: String + state: String + street: String + country: String + zipCode: String createdAt: Timestamp @default(expr: "request.time") updatedAt: Timestamp @default(expr: "request.time")