adding also staff

This commit is contained in:
José Salazar
2026-02-11 15:55:53 -05:00
parent 88ea396c31
commit be368b08b9
3 changed files with 66 additions and 1 deletions

View File

@@ -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
}
)

View File

@@ -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
}
}

View File

@@ -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")