modification for the name of the table to staffs
This commit is contained in:
@@ -7,7 +7,7 @@ mutation CreateStaff(
|
|||||||
$rating: Float,
|
$rating: Float,
|
||||||
$reliabilityScore: Int,
|
$reliabilityScore: Int,
|
||||||
$backgroundCheckStatus: BackgroundCheckStatus!,
|
$backgroundCheckStatus: BackgroundCheckStatus!,
|
||||||
$certifications: JSON
|
$certifications: String
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
staff_insert(
|
staff_insert(
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
query listStaff @auth(level: USER) {
|
query listStaff @auth(level: USER) {
|
||||||
staff {
|
staffs {
|
||||||
id
|
id
|
||||||
employeeName
|
employeeName
|
||||||
vendorId
|
vendorId
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# firebase/dataconnect/schema/staff.gql
|
|
||||||
|
|
||||||
enum EmploymentType {
|
enum EmploymentType {
|
||||||
FULL_TIME
|
FULL_TIME
|
||||||
PART_TIME
|
PART_TIME
|
||||||
@@ -14,7 +12,7 @@ enum BackgroundCheckStatus {
|
|||||||
EXPIRED
|
EXPIRED
|
||||||
}
|
}
|
||||||
|
|
||||||
type Staff @table(name: "staff") {
|
type Staff @table(name: "staffs") {
|
||||||
id: UUID! @default(expr: "uuidV4()")
|
id: UUID! @default(expr: "uuidV4()")
|
||||||
employeeName: String!
|
employeeName: String!
|
||||||
vendorId: UUID
|
vendorId: UUID
|
||||||
@@ -24,7 +22,7 @@ type Staff @table(name: "staff") {
|
|||||||
rating: Float
|
rating: Float
|
||||||
reliabilityScore: Int
|
reliabilityScore: Int
|
||||||
backgroundCheckStatus: BackgroundCheckStatus!
|
backgroundCheckStatus: BackgroundCheckStatus!
|
||||||
certifications: JSON
|
certifications: String
|
||||||
createdDate: Timestamp @default(expr: "request.time")
|
createdDate: Timestamp @default(expr: "request.time")
|
||||||
updatedDate: Timestamp @default(expr: "request.time")
|
updatedDate: Timestamp @default(expr: "request.time")
|
||||||
createdBy: String @default(expr: "auth.uid")
|
createdBy: String @default(expr: "auth.uid")
|
||||||
|
|||||||
Reference in New Issue
Block a user