diff --git a/backend/dataconnect/functions/clean.gql b/backend/dataconnect/functions/clean.gql index df8e84d5..c5ba6739 100644 --- a/backend/dataconnect/functions/clean.gql +++ b/backend/dataconnect/functions/clean.gql @@ -16,15 +16,18 @@ mutation unseedAll @auth(level: USER) { invoiceTemplate_deleteMany(all: true) customRateCard_deleteMany(all: true) vendorRate_deleteMany(all: true) - vendorBenefitPlan_deleteMany(all: true) + benefitsData_deleteMany(all: true) + workforce_deleteMany(all: true) staffCourse_deleteMany(all: true) staffDocument_deleteMany(all: true) + staffAttire_deleteMany(all: true) staffRole_deleteMany(all: true) staffAvailability_deleteMany(all: true) staffAvailabilityStats_deleteMany(all: true) emergencyContact_deleteMany(all: true) taxForm_deleteMany(all: true) certificate_deleteMany(all: true) + vendorBenefitPlan_deleteMany(all: true) # ---------------------------------- # Tasks / Shifts / Orders @@ -33,6 +36,7 @@ mutation unseedAll @auth(level: USER) { shiftRole_deleteMany(all: true) shift_deleteMany(all: true) order_deleteMany(all: true) + costCenter_deleteMany(all: true) # ---------------------------------- # Teams / Hubs / Org @@ -52,7 +56,6 @@ mutation unseedAll @auth(level: USER) { level_deleteMany(all: true) course_deleteMany(all: true) faqData_deleteMany(all: true) - benefitsData_deleteMany(all: true) attireOption_deleteMany(all: true) document_deleteMany(all: true) diff --git a/backend/dataconnect/functions/seed.gql b/backend/dataconnect/functions/seed.gql index 3a5f65ea..a87c3366 100644 --- a/backend/dataconnect/functions/seed.gql +++ b/backend/dataconnect/functions/seed.gql @@ -493,6 +493,208 @@ mutation seedAll @transaction { } ) + # Workforce assignments + workforce_1: workforce_insert( + data: { + id: "7f1d6cf2-4a26-4a3e-9d1b-1d68ca2a1001" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + workforceNumber: "WF-1001" + employmentType: W2 + status: ACTIVE + createdBy: "seed-script" + } + ) + workforce_2: workforce_insert( + data: { + id: "7f1d6cf2-4a26-4a3e-9d1b-1d68ca2a1002" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + staffId: "9631581a-1601-4e06-8e5e-600e9f305bcf" + workforceNumber: "WF-1002" + employmentType: W1099 + status: ACTIVE + createdBy: "seed-script" + } + ) + workforce_3: workforce_insert( + data: { + id: "7f1d6cf2-4a26-4a3e-9d1b-1d68ca2a1003" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + staffId: "2b678a6d-b8cd-4d5e-95ae-f35e4569f92c" + workforceNumber: "WF-1003" + employmentType: W2 + status: ACTIVE + createdBy: "seed-script" + } + ) + workforce_4: workforce_insert( + data: { + id: "7f1d6cf2-4a26-4a3e-9d1b-1d68ca2a1004" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + staffId: "d62605f9-366d-42c5-8f3b-f276c0d27ea3" + workforceNumber: "WF-1004" + employmentType: W2 + status: ACTIVE + createdBy: "seed-script" + } + ) + workforce_5: workforce_insert( + data: { + id: "7f1d6cf2-4a26-4a3e-9d1b-1d68ca2a1005" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + staffId: "c6428f90-9c29-4e5c-b362-dc67a9a8cbba" + workforceNumber: "WF-1005" + employmentType: W1099 + status: ACTIVE + createdBy: "seed-script" + } + ) + workforce_6: workforce_insert( + data: { + id: "7f1d6cf2-4a26-4a3e-9d1b-1d68ca2a1006" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + staffId: "56d7178c-f4ab-4c50-9b1f-d6efe25ba50b" + workforceNumber: "WF-1006" + employmentType: CONTRACT + status: ACTIVE + createdBy: "seed-script" + } + ) + workforce_7: workforce_insert( + data: { + id: "7f1d6cf2-4a26-4a3e-9d1b-1d68ca2a1007" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + workforceNumber: "WF-1007" + employmentType: W2 + status: ACTIVE + createdBy: "seed-script" + } + ) + + # Benefit plans + benefit_plan_1: vendorBenefitPlan_insert( + data: { + id: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01001" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + title: "Paid Time Off" + description: "Annual paid time off allowance." + requestLabel: "Request PTO" + total: 80 + isActive: true + } + ) + benefit_plan_2: vendorBenefitPlan_insert( + data: { + id: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01002" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + title: "Sick Leave" + description: "Paid sick leave balance." + requestLabel: "Request Sick Leave" + total: 40 + isActive: true + } + ) + benefit_plan_3: vendorBenefitPlan_insert( + data: { + id: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01003" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + title: "Training Hours" + description: "Vendor-sponsored training time." + requestLabel: "Request Training Hours" + total: 24 + isActive: true + } + ) + + # Benefits balances (remaining hours) + benefits_data_1: benefitsData_insert( + data: { + id: "aa8bf762-141e-4c69-ae15-7c5416fd1101" + vendorBenefitPlanId: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01001" + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + current: 52 + } + ) + benefits_data_2: benefitsData_insert( + data: { + id: "aa8bf762-141e-4c69-ae15-7c5416fd1102" + vendorBenefitPlanId: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01002" + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + current: 30 + } + ) + benefits_data_3: benefitsData_insert( + data: { + id: "aa8bf762-141e-4c69-ae15-7c5416fd1103" + vendorBenefitPlanId: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01003" + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + current: 16 + } + ) + benefits_data_4: benefitsData_insert( + data: { + id: "aa8bf762-141e-4c69-ae15-7c5416fd1104" + vendorBenefitPlanId: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01001" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + current: 64 + } + ) + benefits_data_5: benefitsData_insert( + data: { + id: "aa8bf762-141e-4c69-ae15-7c5416fd1105" + vendorBenefitPlanId: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01002" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + current: 36 + } + ) + benefits_data_6: benefitsData_insert( + data: { + id: "aa8bf762-141e-4c69-ae15-7c5416fd1106" + vendorBenefitPlanId: "2d8f7d4b-1f90-4d8b-8b9d-9200d8f01003" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + current: 20 + } + ) + + # Bank accounts (client + staff) + account_1: account_insert( + data: { + id: "ed6fd954-3f25-4ab7-b44f-2f03f1ca5101" + bank: "Bank of America" + type: CHECKING + last4: "4455" + isPrimary: true + accountNumber: "883104455" + routeNumber: "121000358" + ownerId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + } + ) + account_2: account_insert( + data: { + id: "ed6fd954-3f25-4ab7-b44f-2f03f1ca5102" + bank: "Chase" + type: CHECKING + last4: "3301" + isPrimary: true + accountNumber: "009813301" + routeNumber: "322271627" + ownerId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + } + ) + account_3: account_insert( + data: { + id: "ed6fd954-3f25-4ab7-b44f-2f03f1ca5103" + bank: "Wells Fargo" + type: SAVINGS + last4: "7812" + isPrimary: true + accountNumber: "114927812" + routeNumber: "121042882" + ownerId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + } + ) + # Documents document_1: document_insert( data: { @@ -575,6 +777,41 @@ mutation seedAll @transaction { verificationId: "verif_staff3_id_001" } ) + staff_document_5: staffDocument_insert( + data: { + id: "bf01f474-2f2d-40f5-8ca7-0b6a1e52dd8a" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + staffName: "Test Staff" + documentId: "9fd8b1bb-63b4-4480-a53e-c65ae5f03ea8" + status: VERIFIED + documentUrl: "https://storage.googleapis.com/krow-workforce-dev/docs/staff-7/w4.pdf" + verificationId: "verif_staff7_w4_001" + verifiedAt: "2026-02-20T17:15:00Z" + } + ) + staff_document_6: staffDocument_insert( + data: { + id: "bf01f474-2f2d-40f5-8ca7-0b6a1e52dd8b" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + staffName: "Test Staff" + documentId: "f3389b80-9407-45ca-bdbe-6aeb873f2f5d" + status: VERIFIED + documentUrl: "https://storage.googleapis.com/krow-workforce-dev/docs/staff-7/direct-deposit.pdf" + verificationId: "verif_staff7_dd_001" + verifiedAt: "2026-02-20T18:00:00Z" + } + ) + staff_document_7: staffDocument_insert( + data: { + id: "bf01f474-2f2d-40f5-8ca7-0b6a1e52dd8c" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + staffName: "Test Staff" + documentId: "2eb0f5e0-b5f7-4ec2-8994-ae5b12ec8f57" + status: PENDING + documentUrl: "https://storage.googleapis.com/krow-workforce-dev/docs/staff-7/id-copy.png" + verificationId: "verif_staff7_id_001" + } + ) # Certificates certificate_1: certificate_insert( @@ -618,6 +855,34 @@ mutation seedAll @transaction { certificateNumber: "RBS-STAFF2-1103" } ) + certificate_4: certificate_insert( + data: { + id: "67b9ec44-6f9b-4f3a-9c8d-23f370883a90" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + certificationType: BACKGROUND_CHECK + name: "Background Check Clearance" + status: CURRENT + issuer: "Checkr" + fileUrl: "https://storage.googleapis.com/krow-workforce-dev/certs/staff-7/background.pdf" + validationStatus: APPROVED + certificateNumber: "BG-STAFF7-2026" + expiry: "2027-02-20T00:00:00Z" + } + ) + certificate_5: certificate_insert( + data: { + id: "67b9ec44-6f9b-4f3a-9c8d-23f370883a91" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + certificationType: FOOD_HANDLER + name: "Food Handler Card" + status: CURRENT + issuer: "ServSafe" + fileUrl: "https://storage.googleapis.com/krow-workforce-dev/certs/staff-7/food-handler.pdf" + validationStatus: AI_VERIFIED + certificateNumber: "FH-STAFF7-2204" + expiry: "2026-12-30T00:00:00Z" + } + ) # Orders (20 total) order_01: order_insert( @@ -900,6 +1165,90 @@ mutation seedAll @transaction { total: 224 } ) + order_21: order_insert( + data: { + id: "f201e540-70cd-4e49-b3b1-4c85df9a2101" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderType: ONE_TIME + status: PARTIAL_STAFFED + eventName: "Client Demo Breakfast Support" + teamHubId: "22a0b119-e6dc-4011-9043-d857cd4c12f3" + date: "2026-03-04T05:00:00Z" + requested: 2 + total: 320 + } + ) + order_22: order_insert( + data: { + id: "f201e540-70cd-4e49-b3b1-4c85df9a2102" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderType: ONE_TIME + status: PARTIAL_STAFFED + eventName: "Conference Lounge Coverage" + teamHubId: "9c8eb9c6-c186-4d55-877e-35be852c3e86" + date: "2026-03-05T05:00:00Z" + requested: 3 + total: 624 + } + ) + order_23: order_insert( + data: { + id: "f201e540-70cd-4e49-b3b1-4c85df9a2103" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderType: ONE_TIME + status: FULLY_STAFFED + eventName: "Executive Lunch Prep" + teamHubId: "75c70d83-1680-4b28-ab61-2fe64a74fc5f" + date: "2026-03-06T05:00:00Z" + requested: 2 + total: 288 + } + ) + order_24: order_insert( + data: { + id: "f201e540-70cd-4e49-b3b1-4c85df9a2104" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderType: ONE_TIME + status: COMPLETED + eventName: "Late Shift Cleanup" + teamHubId: "22a0b119-e6dc-4011-9043-d857cd4c12f3" + date: "2026-03-03T05:00:00Z" + requested: 1 + total: 208 + } + ) + order_25: order_insert( + data: { + id: "f201e540-70cd-4e49-b3b1-4c85df9a2105" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderType: ONE_TIME + status: POSTED + eventName: "Sunday Brunch Standby" + teamHubId: "9c8eb9c6-c186-4d55-877e-35be852c3e86" + date: "2026-03-08T05:00:00Z" + requested: 1 + total: 120 + } + ) + order_26: order_insert( + data: { + id: "f201e540-70cd-4e49-b3b1-4c85df9a2106" + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderType: ONE_TIME + status: FULLY_STAFFED + eventName: "Security Night Rotation" + teamHubId: "75c70d83-1680-4b28-ab61-2fe64a74fc5f" + date: "2026-03-10T05:00:00Z" + requested: 1 + total: 280 + } + ) # Shifts (1 per order) shift_01: shift_insert( @@ -1362,6 +1711,148 @@ mutation seedAll @transaction { filled: 0 } ) + shift_21: shift_insert( + data: { + id: "ea729213-1652-4e4b-95cb-a7d5c1a1e301" + title: "Client Demo Breakfast Support Shift" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2101" + date: "2026-03-04T05:00:00Z" + startTime: "2026-03-04T14:00:00Z" + endTime: "2026-03-04T22:00:00Z" + hours: 8 + cost: 320 + locationAddress: "5000 San Jose Street, Granada Hills, CA, USA" + city: "Los Angeles" + state: "CA" + street: "San Jose Street" + country: "US" + placeId: "Eiw1MDAwIFNhbiBKb3NlIFN0cmVldCwgR3JhbmFkYSBIaWxscywgQ0EsIFVTQSIuKiwKFAoSCYNJZBTdmsKAEddGOfBj8LvTEhQKEglnNXI0zZrCgBEjR6om62lcVw" + latitude: 34.2611486 + longitude: -118.5010287 + status: IN_PROGRESS + workersNeeded: 2 + filled: 1 + filledAt: "2026-03-03T20:00:00Z" + } + ) + shift_22: shift_insert( + data: { + id: "ea729213-1652-4e4b-95cb-a7d5c1a1e302" + title: "Conference Lounge Coverage Shift" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2102" + date: "2026-03-05T05:00:00Z" + startTime: "2026-03-05T15:00:00Z" + endTime: "2026-03-05T23:00:00Z" + hours: 8 + cost: 624 + locationAddress: "4000 San Jose Street, Granada Hills, CA, USA" + city: "Los Angeles" + state: "CA" + street: "San Jose Street" + country: "US" + placeId: "Eiw0MDAwIFNhbiBKb3NlIFN0cmVldCwgR3JhbmFkYSBIaWxscywgQ0EsIFVTQSIuKiwKFAoSCYNJZBTdmsKAEddGOfBj8LvTEhQKEglnNXI0zZrCgBEjR6om62lcVw" + latitude: 34.2611486 + longitude: -118.5010287 + status: OPEN + workersNeeded: 3 + filled: 2 + } + ) + shift_23: shift_insert( + data: { + id: "ea729213-1652-4e4b-95cb-a7d5c1a1e303" + title: "Executive Lunch Prep Shift" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2103" + date: "2026-03-06T05:00:00Z" + startTime: "2026-03-06T16:00:00Z" + endTime: "2026-03-06T22:00:00Z" + hours: 6 + cost: 288 + locationAddress: "6800 San Jose Street, Granada Hills, CA, USA" + city: "Los Angeles" + state: "CA" + street: "San Jose Street" + country: "US" + placeId: "Eiw2ODAwIFNhbiBKb3NlIFN0cmVldCwgR3JhbmFkYSBIaWxscywgQ0EsIFVTQSIuKiwKFAoSCYNJZBTdmsKAEddGOfBj8LvTEhQKEglnNXI0zZrCgBEjR6om62lcVw" + latitude: 34.2611486 + longitude: -118.5010287 + status: FILLED + workersNeeded: 2 + filled: 2 + filledAt: "2026-03-04T18:10:00Z" + } + ) + shift_24: shift_insert( + data: { + id: "ea729213-1652-4e4b-95cb-a7d5c1a1e304" + title: "Late Shift Cleanup Shift" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2104" + date: "2026-03-03T05:00:00Z" + startTime: "2026-03-03T14:00:00Z" + endTime: "2026-03-03T22:00:00Z" + hours: 8 + cost: 208 + locationAddress: "5000 San Jose Street, Granada Hills, CA, USA" + city: "Los Angeles" + state: "CA" + street: "San Jose Street" + country: "US" + placeId: "Eiw1MDAwIFNhbiBKb3NlIFN0cmVldCwgR3JhbmFkYSBIaWxscywgQ0EsIFVTQSIuKiwKFAoSCYNJZBTdmsKAEddGOfBj8LvTEhQKEglnNXI0zZrCgBEjR6om62lcVw" + latitude: 34.2611486 + longitude: -118.5010287 + status: COMPLETED + workersNeeded: 1 + filled: 1 + filledAt: "2026-03-02T22:30:00Z" + } + ) + shift_25: shift_insert( + data: { + id: "ea729213-1652-4e4b-95cb-a7d5c1a1e305" + title: "Sunday Brunch Standby Shift" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2105" + date: "2026-03-08T05:00:00Z" + startTime: "2026-03-08T15:00:00Z" + endTime: "2026-03-08T20:00:00Z" + hours: 5 + cost: 120 + locationAddress: "4000 San Jose Street, Granada Hills, CA, USA" + city: "Los Angeles" + state: "CA" + street: "San Jose Street" + country: "US" + placeId: "Eiw0MDAwIFNhbiBKb3NlIFN0cmVldCwgR3JhbmFkYSBIaWxscywgQ0EsIFVTQSIuKiwKFAoSCYNJZBTdmsKAEddGOfBj8LvTEhQKEglnNXI0zZrCgBEjR6om62lcVw" + latitude: 34.2611486 + longitude: -118.5010287 + status: OPEN + workersNeeded: 1 + filled: 0 + } + ) + shift_26: shift_insert( + data: { + id: "ea729213-1652-4e4b-95cb-a7d5c1a1e306" + title: "Security Night Rotation Shift" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2106" + date: "2026-03-10T05:00:00Z" + startTime: "2026-03-10T14:00:00Z" + endTime: "2026-03-11T00:00:00Z" + hours: 10 + cost: 280 + locationAddress: "6800 San Jose Street, Granada Hills, CA, USA" + city: "Los Angeles" + state: "CA" + street: "San Jose Street" + country: "US" + placeId: "Eiw2ODAwIFNhbiBKb3NlIFN0cmVldCwgR3JhbmFkYSBIaWxscywgQ0EsIFVTQSIuKiwKFAoSCYNJZBTdmsKAEddGOfBj8LvTEhQKEglnNXI0zZrCgBEjR6om62lcVw" + latitude: 34.2611486 + longitude: -118.5010287 + status: FILLED + workersNeeded: 1 + filled: 1 + filledAt: "2026-03-09T19:00:00Z" + } + ) # Shift Roles (1 per shift) shift_role_01: shiftRole_insert( @@ -1644,6 +2135,90 @@ mutation seedAll @transaction { totalValue: 224 } ) + shift_role_21: shiftRole_insert( + data: { + id: "360616bf-8083-4dff-8d22-82380304d901" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e301" + roleId: "73fdb09b-ecbd-402e-8eb4-e7d79237d017" + count: 2 + assigned: 1 + startTime: "2026-03-04T14:00:00Z" + endTime: "2026-03-04T22:00:00Z" + hours: 8 + breakType: MIN_30 + totalValue: 320 + } + ) + shift_role_22: shiftRole_insert( + data: { + id: "360616bf-8083-4dff-8d22-82380304d902" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e302" + roleId: "7de956ce-743b-4271-b826-73313a5f07f5" + count: 3 + assigned: 2 + startTime: "2026-03-05T15:00:00Z" + endTime: "2026-03-05T23:00:00Z" + hours: 8 + breakType: MIN_30 + totalValue: 624 + } + ) + shift_role_23: shiftRole_insert( + data: { + id: "360616bf-8083-4dff-8d22-82380304d903" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e303" + roleId: "e51f3553-f2ee-400b-91e6-92b534239697" + count: 2 + assigned: 2 + startTime: "2026-03-06T16:00:00Z" + endTime: "2026-03-06T22:00:00Z" + hours: 6 + breakType: MIN_15 + totalValue: 288 + } + ) + shift_role_24: shiftRole_insert( + data: { + id: "360616bf-8083-4dff-8d22-82380304d904" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e304" + roleId: "7de956ce-743b-4271-b826-73313a5f07f5" + count: 1 + assigned: 1 + startTime: "2026-03-03T14:00:00Z" + endTime: "2026-03-03T22:00:00Z" + hours: 8 + breakType: MIN_30 + totalValue: 208 + } + ) + shift_role_25: shiftRole_insert( + data: { + id: "360616bf-8083-4dff-8d22-82380304d905" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e305" + roleId: "e51f3553-f2ee-400b-91e6-92b534239697" + count: 1 + assigned: 0 + startTime: "2026-03-08T15:00:00Z" + endTime: "2026-03-08T20:00:00Z" + hours: 5 + breakType: MIN_15 + totalValue: 120 + } + ) + shift_role_26: shiftRole_insert( + data: { + id: "360616bf-8083-4dff-8d22-82380304d906" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e306" + roleId: "67ab1dcb-5b54-4dd9-aeb5-9cc58bdda0ed" + count: 1 + assigned: 1 + startTime: "2026-03-10T14:00:00Z" + endTime: "2026-03-11T00:00:00Z" + hours: 10 + breakType: MIN_30 + totalValue: 280 + } + ) # Applications application_01: application_insert( @@ -1836,6 +2411,80 @@ mutation seedAll @transaction { origin: STAFF } ) + application_20: application_insert( + data: { + id: "b8c4b723-346d-4bcd-9667-35944ba5dbbe" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e301" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + roleId: "73fdb09b-ecbd-402e-8eb4-e7d79237d017" + status: CHECKED_IN + checkInTime: "2026-03-04T14:02:00Z" + origin: STAFF + } + ) + application_21: application_insert( + data: { + id: "b8c4b723-346d-4bcd-9667-35944ba5dbbf" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e304" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + roleId: "7de956ce-743b-4271-b826-73313a5f07f5" + status: COMPLETED + checkInTime: "2026-03-03T14:05:00Z" + checkOutTime: "2026-03-03T22:01:00Z" + origin: STAFF + } + ) + application_22: application_insert( + data: { + id: "b8c4b723-346d-4bcd-9667-35944ba5dbc0" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e303" + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + roleId: "e51f3553-f2ee-400b-91e6-92b534239697" + status: CONFIRMED + origin: STAFF + } + ) + application_23: application_insert( + data: { + id: "b8c4b723-346d-4bcd-9667-35944ba5dbc1" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e302" + staffId: "9631581a-1601-4e06-8e5e-600e9f305bcf" + roleId: "7de956ce-743b-4271-b826-73313a5f07f5" + status: LATE + checkInTime: "2026-03-05T15:25:00Z" + origin: STAFF + } + ) + application_24: application_insert( + data: { + id: "b8c4b723-346d-4bcd-9667-35944ba5dbc2" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e302" + staffId: "2b678a6d-b8cd-4d5e-95ae-f35e4569f92c" + roleId: "7de956ce-743b-4271-b826-73313a5f07f5" + status: NO_SHOW + origin: STAFF + } + ) + application_25: application_insert( + data: { + id: "b8c4b723-346d-4bcd-9667-35944ba5dbc3" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e306" + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + roleId: "67ab1dcb-5b54-4dd9-aeb5-9cc58bdda0ed" + status: CONFIRMED + origin: STAFF + } + ) + application_26: application_insert( + data: { + id: "b8c4b723-346d-4bcd-9667-35944ba5dbc4" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e303" + staffId: "56d7178c-f4ab-4c50-9b1f-d6efe25ba50b" + roleId: "e51f3553-f2ee-400b-91e6-92b534239697" + status: CONFIRMED + origin: STAFF + } + ) # Invoices (for completed orders) invoice_01: invoice_insert( @@ -2030,6 +2679,91 @@ mutation seedAll @transaction { chargesCount: 1 } ) + invoice_13: invoice_insert( + data: { + id: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f1" + status: PENDING + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2101" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e301" + paymentTerms: NET_30 + invoiceNumber: "INV-2026-0013" + issueDate: "2026-03-04T05:00:00Z" + dueDate: "2026-04-03T05:00:00Z" + amount: 320 + staffCount: 2 + chargesCount: 1 + } + ) + invoice_14: invoice_insert( + data: { + id: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f2" + status: OVERDUE + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2102" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e302" + paymentTerms: NET_30 + invoiceNumber: "INV-2026-0014" + issueDate: "2026-02-20T05:00:00Z" + dueDate: "2026-03-01T05:00:00Z" + amount: 624 + staffCount: 3 + chargesCount: 1 + } + ) + invoice_15: invoice_insert( + data: { + id: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f3" + status: APPROVED + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2103" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e303" + paymentTerms: NET_30 + invoiceNumber: "INV-2026-0015" + issueDate: "2026-03-06T05:00:00Z" + dueDate: "2026-04-05T05:00:00Z" + amount: 288 + staffCount: 2 + chargesCount: 1 + } + ) + invoice_16: invoice_insert( + data: { + id: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f4" + status: PAID + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2104" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e304" + paymentTerms: NET_30 + invoiceNumber: "INV-2026-0016" + issueDate: "2026-03-03T05:00:00Z" + dueDate: "2026-04-02T05:00:00Z" + amount: 208 + staffCount: 1 + chargesCount: 1 + } + ) + invoice_17: invoice_insert( + data: { + id: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f5" + status: PENDING_REVIEW + vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" + businessId: "ef69e942-d6e5-48e5-a8bc-69d3faa63b2f" + orderId: "f201e540-70cd-4e49-b3b1-4c85df9a2106" + shiftId: "ea729213-1652-4e4b-95cb-a7d5c1a1e306" + paymentTerms: NET_30 + invoiceNumber: "INV-2026-0017" + issueDate: "2026-03-10T05:00:00Z" + dueDate: "2026-04-09T05:00:00Z" + amount: 280 + staffCount: 1 + chargesCount: 1 + } + ) # Recent Payments (only for PAID invoices) recent_payment_01: recentPayment_insert( @@ -2062,6 +2796,46 @@ mutation seedAll @transaction { invoiceId: "ba0529be-7906-417f-8ec7-c866d0633fee" } ) + recent_payment_04: recentPayment_insert( + data: { + id: "4d45192e-34fe-4e07-a4f9-708e7591a9b6" + workedTime: "8h" + status: PAID + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + applicationId: "b8c4b723-346d-4bcd-9667-35944ba5dbbf" + invoiceId: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f4" + } + ) + recent_payment_05: recentPayment_insert( + data: { + id: "4d45192e-34fe-4e07-a4f9-708e7591a9b7" + workedTime: "8h" + status: PENDING + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + applicationId: "b8c4b723-346d-4bcd-9667-35944ba5dbbe" + invoiceId: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f1" + } + ) + recent_payment_06: recentPayment_insert( + data: { + id: "4d45192e-34fe-4e07-a4f9-708e7591a9b8" + workedTime: "6h" + status: PENDING + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + applicationId: "b8c4b723-346d-4bcd-9667-35944ba5dbc0" + invoiceId: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f3" + } + ) + recent_payment_07: recentPayment_insert( + data: { + id: "4d45192e-34fe-4e07-a4f9-708e7591a9b9" + workedTime: "6h" + status: PENDING + staffId: "56d7178c-f4ab-4c50-9b1f-d6efe25ba50b" + applicationId: "b8c4b723-346d-4bcd-9667-35944ba5dbc4" + invoiceId: "c23f3ed2-7fa1-43f5-88e9-4227e34cb5f3" + } + ) # Attire Options (Required) attire_1: attireOption_insert( @@ -2220,5 +2994,54 @@ mutation seedAll @transaction { vendorId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a" } ) + staff_attire_1: staffAttire_insert( + data: { + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + attireOptionId: "4bce6592-e38e-4d90-a478-d1ce0f286146" + verificationStatus: APPROVED + verificationPhotoUrl: "https://storage.googleapis.com/krow-workforce-dev/attire/staff-7/non-slip-shoes.jpg" + verificationId: "attire_verif_staff7_001" + verifiedAt: "2026-03-01T17:00:00Z" + } + ) + staff_attire_2: staffAttire_insert( + data: { + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + attireOptionId: "786e9761-b398-42bd-b363-91a40938864e" + verificationStatus: APPROVED + verificationPhotoUrl: "https://storage.googleapis.com/krow-workforce-dev/attire/staff-7/black-pants.jpg" + verificationId: "attire_verif_staff7_002" + verifiedAt: "2026-03-01T17:05:00Z" + } + ) + staff_attire_3: staffAttire_insert( + data: { + staffId: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3" + attireOptionId: "bbff61b3-3f99-4637-9a2f-1d4c6fa61517" + verificationStatus: PROCESSING + verificationPhotoUrl: "https://storage.googleapis.com/krow-workforce-dev/attire/staff-7/white-button-up.jpg" + verificationId: "attire_verif_staff7_003" + } + ) + staff_attire_4: staffAttire_insert( + data: { + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + attireOptionId: "4bce6592-e38e-4d90-a478-d1ce0f286146" + verificationStatus: APPROVED + verificationPhotoUrl: "https://storage.googleapis.com/krow-workforce-dev/attire/staff-1/non-slip-shoes.jpg" + verificationId: "attire_verif_staff1_001" + verifiedAt: "2026-02-21T16:20:00Z" + } + ) + staff_attire_5: staffAttire_insert( + data: { + staffId: "633df3ce-b92c-473f-90d8-38dd027fdf57" + attireOptionId: "17b135e6-b8f0-4541-b12b-505e95de31ef" + verificationStatus: APPROVED + verificationPhotoUrl: "https://storage.googleapis.com/krow-workforce-dev/attire/staff-1/black-socks.jpg" + verificationId: "attire_verif_staff1_002" + verifiedAt: "2026-02-21T16:23:00Z" + } + ) } -#v.3 +#v.4