From be368b08b9409bff82a5f134b2b38c3e23879ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:55:53 -0500 Subject: [PATCH] adding also staff --- .../dataconnect/connector/staff/mutations.gql | 28 +++++++++++++++++++ .../dataconnect/connector/staff/queries.gql | 28 +++++++++++++++++++ backend/dataconnect/schema/staff.gql | 11 +++++++- 3 files changed, 66 insertions(+), 1 deletion(-) 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")