





















const db = require('../models');
const Users = db.users;






const SystemParameters = db.system_parameters;

const Holidays = db.holidays;

const SssContributionTables = db.sss_contribution_tables;

const WithholdingTaxTables = db.withholding_tax_tables;

const FiscalPeriods = db.fiscal_periods;

const CostCenters = db.cost_centers;

const Departments = db.departments;

const Positions = db.positions;

const Shifts = db.shifts;

const Employees = db.employees;

const EmployeeDocuments = db.employee_documents;

const TimeRecords = db.time_records;

const BiometricImports = db.biometric_imports;

const LeaveTypes = db.leave_types;

const LeaveBalances = db.leave_balances;

const LeaveApplications = db.leave_applications;

const EmployeeLoans = db.employee_loans;

const LoanDeductions = db.loan_deductions;

const PayrollRuns = db.payroll_runs;

const PayrollItems = db.payroll_items;

const BankFiles = db.bank_files;

const Accounts = db.accounts;

const JournalEntries = db.journal_entries;

const JournalLines = db.journal_lines;

const Vendors = db.vendors;

const ApInvoices = db.ap_invoices;

const ApPayments = db.ap_payments;

const ApPaymentLines = db.ap_payment_lines;

const Customers = db.customers;

const ArInvoices = db.ar_invoices;

const ArInvoiceItems = db.ar_invoice_items;

const JobRequisitions = db.job_requisitions;

const Applicants = db.applicants;

const ApprovalRequests = db.approval_requests;

const Notifications = db.notifications;

const ExportRequests = db.export_requests;

const PasswordHistories = db.password_histories;

const RefreshTokens = db.refresh_tokens;

const AuditLogs = db.audit_logs;







const SystemParametersData = [
    
    {
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "value": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "lastUpdatedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "value": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "lastUpdatedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "value": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "lastUpdatedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "value": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "lastUpdatedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "value": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "lastUpdatedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const HolidaysData = [
    
    {
    
        
        
            
                "holidayDate": new Date(Date.now()),
            
        
    
        
        
            
                "holidayName": "Alan Turing",
            
        
    
        
        
            
                "holidayType": "SPECIAL_HOLIDAY",
            
        
    
        
        
            
                "year": 1,
            
        
    
        
        
            
                "isRecurring": false,
            
        
    
    },
    
    {
    
        
        
            
                "holidayDate": new Date(Date.now()),
            
        
    
        
        
            
                "holidayName": "Marie Curie",
            
        
    
        
        
            
                "holidayType": "SPECIAL_HOLIDAY",
            
        
    
        
        
            
                "year": 7,
            
        
    
        
        
            
                "isRecurring": true,
            
        
    
    },
    
    {
    
        
        
            
                "holidayDate": new Date(Date.now()),
            
        
    
        
        
            
                "holidayName": "Ada Lovelace",
            
        
    
        
        
            
                "holidayType": "SPECIAL_HOLIDAY",
            
        
    
        
        
            
                "year": 1,
            
        
    
        
        
            
                "isRecurring": true,
            
        
    
    },
    
    {
    
        
        
            
                "holidayDate": new Date(Date.now()),
            
        
    
        
        
            
                "holidayName": "Ada Lovelace",
            
        
    
        
        
            
                "holidayType": "REGULAR",
            
        
    
        
        
            
                "year": 6,
            
        
    
        
        
            
                "isRecurring": true,
            
        
    
    },
    
    {
    
        
        
            
                "holidayDate": new Date(Date.now()),
            
        
    
        
        
            
                "holidayName": "Alan Turing",
            
        
    
        
        
            
                "holidayType": "REGULAR_HOLIDAY",
            
        
    
        
        
            
                "year": 8,
            
        
    
        
        
            
                "isRecurring": true,
            
        
    
    },
    
];



const SssContributionTablesData = [
    
    {
    
        
        
            
                "salaryFrom": 9.5,
            
        
    
        
        
            
                "salaryTo": 7.3,
            
        
    
        
        
            
                "msc": 0.29,
            
        
    
        
        
            
                "employeeShare": 6.81,
            
        
    
        
        
            
                "employerShare": 2.01,
            
        
    
        
        
            
                "wispEmployee": 5.29,
            
        
    
        
        
            
                "wispEmployer": 2.81,
            
        
    
        
        
            
                "effectiveYear": 3,
            
        
    
    },
    
    {
    
        
        
            
                "salaryFrom": 4.13,
            
        
    
        
        
            
                "salaryTo": 9.64,
            
        
    
        
        
            
                "msc": 3.32,
            
        
    
        
        
            
                "employeeShare": 3.77,
            
        
    
        
        
            
                "employerShare": 8.05,
            
        
    
        
        
            
                "wispEmployee": 6.36,
            
        
    
        
        
            
                "wispEmployer": 6.72,
            
        
    
        
        
            
                "effectiveYear": 4,
            
        
    
    },
    
    {
    
        
        
            
                "salaryFrom": 3.19,
            
        
    
        
        
            
                "salaryTo": 6.71,
            
        
    
        
        
            
                "msc": 2.9,
            
        
    
        
        
            
                "employeeShare": 7.9,
            
        
    
        
        
            
                "employerShare": 8.63,
            
        
    
        
        
            
                "wispEmployee": 3.79,
            
        
    
        
        
            
                "wispEmployer": 6.23,
            
        
    
        
        
            
                "effectiveYear": 1,
            
        
    
    },
    
    {
    
        
        
            
                "salaryFrom": 0.2,
            
        
    
        
        
            
                "salaryTo": 0.97,
            
        
    
        
        
            
                "msc": 1.54,
            
        
    
        
        
            
                "employeeShare": 8.16,
            
        
    
        
        
            
                "employerShare": 6.45,
            
        
    
        
        
            
                "wispEmployee": 6.62,
            
        
    
        
        
            
                "wispEmployer": 6.95,
            
        
    
        
        
            
                "effectiveYear": 4,
            
        
    
    },
    
    {
    
        
        
            
                "salaryFrom": 1.16,
            
        
    
        
        
            
                "salaryTo": 7.31,
            
        
    
        
        
            
                "msc": 5.88,
            
        
    
        
        
            
                "employeeShare": 8.24,
            
        
    
        
        
            
                "employerShare": 9.13,
            
        
    
        
        
            
                "wispEmployee": 1.05,
            
        
    
        
        
            
                "wispEmployer": 8.38,
            
        
    
        
        
            
                "effectiveYear": 8,
            
        
    
    },
    
];



const WithholdingTaxTablesData = [
    
    {
    
        
        
            
                "periodType": "MONTHLY",
            
        
    
        
        
            
                "salaryFrom": 1.59,
            
        
    
        
        
            
                "salaryTo": 3.82,
            
        
    
        
        
            
                "baseTax": 7.47,
            
        
    
        
        
            
                "excessRate": 8.46,
            
        
    
        
        
            
                "excessOver": 2.43,
            
        
    
        
        
            
                "effectiveYear": 1,
            
        
    
    },
    
    {
    
        
        
            
                "periodType": "MONTHLY",
            
        
    
        
        
            
                "salaryFrom": 3.8,
            
        
    
        
        
            
                "salaryTo": 5.11,
            
        
    
        
        
            
                "baseTax": 1.64,
            
        
    
        
        
            
                "excessRate": 9.28,
            
        
    
        
        
            
                "excessOver": 6.25,
            
        
    
        
        
            
                "effectiveYear": 2,
            
        
    
    },
    
    {
    
        
        
            
                "periodType": "SEMI_MONTHLY",
            
        
    
        
        
            
                "salaryFrom": 9.4,
            
        
    
        
        
            
                "salaryTo": 3.1,
            
        
    
        
        
            
                "baseTax": 8.57,
            
        
    
        
        
            
                "excessRate": 2.85,
            
        
    
        
        
            
                "excessOver": 0.83,
            
        
    
        
        
            
                "effectiveYear": 1,
            
        
    
    },
    
    {
    
        
        
            
                "periodType": "MONTHLY",
            
        
    
        
        
            
                "salaryFrom": 3.6,
            
        
    
        
        
            
                "salaryTo": 0.38,
            
        
    
        
        
            
                "baseTax": 2.86,
            
        
    
        
        
            
                "excessRate": 8.25,
            
        
    
        
        
            
                "excessOver": 9.75,
            
        
    
        
        
            
                "effectiveYear": 3,
            
        
    
    },
    
    {
    
        
        
            
                "periodType": "ANNUAL",
            
        
    
        
        
            
                "salaryFrom": 1.39,
            
        
    
        
        
            
                "salaryTo": 3.95,
            
        
    
        
        
            
                "baseTax": 6.95,
            
        
    
        
        
            
                "excessRate": 8.57,
            
        
    
        
        
            
                "excessOver": 8.76,
            
        
    
        
        
            
                "effectiveYear": 2,
            
        
    
    },
    
];



const FiscalPeriodsData = [
    
    {
    
        
        
            
                "year": 9,
            
        
    
        
        
            
                "month": 7,
            
        
    
        
        
            
                "status": "LOCKED",
            
        
    
        
        
            
                "openedAt": new Date(Date.now()),
            
        
    
        
        
            
                "closedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "year": 2,
            
        
    
        
        
            
                "month": 1,
            
        
    
        
        
            
                "status": "CLOSED",
            
        
    
        
        
            
                "openedAt": new Date(Date.now()),
            
        
    
        
        
            
                "closedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "year": 1,
            
        
    
        
        
            
                "month": 6,
            
        
    
        
        
            
                "status": "LOCKED",
            
        
    
        
        
            
                "openedAt": new Date(Date.now()),
            
        
    
        
        
            
                "closedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "year": 3,
            
        
    
        
        
            
                "month": 7,
            
        
    
        
        
            
                "status": "CLOSED",
            
        
    
        
        
            
                "openedAt": new Date(Date.now()),
            
        
    
        
        
            
                "closedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "year": 6,
            
        
    
        
        
            
                "month": 3,
            
        
    
        
        
            
                "status": "LOCKED",
            
        
    
        
        
            
                "openedAt": new Date(Date.now()),
            
        
    
        
        
            
                "closedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CostCentersData = [
    
    {
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
];



const DepartmentsData = [
    
    {
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
];



const PositionsData = [
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "jobLevel": "SUPERVISOR",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "jobLevel": "OFFICER",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "jobLevel": "RANK_AND_FILE",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "jobLevel": "RANK_AND_FILE",
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "jobLevel": "MANAGER",
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
];



const ShiftsData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "timeIn": "Marie Curie",
            
        
    
        
        
            
                "timeOut": "Grace Hopper",
            
        
    
        
        
            
                "breakDurationMinutes": 9,
            
        
    
        
        
            
                "totalWorkingHours": 1.82,
            
        
    
        
        
            
                "isRotating": true,
            
        
    
        
        
            
                "rotationCycleDays": 5,
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "timeIn": "Ada Lovelace",
            
        
    
        
        
            
                "timeOut": "Alan Turing",
            
        
    
        
        
            
                "breakDurationMinutes": 1,
            
        
    
        
        
            
                "totalWorkingHours": 7.41,
            
        
    
        
        
            
                "isRotating": false,
            
        
    
        
        
            
                "rotationCycleDays": 5,
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "timeIn": "Grace Hopper",
            
        
    
        
        
            
                "timeOut": "Marie Curie",
            
        
    
        
        
            
                "breakDurationMinutes": 3,
            
        
    
        
        
            
                "totalWorkingHours": 7.06,
            
        
    
        
        
            
                "isRotating": true,
            
        
    
        
        
            
                "rotationCycleDays": 8,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "timeIn": "Grace Hopper",
            
        
    
        
        
            
                "timeOut": "Alan Turing",
            
        
    
        
        
            
                "breakDurationMinutes": 3,
            
        
    
        
        
            
                "totalWorkingHours": 0.51,
            
        
    
        
        
            
                "isRotating": true,
            
        
    
        
        
            
                "rotationCycleDays": 3,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "timeIn": "Ada Lovelace",
            
        
    
        
        
            
                "timeOut": "Alan Turing",
            
        
    
        
        
            
                "breakDurationMinutes": 1,
            
        
    
        
        
            
                "totalWorkingHours": 2.84,
            
        
    
        
        
            
                "isRotating": true,
            
        
    
        
        
            
                "rotationCycleDays": 6,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
];



const EmployeesData = [
    
    {
    
        
        
            
                "employeeCode": "Alan Turing",
            
        
    
        
        
            
                "firstName": "Ada Lovelace",
            
        
    
        
        
            
                "middleName": "Grace Hopper",
            
        
    
        
        
            
                "lastName": "Alan Turing",
            
        
    
        
        
            
                "nameExtension": "Grace Hopper",
            
        
    
        
        
            
                "dateOfBirth": new Date(Date.now()),
            
        
    
        
        
            
                "placeOfBirth": "Ada Lovelace",
            
        
    
        
        
            
                "sex": "FEMALE",
            
        
    
        
        
            
                "civilStatus": "MARRIED",
            
        
    
        
        
            
                "nationality": "Ada Lovelace",
            
        
    
        
        
            
                "religion": "Ada Lovelace",
            
        
    
        
        
            
                "bloodType": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "homeStreet": "Alan Turing",
            
        
    
        
        
            
                "homeBarangay": "Alan Turing",
            
        
    
        
        
            
                "homeCity": "Alan Turing",
            
        
    
        
        
            
                "homeProvince": "Marie Curie",
            
        
    
        
        
            
                "homeZipCode": "Ada Lovelace",
            
        
    
        
        
            
                "permanentAddressSame": true,
            
        
    
        
        
            
                "permanentStreet": "Ada Lovelace",
            
        
    
        
        
            
                "permanentBarangay": "Grace Hopper",
            
        
    
        
        
            
                "permanentCity": "Marie Curie",
            
        
    
        
        
            
                "permanentProvince": "Marie Curie",
            
        
    
        
        
            
                "permanentZipCode": "Grace Hopper",
            
        
    
        
        
            
                "personalEmail": "Marie Curie",
            
        
    
        
        
            
                "personalMobile": "Ada Lovelace",
            
        
    
        
        
            
                "emergencyContactName": "Ada Lovelace",
            
        
    
        
        
            
                "emergencyContactRel": "Ada Lovelace",
            
        
    
        
        
            
                "emergencyContactMobile": "Ada Lovelace",
            
        
    
        
        
            
                "sssNumber": "Grace Hopper",
            
        
    
        
        
            
                "philhealthNumber": "Alan Turing",
            
        
    
        
        
            
                "pagibigNumber": "Alan Turing",
            
        
    
        
        
            
                "tinNumber": "Marie Curie",
            
        
    
        
        
            
                "bankName": "Ada Lovelace",
            
        
    
        
        
            
                "bankAccountNumber": "Marie Curie",
            
        
    
        
        
            
                "bankAccountName": "Marie Curie",
            
        
    
        
        
            
                "employmentDate": new Date(Date.now()),
            
        
    
        
        
            
                "regularizationDate": new Date(Date.now()),
            
        
    
        
        
            
                "employmentStatus": "PROJECT_BASED",
            
        
    
        
        
            
                "employmentType": "PART_TIME",
            
        
    
        
        
            
                "jobLevel": "SUPERVISOR",
            
        
    
        
        
            
                "salaryType": "DAILY",
            
        
    
        
        
            
                "basicSalary": 2.82,
            
        
    
        
        
            
                "taxStatus": "ME3",
            
        
    
        
        
            
                "workLocation": "Marie Curie",
            
        
    
        
        
            
                "separationDate": new Date(Date.now()),
            
        
    
        
        
            
                "separationType": "RESIGNED",
            
        
    
        
        
            
                "separationReason": "Alan Turing",
            
        
    
        
        
            
                "clearanceStatus": "Marie Curie",
            
        
    
        
        
            
                "finalPayAmount": 6.17,
            
        
    
        
        
            
                "finalPayReleasedDate": new Date(Date.now()),
            
        
    
        
        
            
                "isActive": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "employeeCode": "Marie Curie",
            
        
    
        
        
            
                "firstName": "Alan Turing",
            
        
    
        
        
            
                "middleName": "Ada Lovelace",
            
        
    
        
        
            
                "lastName": "Grace Hopper",
            
        
    
        
        
            
                "nameExtension": "Marie Curie",
            
        
    
        
        
            
                "dateOfBirth": new Date(Date.now()),
            
        
    
        
        
            
                "placeOfBirth": "Ada Lovelace",
            
        
    
        
        
            
                "sex": "MALE",
            
        
    
        
        
            
                "civilStatus": "WIDOWED",
            
        
    
        
        
            
                "nationality": "Ada Lovelace",
            
        
    
        
        
            
                "religion": "Alan Turing",
            
        
    
        
        
            
                "bloodType": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "homeStreet": "Marie Curie",
            
        
    
        
        
            
                "homeBarangay": "Ada Lovelace",
            
        
    
        
        
            
                "homeCity": "Alan Turing",
            
        
    
        
        
            
                "homeProvince": "Marie Curie",
            
        
    
        
        
            
                "homeZipCode": "Ada Lovelace",
            
        
    
        
        
            
                "permanentAddressSame": true,
            
        
    
        
        
            
                "permanentStreet": "Alan Turing",
            
        
    
        
        
            
                "permanentBarangay": "Ada Lovelace",
            
        
    
        
        
            
                "permanentCity": "Grace Hopper",
            
        
    
        
        
            
                "permanentProvince": "Grace Hopper",
            
        
    
        
        
            
                "permanentZipCode": "Alan Turing",
            
        
    
        
        
            
                "personalEmail": "Alan Turing",
            
        
    
        
        
            
                "personalMobile": "Marie Curie",
            
        
    
        
        
            
                "emergencyContactName": "Marie Curie",
            
        
    
        
        
            
                "emergencyContactRel": "Alan Turing",
            
        
    
        
        
            
                "emergencyContactMobile": "Grace Hopper",
            
        
    
        
        
            
                "sssNumber": "Marie Curie",
            
        
    
        
        
            
                "philhealthNumber": "Marie Curie",
            
        
    
        
        
            
                "pagibigNumber": "Ada Lovelace",
            
        
    
        
        
            
                "tinNumber": "Ada Lovelace",
            
        
    
        
        
            
                "bankName": "Alan Turing",
            
        
    
        
        
            
                "bankAccountNumber": "Marie Curie",
            
        
    
        
        
            
                "bankAccountName": "Ada Lovelace",
            
        
    
        
        
            
                "employmentDate": new Date(Date.now()),
            
        
    
        
        
            
                "regularizationDate": new Date(Date.now()),
            
        
    
        
        
            
                "employmentStatus": "REGULAR",
            
        
    
        
        
            
                "employmentType": "FULL_TIME",
            
        
    
        
        
            
                "jobLevel": "MANAGER",
            
        
    
        
        
            
                "salaryType": "HOURLY",
            
        
    
        
        
            
                "basicSalary": 7.81,
            
        
    
        
        
            
                "taxStatus": "S",
            
        
    
        
        
            
                "workLocation": "Alan Turing",
            
        
    
        
        
            
                "separationDate": new Date(Date.now()),
            
        
    
        
        
            
                "separationType": "AWOL",
            
        
    
        
        
            
                "separationReason": "Grace Hopper",
            
        
    
        
        
            
                "clearanceStatus": "Ada Lovelace",
            
        
    
        
        
            
                "finalPayAmount": 5.28,
            
        
    
        
        
            
                "finalPayReleasedDate": new Date(Date.now()),
            
        
    
        
        
            
                "isActive": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "employeeCode": "Alan Turing",
            
        
    
        
        
            
                "firstName": "Alan Turing",
            
        
    
        
        
            
                "middleName": "Alan Turing",
            
        
    
        
        
            
                "lastName": "Alan Turing",
            
        
    
        
        
            
                "nameExtension": "Ada Lovelace",
            
        
    
        
        
            
                "dateOfBirth": new Date(Date.now()),
            
        
    
        
        
            
                "placeOfBirth": "Marie Curie",
            
        
    
        
        
            
                "sex": "FEMALE",
            
        
    
        
        
            
                "civilStatus": "MARRIED",
            
        
    
        
        
            
                "nationality": "Grace Hopper",
            
        
    
        
        
            
                "religion": "Ada Lovelace",
            
        
    
        
        
            
                "bloodType": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "homeStreet": "Grace Hopper",
            
        
    
        
        
            
                "homeBarangay": "Alan Turing",
            
        
    
        
        
            
                "homeCity": "Marie Curie",
            
        
    
        
        
            
                "homeProvince": "Grace Hopper",
            
        
    
        
        
            
                "homeZipCode": "Grace Hopper",
            
        
    
        
        
            
                "permanentAddressSame": true,
            
        
    
        
        
            
                "permanentStreet": "Marie Curie",
            
        
    
        
        
            
                "permanentBarangay": "Marie Curie",
            
        
    
        
        
            
                "permanentCity": "Marie Curie",
            
        
    
        
        
            
                "permanentProvince": "Alan Turing",
            
        
    
        
        
            
                "permanentZipCode": "Marie Curie",
            
        
    
        
        
            
                "personalEmail": "Ada Lovelace",
            
        
    
        
        
            
                "personalMobile": "Ada Lovelace",
            
        
    
        
        
            
                "emergencyContactName": "Ada Lovelace",
            
        
    
        
        
            
                "emergencyContactRel": "Alan Turing",
            
        
    
        
        
            
                "emergencyContactMobile": "Grace Hopper",
            
        
    
        
        
            
                "sssNumber": "Marie Curie",
            
        
    
        
        
            
                "philhealthNumber": "Ada Lovelace",
            
        
    
        
        
            
                "pagibigNumber": "Grace Hopper",
            
        
    
        
        
            
                "tinNumber": "Marie Curie",
            
        
    
        
        
            
                "bankName": "Ada Lovelace",
            
        
    
        
        
            
                "bankAccountNumber": "Alan Turing",
            
        
    
        
        
            
                "bankAccountName": "Marie Curie",
            
        
    
        
        
            
                "employmentDate": new Date(Date.now()),
            
        
    
        
        
            
                "regularizationDate": new Date(Date.now()),
            
        
    
        
        
            
                "employmentStatus": "REGULAR",
            
        
    
        
        
            
                "employmentType": "FULL_TIME",
            
        
    
        
        
            
                "jobLevel": "OFFICER",
            
        
    
        
        
            
                "salaryType": "MONTHLY",
            
        
    
        
        
            
                "basicSalary": 0.54,
            
        
    
        
        
            
                "taxStatus": "ME",
            
        
    
        
        
            
                "workLocation": "Ada Lovelace",
            
        
    
        
        
            
                "separationDate": new Date(Date.now()),
            
        
    
        
        
            
                "separationType": "TERMINATED",
            
        
    
        
        
            
                "separationReason": "Marie Curie",
            
        
    
        
        
            
                "clearanceStatus": "Ada Lovelace",
            
        
    
        
        
            
                "finalPayAmount": 9.75,
            
        
    
        
        
            
                "finalPayReleasedDate": new Date(Date.now()),
            
        
    
        
        
            
                "isActive": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "employeeCode": "Alan Turing",
            
        
    
        
        
            
                "firstName": "Marie Curie",
            
        
    
        
        
            
                "middleName": "Grace Hopper",
            
        
    
        
        
            
                "lastName": "Grace Hopper",
            
        
    
        
        
            
                "nameExtension": "Grace Hopper",
            
        
    
        
        
            
                "dateOfBirth": new Date(Date.now()),
            
        
    
        
        
            
                "placeOfBirth": "Grace Hopper",
            
        
    
        
        
            
                "sex": "FEMALE",
            
        
    
        
        
            
                "civilStatus": "WIDOWED",
            
        
    
        
        
            
                "nationality": "Ada Lovelace",
            
        
    
        
        
            
                "religion": "Marie Curie",
            
        
    
        
        
            
                "bloodType": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "homeStreet": "Marie Curie",
            
        
    
        
        
            
                "homeBarangay": "Ada Lovelace",
            
        
    
        
        
            
                "homeCity": "Marie Curie",
            
        
    
        
        
            
                "homeProvince": "Ada Lovelace",
            
        
    
        
        
            
                "homeZipCode": "Ada Lovelace",
            
        
    
        
        
            
                "permanentAddressSame": false,
            
        
    
        
        
            
                "permanentStreet": "Ada Lovelace",
            
        
    
        
        
            
                "permanentBarangay": "Ada Lovelace",
            
        
    
        
        
            
                "permanentCity": "Grace Hopper",
            
        
    
        
        
            
                "permanentProvince": "Alan Turing",
            
        
    
        
        
            
                "permanentZipCode": "Marie Curie",
            
        
    
        
        
            
                "personalEmail": "Alan Turing",
            
        
    
        
        
            
                "personalMobile": "Grace Hopper",
            
        
    
        
        
            
                "emergencyContactName": "Ada Lovelace",
            
        
    
        
        
            
                "emergencyContactRel": "Grace Hopper",
            
        
    
        
        
            
                "emergencyContactMobile": "Marie Curie",
            
        
    
        
        
            
                "sssNumber": "Marie Curie",
            
        
    
        
        
            
                "philhealthNumber": "Grace Hopper",
            
        
    
        
        
            
                "pagibigNumber": "Marie Curie",
            
        
    
        
        
            
                "tinNumber": "Ada Lovelace",
            
        
    
        
        
            
                "bankName": "Ada Lovelace",
            
        
    
        
        
            
                "bankAccountNumber": "Grace Hopper",
            
        
    
        
        
            
                "bankAccountName": "Marie Curie",
            
        
    
        
        
            
                "employmentDate": new Date(Date.now()),
            
        
    
        
        
            
                "regularizationDate": new Date(Date.now()),
            
        
    
        
        
            
                "employmentStatus": "PROBATIONARY",
            
        
    
        
        
            
                "employmentType": "FULL_TIME",
            
        
    
        
        
            
                "jobLevel": "SUPERVISOR",
            
        
    
        
        
            
                "salaryType": "MONTHLY",
            
        
    
        
        
            
                "basicSalary": 4.91,
            
        
    
        
        
            
                "taxStatus": "S2",
            
        
    
        
        
            
                "workLocation": "Grace Hopper",
            
        
    
        
        
            
                "separationDate": new Date(Date.now()),
            
        
    
        
        
            
                "separationType": "RETIRED",
            
        
    
        
        
            
                "separationReason": "Alan Turing",
            
        
    
        
        
            
                "clearanceStatus": "Alan Turing",
            
        
    
        
        
            
                "finalPayAmount": 7.75,
            
        
    
        
        
            
                "finalPayReleasedDate": new Date(Date.now()),
            
        
    
        
        
            
                "isActive": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "employeeCode": "Ada Lovelace",
            
        
    
        
        
            
                "firstName": "Grace Hopper",
            
        
    
        
        
            
                "middleName": "Alan Turing",
            
        
    
        
        
            
                "lastName": "Ada Lovelace",
            
        
    
        
        
            
                "nameExtension": "Grace Hopper",
            
        
    
        
        
            
                "dateOfBirth": new Date(Date.now()),
            
        
    
        
        
            
                "placeOfBirth": "Marie Curie",
            
        
    
        
        
            
                "sex": "FEMALE",
            
        
    
        
        
            
                "civilStatus": "LEGALLY_SEPARATED",
            
        
    
        
        
            
                "nationality": "Ada Lovelace",
            
        
    
        
        
            
                "religion": "Grace Hopper",
            
        
    
        
        
            
                "bloodType": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "homeStreet": "Grace Hopper",
            
        
    
        
        
            
                "homeBarangay": "Grace Hopper",
            
        
    
        
        
            
                "homeCity": "Alan Turing",
            
        
    
        
        
            
                "homeProvince": "Marie Curie",
            
        
    
        
        
            
                "homeZipCode": "Ada Lovelace",
            
        
    
        
        
            
                "permanentAddressSame": false,
            
        
    
        
        
            
                "permanentStreet": "Ada Lovelace",
            
        
    
        
        
            
                "permanentBarangay": "Alan Turing",
            
        
    
        
        
            
                "permanentCity": "Marie Curie",
            
        
    
        
        
            
                "permanentProvince": "Alan Turing",
            
        
    
        
        
            
                "permanentZipCode": "Grace Hopper",
            
        
    
        
        
            
                "personalEmail": "Grace Hopper",
            
        
    
        
        
            
                "personalMobile": "Marie Curie",
            
        
    
        
        
            
                "emergencyContactName": "Grace Hopper",
            
        
    
        
        
            
                "emergencyContactRel": "Marie Curie",
            
        
    
        
        
            
                "emergencyContactMobile": "Marie Curie",
            
        
    
        
        
            
                "sssNumber": "Marie Curie",
            
        
    
        
        
            
                "philhealthNumber": "Grace Hopper",
            
        
    
        
        
            
                "pagibigNumber": "Grace Hopper",
            
        
    
        
        
            
                "tinNumber": "Alan Turing",
            
        
    
        
        
            
                "bankName": "Ada Lovelace",
            
        
    
        
        
            
                "bankAccountNumber": "Alan Turing",
            
        
    
        
        
            
                "bankAccountName": "Grace Hopper",
            
        
    
        
        
            
                "employmentDate": new Date(Date.now()),
            
        
    
        
        
            
                "regularizationDate": new Date(Date.now()),
            
        
    
        
        
            
                "employmentStatus": "PROJECT_BASED",
            
        
    
        
        
            
                "employmentType": "FULL_TIME",
            
        
    
        
        
            
                "jobLevel": "SUPERVISOR",
            
        
    
        
        
            
                "salaryType": "DAILY",
            
        
    
        
        
            
                "basicSalary": 8.93,
            
        
    
        
        
            
                "taxStatus": "S2",
            
        
    
        
        
            
                "workLocation": "Marie Curie",
            
        
    
        
        
            
                "separationDate": new Date(Date.now()),
            
        
    
        
        
            
                "separationType": "REDUNDANCY",
            
        
    
        
        
            
                "separationReason": "Grace Hopper",
            
        
    
        
        
            
                "clearanceStatus": "Alan Turing",
            
        
    
        
        
            
                "finalPayAmount": 0.57,
            
        
    
        
        
            
                "finalPayReleasedDate": new Date(Date.now()),
            
        
    
        
        
            
                "isActive": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const EmployeeDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "documentType": "DIPLOMA",
            
        
    
        
        
            
                "fileName": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "uploadedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "documentType": "PERFORMANCE_APPRAISAL",
            
        
    
        
        
            
                "fileName": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "uploadedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "documentType": "BIR_FORM",
            
        
    
        
        
            
                "fileName": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "uploadedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "documentType": "NBI_CLEARANCE",
            
        
    
        
        
            
                "fileName": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "uploadedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "documentType": "JOB_OFFER",
            
        
    
        
        
            
                "fileName": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "uploadedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TimeRecordsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "workDate": new Date(Date.now()),
            
        
    
        
        
            
                "scheduledTimeIn": "Grace Hopper",
            
        
    
        
        
            
                "scheduledTimeOut": "Alan Turing",
            
        
    
        
        
            
                "actualTimeIn": new Date(Date.now()),
            
        
    
        
        
            
                "actualTimeOut": new Date(Date.now()),
            
        
    
        
        
            
                "tardinessMinutes": 2,
            
        
    
        
        
            
                "undertimeMinutes": 8,
            
        
    
        
        
            
                "overtimeMinutes": 9,
            
        
    
        
        
            
                "nightDiffHours": 0.99,
            
        
    
        
        
            
                "workType": "REST_DAY",
            
        
    
        
        
            
                "isAbsent": false,
            
        
    
        
        
            
                "isHalfDay": true,
            
        
    
        
        
            
                "halfDayType": "AM",
            
        
    
        
        
            
                "source": "BIOMETRIC",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "modificationReason": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "workDate": new Date(Date.now()),
            
        
    
        
        
            
                "scheduledTimeIn": "Grace Hopper",
            
        
    
        
        
            
                "scheduledTimeOut": "Alan Turing",
            
        
    
        
        
            
                "actualTimeIn": new Date(Date.now()),
            
        
    
        
        
            
                "actualTimeOut": new Date(Date.now()),
            
        
    
        
        
            
                "tardinessMinutes": 9,
            
        
    
        
        
            
                "undertimeMinutes": 5,
            
        
    
        
        
            
                "overtimeMinutes": 5,
            
        
    
        
        
            
                "nightDiffHours": 9.97,
            
        
    
        
        
            
                "workType": "SPECIAL_HOLIDAY",
            
        
    
        
        
            
                "isAbsent": true,
            
        
    
        
        
            
                "isHalfDay": false,
            
        
    
        
        
            
                "halfDayType": "PM",
            
        
    
        
        
            
                "source": "SYSTEM",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "modificationReason": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "workDate": new Date(Date.now()),
            
        
    
        
        
            
                "scheduledTimeIn": "Grace Hopper",
            
        
    
        
        
            
                "scheduledTimeOut": "Alan Turing",
            
        
    
        
        
            
                "actualTimeIn": new Date(Date.now()),
            
        
    
        
        
            
                "actualTimeOut": new Date(Date.now()),
            
        
    
        
        
            
                "tardinessMinutes": 8,
            
        
    
        
        
            
                "undertimeMinutes": 9,
            
        
    
        
        
            
                "overtimeMinutes": 1,
            
        
    
        
        
            
                "nightDiffHours": 7.14,
            
        
    
        
        
            
                "workType": "REGULAR",
            
        
    
        
        
            
                "isAbsent": false,
            
        
    
        
        
            
                "isHalfDay": false,
            
        
    
        
        
            
                "halfDayType": "AM",
            
        
    
        
        
            
                "source": "MANUAL",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "modificationReason": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "workDate": new Date(Date.now()),
            
        
    
        
        
            
                "scheduledTimeIn": "Grace Hopper",
            
        
    
        
        
            
                "scheduledTimeOut": "Marie Curie",
            
        
    
        
        
            
                "actualTimeIn": new Date(Date.now()),
            
        
    
        
        
            
                "actualTimeOut": new Date(Date.now()),
            
        
    
        
        
            
                "tardinessMinutes": 5,
            
        
    
        
        
            
                "undertimeMinutes": 8,
            
        
    
        
        
            
                "overtimeMinutes": 8,
            
        
    
        
        
            
                "nightDiffHours": 8.82,
            
        
    
        
        
            
                "workType": "REGULAR",
            
        
    
        
        
            
                "isAbsent": true,
            
        
    
        
        
            
                "isHalfDay": false,
            
        
    
        
        
            
                "halfDayType": "PM",
            
        
    
        
        
            
                "source": "SYSTEM",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "modificationReason": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "workDate": new Date(Date.now()),
            
        
    
        
        
            
                "scheduledTimeIn": "Grace Hopper",
            
        
    
        
        
            
                "scheduledTimeOut": "Grace Hopper",
            
        
    
        
        
            
                "actualTimeIn": new Date(Date.now()),
            
        
    
        
        
            
                "actualTimeOut": new Date(Date.now()),
            
        
    
        
        
            
                "tardinessMinutes": 4,
            
        
    
        
        
            
                "undertimeMinutes": 6,
            
        
    
        
        
            
                "overtimeMinutes": 3,
            
        
    
        
        
            
                "nightDiffHours": 9.16,
            
        
    
        
        
            
                "workType": "REST_DAY",
            
        
    
        
        
            
                "isAbsent": false,
            
        
    
        
        
            
                "isHalfDay": false,
            
        
    
        
        
            
                "halfDayType": "AM",
            
        
    
        
        
            
                "source": "MANUAL",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "modificationReason": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BiometricImportsData = [
    
    {
    
        
        
            
                "importDate": new Date(Date.now()),
            
        
    
        
        
            
                "deviceCode": "Grace Hopper",
            
        
    
        
        
            
                "fileName": "Marie Curie",
            
        
    
        
        
            
                "totalRecords": 9,
            
        
    
        
        
            
                "successCount": 8,
            
        
    
        
        
            
                "errorCount": 2,
            
        
    
        
        
            
                "errorDetailsJson": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "importDate": new Date(Date.now()),
            
        
    
        
        
            
                "deviceCode": "Marie Curie",
            
        
    
        
        
            
                "fileName": "Ada Lovelace",
            
        
    
        
        
            
                "totalRecords": 1,
            
        
    
        
        
            
                "successCount": 1,
            
        
    
        
        
            
                "errorCount": 3,
            
        
    
        
        
            
                "errorDetailsJson": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "importDate": new Date(Date.now()),
            
        
    
        
        
            
                "deviceCode": "Alan Turing",
            
        
    
        
        
            
                "fileName": "Ada Lovelace",
            
        
    
        
        
            
                "totalRecords": 9,
            
        
    
        
        
            
                "successCount": 6,
            
        
    
        
        
            
                "errorCount": 3,
            
        
    
        
        
            
                "errorDetailsJson": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "importDate": new Date(Date.now()),
            
        
    
        
        
            
                "deviceCode": "Alan Turing",
            
        
    
        
        
            
                "fileName": "Marie Curie",
            
        
    
        
        
            
                "totalRecords": 8,
            
        
    
        
        
            
                "successCount": 8,
            
        
    
        
        
            
                "errorCount": 9,
            
        
    
        
        
            
                "errorDetailsJson": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "importDate": new Date(Date.now()),
            
        
    
        
        
            
                "deviceCode": "Grace Hopper",
            
        
    
        
        
            
                "fileName": "Ada Lovelace",
            
        
    
        
        
            
                "totalRecords": 9,
            
        
    
        
        
            
                "successCount": 2,
            
        
    
        
        
            
                "errorCount": 2,
            
        
    
        
        
            
                "errorDetailsJson": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
    },
    
];



const LeaveTypesData = [
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "daysPerYear": 3.77,
            
        
    
        
        
            
                "isConvertible": true,
            
        
    
        
        
            
                "requiresMedCert": true,
            
        
    
        
        
            
                "minServiceMonths": 4,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "daysPerYear": 7.52,
            
        
    
        
        
            
                "isConvertible": false,
            
        
    
        
        
            
                "requiresMedCert": false,
            
        
    
        
        
            
                "minServiceMonths": 1,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "daysPerYear": 9.87,
            
        
    
        
        
            
                "isConvertible": true,
            
        
    
        
        
            
                "requiresMedCert": true,
            
        
    
        
        
            
                "minServiceMonths": 5,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "daysPerYear": 7.08,
            
        
    
        
        
            
                "isConvertible": true,
            
        
    
        
        
            
                "requiresMedCert": true,
            
        
    
        
        
            
                "minServiceMonths": 8,
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "daysPerYear": 7.89,
            
        
    
        
        
            
                "isConvertible": false,
            
        
    
        
        
            
                "requiresMedCert": true,
            
        
    
        
        
            
                "minServiceMonths": 3,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
];



const LeaveBalancesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "year": 6,
            
        
    
        
        
            
                "openingBalance": 0.5,
            
        
    
        
        
            
                "earnedThisYear": 2.18,
            
        
    
        
        
            
                "usedYtd": 8.37,
            
        
    
        
        
            
                "forfeited": 7.47,
            
        
    
        
        
            
                "convertedToCash": 5.15,
            
        
    
        
        
            
                "currentBalance": 0.15,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "year": 5,
            
        
    
        
        
            
                "openingBalance": 4.17,
            
        
    
        
        
            
                "earnedThisYear": 1.81,
            
        
    
        
        
            
                "usedYtd": 8.11,
            
        
    
        
        
            
                "forfeited": 2.05,
            
        
    
        
        
            
                "convertedToCash": 5.88,
            
        
    
        
        
            
                "currentBalance": 2.57,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "year": 9,
            
        
    
        
        
            
                "openingBalance": 4.61,
            
        
    
        
        
            
                "earnedThisYear": 1.07,
            
        
    
        
        
            
                "usedYtd": 1.09,
            
        
    
        
        
            
                "forfeited": 8.59,
            
        
    
        
        
            
                "convertedToCash": 3.6,
            
        
    
        
        
            
                "currentBalance": 5.68,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "year": 8,
            
        
    
        
        
            
                "openingBalance": 7.04,
            
        
    
        
        
            
                "earnedThisYear": 1.69,
            
        
    
        
        
            
                "usedYtd": 5.35,
            
        
    
        
        
            
                "forfeited": 1.95,
            
        
    
        
        
            
                "convertedToCash": 3.77,
            
        
    
        
        
            
                "currentBalance": 8.56,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "year": 9,
            
        
    
        
        
            
                "openingBalance": 8.05,
            
        
    
        
        
            
                "earnedThisYear": 9.36,
            
        
    
        
        
            
                "usedYtd": 9.5,
            
        
    
        
        
            
                "forfeited": 0.9,
            
        
    
        
        
            
                "convertedToCash": 3.27,
            
        
    
        
        
            
                "currentBalance": 5.1,
            
        
    
    },
    
];



const LeaveApplicationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "dateFrom": new Date(Date.now()),
            
        
    
        
        
            
                "dateTo": new Date(Date.now()),
            
        
    
        
        
            
                "totalDays": 7.59,
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "managerNote": "Ada Lovelace",
            
        
    
        
        
            
                "hrNote": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "dateFrom": new Date(Date.now()),
            
        
    
        
        
            
                "dateTo": new Date(Date.now()),
            
        
    
        
        
            
                "totalDays": 2.34,
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "managerNote": "Marie Curie",
            
        
    
        
        
            
                "hrNote": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "dateFrom": new Date(Date.now()),
            
        
    
        
        
            
                "dateTo": new Date(Date.now()),
            
        
    
        
        
            
                "totalDays": 5.41,
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "status": "APPLIED",
            
        
    
        
        
            
                "managerNote": "Alan Turing",
            
        
    
        
        
            
                "hrNote": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "dateFrom": new Date(Date.now()),
            
        
    
        
        
            
                "dateTo": new Date(Date.now()),
            
        
    
        
        
            
                "totalDays": 3.81,
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "status": "PENDING_HR",
            
        
    
        
        
            
                "managerNote": "Ada Lovelace",
            
        
    
        
        
            
                "hrNote": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "dateFrom": new Date(Date.now()),
            
        
    
        
        
            
                "dateTo": new Date(Date.now()),
            
        
    
        
        
            
                "totalDays": 9.06,
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "managerNote": "Grace Hopper",
            
        
    
        
        
            
                "hrNote": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
    },
    
];



const EmployeeLoansData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "loanType": "PAG_IBIG",
            
        
    
        
        
            
                "loanSource": "Grace Hopper",
            
        
    
        
        
            
                "loanAmount": 4.0,
            
        
    
        
        
            
                "approvalDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstDeductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "monthlyAmortization": 3.7,
            
        
    
        
        
            
                "remainingBalance": 7.21,
            
        
    
        
        
            
                "termsMonths": 5,
            
        
    
        
        
            
                "status": "DEFERRED",
            
        
    
        
        
            
                "loanAccountNumber": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "loanType": "SSS",
            
        
    
        
        
            
                "loanSource": "Grace Hopper",
            
        
    
        
        
            
                "loanAmount": 4.85,
            
        
    
        
        
            
                "approvalDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstDeductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "monthlyAmortization": 5.32,
            
        
    
        
        
            
                "remainingBalance": 8.48,
            
        
    
        
        
            
                "termsMonths": 7,
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "loanAccountNumber": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "loanType": "SALARY",
            
        
    
        
        
            
                "loanSource": "Marie Curie",
            
        
    
        
        
            
                "loanAmount": 2.62,
            
        
    
        
        
            
                "approvalDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstDeductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "monthlyAmortization": 3.1,
            
        
    
        
        
            
                "remainingBalance": 1.63,
            
        
    
        
        
            
                "termsMonths": 8,
            
        
    
        
        
            
                "status": "DEFERRED",
            
        
    
        
        
            
                "loanAccountNumber": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "loanType": "SALARY",
            
        
    
        
        
            
                "loanSource": "Marie Curie",
            
        
    
        
        
            
                "loanAmount": 3.09,
            
        
    
        
        
            
                "approvalDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstDeductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "monthlyAmortization": 1.96,
            
        
    
        
        
            
                "remainingBalance": 3.26,
            
        
    
        
        
            
                "termsMonths": 7,
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "loanAccountNumber": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "loanType": "SSS",
            
        
    
        
        
            
                "loanSource": "Ada Lovelace",
            
        
    
        
        
            
                "loanAmount": 9.25,
            
        
    
        
        
            
                "approvalDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstDeductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "monthlyAmortization": 1.04,
            
        
    
        
        
            
                "remainingBalance": 9.89,
            
        
    
        
        
            
                "termsMonths": 9,
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "loanAccountNumber": "Ada Lovelace",
            
        
    
    },
    
];



const LoanDeductionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountDeducted": 2.36,
            
        
    
        
        
            
                "deductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "balanceBefore": 2.86,
            
        
    
        
        
            
                "balanceAfter": 4.4,
            
        
    
        
        
            
                "isDeferred": false,
            
        
    
        
        
            
                "deferredReason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountDeducted": 5.53,
            
        
    
        
        
            
                "deductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "balanceBefore": 1.42,
            
        
    
        
        
            
                "balanceAfter": 5.15,
            
        
    
        
        
            
                "isDeferred": false,
            
        
    
        
        
            
                "deferredReason": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountDeducted": 8.74,
            
        
    
        
        
            
                "deductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "balanceBefore": 3.98,
            
        
    
        
        
            
                "balanceAfter": 7.15,
            
        
    
        
        
            
                "isDeferred": true,
            
        
    
        
        
            
                "deferredReason": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountDeducted": 2.73,
            
        
    
        
        
            
                "deductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "balanceBefore": 3.17,
            
        
    
        
        
            
                "balanceAfter": 9.76,
            
        
    
        
        
            
                "isDeferred": true,
            
        
    
        
        
            
                "deferredReason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountDeducted": 3.07,
            
        
    
        
        
            
                "deductionDate": new Date(Date.now()),
            
        
    
        
        
            
                "balanceBefore": 0.24,
            
        
    
        
        
            
                "balanceAfter": 1.26,
            
        
    
        
        
            
                "isDeferred": false,
            
        
    
        
        
            
                "deferredReason": "Alan Turing",
            
        
    
    },
    
];



const PayrollRunsData = [
    
    {
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
        
        
            
                "payrollType": "THIRTEENTH_MONTH",
            
        
    
        
        
            
                "status": "DRAFT",
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                "computedAt": new Date(Date.now()),
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
        
        
            
                "payrollType": "SEMI_MONTHLY_1",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                "computedAt": new Date(Date.now()),
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
        
        
            
                "payrollType": "SEMI_MONTHLY_2",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                "computedAt": new Date(Date.now()),
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
        
        
            
                "payrollType": "SEMI_MONTHLY_1",
            
        
    
        
        
            
                "status": "COMPUTED",
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                "computedAt": new Date(Date.now()),
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "periodFrom": new Date(Date.now()),
            
        
    
        
        
            
                "periodTo": new Date(Date.now()),
            
        
    
        
        
            
                "payrollType": "THIRTEENTH_MONTH",
            
        
    
        
        
            
                "status": "POSTED",
            
        
    
        
        
            
                "lockedAt": new Date(Date.now()),
            
        
    
        
        
            
                "computedAt": new Date(Date.now()),
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PayrollItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "regularDaysWorked": 1.84,
            
        
    
        
        
            
                "absentDays": 6.78,
            
        
    
        
        
            
                "tardinessMinutes": 7,
            
        
    
        
        
            
                "overtimeHours": 8.49,
            
        
    
        
        
            
                "nightDiffHours": 9.55,
            
        
    
        
        
            
                "holidayDaysWorked": 2.73,
            
        
    
        
        
            
                "basicPay": 8.53,
            
        
    
        
        
            
                "overtimePay": 1.53,
            
        
    
        
        
            
                "nightDifferential": 5.37,
            
        
    
        
        
            
                "holidayPay": 4.83,
            
        
    
        
        
            
                "allowances": 0.91,
            
        
    
        
        
            
                "otherEarnings": 8.09,
            
        
    
        
        
            
                "grossPay": 6.09,
            
        
    
        
        
            
                "sssEmployee": 4.54,
            
        
    
        
        
            
                "philhealthEmployee": 8.83,
            
        
    
        
        
            
                "pagibigEmployee": 8.37,
            
        
    
        
        
            
                "withholdingTax": 6.0,
            
        
    
        
        
            
                "sssEmployer": 9.71,
            
        
    
        
        
            
                "philhealthEmployer": 9.21,
            
        
    
        
        
            
                "pagibigEmployer": 2.85,
            
        
    
        
        
            
                "sssLoanDeduction": 8.09,
            
        
    
        
        
            
                "pagibigLoanDeduction": 2.45,
            
        
    
        
        
            
                "companyLoanDeduction": 7.35,
            
        
    
        
        
            
                "otherDeductions": 6.41,
            
        
    
        
        
            
                "totalDeductions": 4.19,
            
        
    
        
        
            
                "netPay": 2.6,
            
        
    
        
        
            
                "ytdGrossPay": 0.96,
            
        
    
        
        
            
                "ytdWithholdingTax": 6.27,
            
        
    
        
        
            
                "ytdSssEmployee": 4.32,
            
        
    
        
        
            
                "ytdPhilhealthEmployee": 3.25,
            
        
    
        
        
            
                "ytdPagibigEmployee": 6.23,
            
        
    
        
        
            
                "ytdBasicPay": 5.91,
            
        
    
        
        
            
                "payslipHash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "regularDaysWorked": 7.08,
            
        
    
        
        
            
                "absentDays": 2.73,
            
        
    
        
        
            
                "tardinessMinutes": 2,
            
        
    
        
        
            
                "overtimeHours": 1.5,
            
        
    
        
        
            
                "nightDiffHours": 1.87,
            
        
    
        
        
            
                "holidayDaysWorked": 8.25,
            
        
    
        
        
            
                "basicPay": 1.15,
            
        
    
        
        
            
                "overtimePay": 7.61,
            
        
    
        
        
            
                "nightDifferential": 4.16,
            
        
    
        
        
            
                "holidayPay": 3.31,
            
        
    
        
        
            
                "allowances": 7.49,
            
        
    
        
        
            
                "otherEarnings": 4.87,
            
        
    
        
        
            
                "grossPay": 2.31,
            
        
    
        
        
            
                "sssEmployee": 9.99,
            
        
    
        
        
            
                "philhealthEmployee": 1.66,
            
        
    
        
        
            
                "pagibigEmployee": 0.78,
            
        
    
        
        
            
                "withholdingTax": 4.19,
            
        
    
        
        
            
                "sssEmployer": 9.63,
            
        
    
        
        
            
                "philhealthEmployer": 5.4,
            
        
    
        
        
            
                "pagibigEmployer": 1.8,
            
        
    
        
        
            
                "sssLoanDeduction": 6.0,
            
        
    
        
        
            
                "pagibigLoanDeduction": 5.11,
            
        
    
        
        
            
                "companyLoanDeduction": 3.4,
            
        
    
        
        
            
                "otherDeductions": 1.81,
            
        
    
        
        
            
                "totalDeductions": 3.29,
            
        
    
        
        
            
                "netPay": 6.37,
            
        
    
        
        
            
                "ytdGrossPay": 2.63,
            
        
    
        
        
            
                "ytdWithholdingTax": 2.78,
            
        
    
        
        
            
                "ytdSssEmployee": 6.31,
            
        
    
        
        
            
                "ytdPhilhealthEmployee": 8.04,
            
        
    
        
        
            
                "ytdPagibigEmployee": 4.66,
            
        
    
        
        
            
                "ytdBasicPay": 9.43,
            
        
    
        
        
            
                "payslipHash": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "regularDaysWorked": 6.1,
            
        
    
        
        
            
                "absentDays": 5.68,
            
        
    
        
        
            
                "tardinessMinutes": 8,
            
        
    
        
        
            
                "overtimeHours": 9.87,
            
        
    
        
        
            
                "nightDiffHours": 3.46,
            
        
    
        
        
            
                "holidayDaysWorked": 4.31,
            
        
    
        
        
            
                "basicPay": 2.51,
            
        
    
        
        
            
                "overtimePay": 8.72,
            
        
    
        
        
            
                "nightDifferential": 4.95,
            
        
    
        
        
            
                "holidayPay": 0.81,
            
        
    
        
        
            
                "allowances": 9.36,
            
        
    
        
        
            
                "otherEarnings": 7.16,
            
        
    
        
        
            
                "grossPay": 7.22,
            
        
    
        
        
            
                "sssEmployee": 4.85,
            
        
    
        
        
            
                "philhealthEmployee": 5.85,
            
        
    
        
        
            
                "pagibigEmployee": 8.95,
            
        
    
        
        
            
                "withholdingTax": 3.2,
            
        
    
        
        
            
                "sssEmployer": 8.42,
            
        
    
        
        
            
                "philhealthEmployer": 0.53,
            
        
    
        
        
            
                "pagibigEmployer": 8.97,
            
        
    
        
        
            
                "sssLoanDeduction": 8.38,
            
        
    
        
        
            
                "pagibigLoanDeduction": 8.31,
            
        
    
        
        
            
                "companyLoanDeduction": 9.61,
            
        
    
        
        
            
                "otherDeductions": 3.4,
            
        
    
        
        
            
                "totalDeductions": 8.78,
            
        
    
        
        
            
                "netPay": 3.88,
            
        
    
        
        
            
                "ytdGrossPay": 9.22,
            
        
    
        
        
            
                "ytdWithholdingTax": 0.76,
            
        
    
        
        
            
                "ytdSssEmployee": 0.18,
            
        
    
        
        
            
                "ytdPhilhealthEmployee": 7.32,
            
        
    
        
        
            
                "ytdPagibigEmployee": 1.27,
            
        
    
        
        
            
                "ytdBasicPay": 2.96,
            
        
    
        
        
            
                "payslipHash": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "regularDaysWorked": 5.94,
            
        
    
        
        
            
                "absentDays": 6.46,
            
        
    
        
        
            
                "tardinessMinutes": 8,
            
        
    
        
        
            
                "overtimeHours": 3.11,
            
        
    
        
        
            
                "nightDiffHours": 1.82,
            
        
    
        
        
            
                "holidayDaysWorked": 6.51,
            
        
    
        
        
            
                "basicPay": 1.41,
            
        
    
        
        
            
                "overtimePay": 7.16,
            
        
    
        
        
            
                "nightDifferential": 3.81,
            
        
    
        
        
            
                "holidayPay": 3.44,
            
        
    
        
        
            
                "allowances": 1.95,
            
        
    
        
        
            
                "otherEarnings": 5.97,
            
        
    
        
        
            
                "grossPay": 8.47,
            
        
    
        
        
            
                "sssEmployee": 4.55,
            
        
    
        
        
            
                "philhealthEmployee": 7.74,
            
        
    
        
        
            
                "pagibigEmployee": 6.25,
            
        
    
        
        
            
                "withholdingTax": 2.25,
            
        
    
        
        
            
                "sssEmployer": 8.75,
            
        
    
        
        
            
                "philhealthEmployer": 7.63,
            
        
    
        
        
            
                "pagibigEmployer": 9.82,
            
        
    
        
        
            
                "sssLoanDeduction": 8.19,
            
        
    
        
        
            
                "pagibigLoanDeduction": 3.39,
            
        
    
        
        
            
                "companyLoanDeduction": 3.21,
            
        
    
        
        
            
                "otherDeductions": 8.38,
            
        
    
        
        
            
                "totalDeductions": 7.68,
            
        
    
        
        
            
                "netPay": 5.75,
            
        
    
        
        
            
                "ytdGrossPay": 7.07,
            
        
    
        
        
            
                "ytdWithholdingTax": 3.61,
            
        
    
        
        
            
                "ytdSssEmployee": 5.5,
            
        
    
        
        
            
                "ytdPhilhealthEmployee": 4.69,
            
        
    
        
        
            
                "ytdPagibigEmployee": 1.28,
            
        
    
        
        
            
                "ytdBasicPay": 2.96,
            
        
    
        
        
            
                "payslipHash": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "regularDaysWorked": 8.5,
            
        
    
        
        
            
                "absentDays": 3.3,
            
        
    
        
        
            
                "tardinessMinutes": 6,
            
        
    
        
        
            
                "overtimeHours": 5.96,
            
        
    
        
        
            
                "nightDiffHours": 7.47,
            
        
    
        
        
            
                "holidayDaysWorked": 2.81,
            
        
    
        
        
            
                "basicPay": 7.67,
            
        
    
        
        
            
                "overtimePay": 6.55,
            
        
    
        
        
            
                "nightDifferential": 9.65,
            
        
    
        
        
            
                "holidayPay": 3.65,
            
        
    
        
        
            
                "allowances": 3.91,
            
        
    
        
        
            
                "otherEarnings": 4.9,
            
        
    
        
        
            
                "grossPay": 0.33,
            
        
    
        
        
            
                "sssEmployee": 6.5,
            
        
    
        
        
            
                "philhealthEmployee": 9.48,
            
        
    
        
        
            
                "pagibigEmployee": 9.0,
            
        
    
        
        
            
                "withholdingTax": 9.37,
            
        
    
        
        
            
                "sssEmployer": 0.59,
            
        
    
        
        
            
                "philhealthEmployer": 3.9,
            
        
    
        
        
            
                "pagibigEmployer": 7.18,
            
        
    
        
        
            
                "sssLoanDeduction": 4.83,
            
        
    
        
        
            
                "pagibigLoanDeduction": 8.14,
            
        
    
        
        
            
                "companyLoanDeduction": 5.46,
            
        
    
        
        
            
                "otherDeductions": 6.27,
            
        
    
        
        
            
                "totalDeductions": 4.57,
            
        
    
        
        
            
                "netPay": 9.08,
            
        
    
        
        
            
                "ytdGrossPay": 8.16,
            
        
    
        
        
            
                "ytdWithholdingTax": 6.6,
            
        
    
        
        
            
                "ytdSssEmployee": 7.33,
            
        
    
        
        
            
                "ytdPhilhealthEmployee": 6.6,
            
        
    
        
        
            
                "ytdPagibigEmployee": 8.16,
            
        
    
        
        
            
                "ytdBasicPay": 5.91,
            
        
    
        
        
            
                "payslipHash": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const BankFilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bankCode": "UNIONBANK",
            
        
    
        
        
            
                "fileFormat": "CSV",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "totalAmount": 4.47,
            
        
    
        
        
            
                "recordCount": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "generatedAt": new Date(Date.now()),
            
        
    
        
        
            
                "submittedAt": new Date(Date.now()),
            
        
    
        
        
            
                "fileHash": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bankCode": "BDO",
            
        
    
        
        
            
                "fileFormat": "TXT",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "totalAmount": 3.69,
            
        
    
        
        
            
                "recordCount": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "generatedAt": new Date(Date.now()),
            
        
    
        
        
            
                "submittedAt": new Date(Date.now()),
            
        
    
        
        
            
                "fileHash": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bankCode": "BPI",
            
        
    
        
        
            
                "fileFormat": "CSV",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "totalAmount": 7.42,
            
        
    
        
        
            
                "recordCount": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "generatedAt": new Date(Date.now()),
            
        
    
        
        
            
                "submittedAt": new Date(Date.now()),
            
        
    
        
        
            
                "fileHash": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bankCode": "BDO",
            
        
    
        
        
            
                "fileFormat": "CSV",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "totalAmount": 1.08,
            
        
    
        
        
            
                "recordCount": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "generatedAt": new Date(Date.now()),
            
        
    
        
        
            
                "submittedAt": new Date(Date.now()),
            
        
    
        
        
            
                "fileHash": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bankCode": "BPI",
            
        
    
        
        
            
                "fileFormat": "CSV",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "totalAmount": 1.57,
            
        
    
        
        
            
                "recordCount": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "generatedAt": new Date(Date.now()),
            
        
    
        
        
            
                "submittedAt": new Date(Date.now()),
            
        
    
        
        
            
                "fileHash": "Ada Lovelace",
            
        
    
    },
    
];



const AccountsData = [
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "accountType": "EQUITY",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isHeader": true,
            
        
    
        
        
            
                "normalBalance": "DEBIT",
            
        
    
        
        
            
                "isActive": false,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "accountType": "OTHER_EXPENSE",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isHeader": true,
            
        
    
        
        
            
                "normalBalance": "CREDIT",
            
        
    
        
        
            
                "isActive": true,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "accountType": "OTHER_INCOME",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isHeader": false,
            
        
    
        
        
            
                "normalBalance": "CREDIT",
            
        
    
        
        
            
                "isActive": true,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "accountType": "COST_OF_SALES",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isHeader": false,
            
        
    
        
        
            
                "normalBalance": "CREDIT",
            
        
    
        
        
            
                "isActive": false,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "accountType": "REVENUE",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "isHeader": true,
            
        
    
        
        
            
                "normalBalance": "DEBIT",
            
        
    
        
        
            
                "isActive": true,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
];



const JournalEntriesData = [
    
    {
    
        
        
            
                "entryNumber": "Ada Lovelace",
            
        
    
        
        
            
                "entryDate": new Date(Date.now()),
            
        
    
        
        
            
                "journalType": "JV_AP",
            
        
    
        
        
            
                "status": "POSTED",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "entryNumber": "Marie Curie",
            
        
    
        
        
            
                "entryDate": new Date(Date.now()),
            
        
    
        
        
            
                "journalType": "JV_AP",
            
        
    
        
        
            
                "status": "REVERSED",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "entryNumber": "Marie Curie",
            
        
    
        
        
            
                "entryDate": new Date(Date.now()),
            
        
    
        
        
            
                "journalType": "JV_AR",
            
        
    
        
        
            
                "status": "DRAFT",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "reference": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "entryNumber": "Marie Curie",
            
        
    
        
        
            
                "entryDate": new Date(Date.now()),
            
        
    
        
        
            
                "journalType": "JV_AP",
            
        
    
        
        
            
                "status": "POSTED",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "entryNumber": "Alan Turing",
            
        
    
        
        
            
                "entryDate": new Date(Date.now()),
            
        
    
        
        
            
                "journalType": "JV_AR",
            
        
    
        
        
            
                "status": "REVERSED",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "postedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const JournalLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "debit": 3.44,
            
        
    
        
        
            
                "credit": 5.45,
            
        
    
        
        
            
                "lineOrder": 4,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "debit": 8.25,
            
        
    
        
        
            
                "credit": 7.37,
            
        
    
        
        
            
                "lineOrder": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "debit": 9.01,
            
        
    
        
        
            
                "credit": 5.28,
            
        
    
        
        
            
                "lineOrder": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "debit": 9.51,
            
        
    
        
        
            
                "credit": 7.7,
            
        
    
        
        
            
                "lineOrder": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "debit": 7.49,
            
        
    
        
        
            
                "credit": 6.01,
            
        
    
        
        
            
                "lineOrder": 4,
            
        
    
    },
    
];



const VendorsData = [
    
    {
    
        
        
            
                "vendorCode": "Marie Curie",
            
        
    
        
        
            
                "vendorName": "Ada Lovelace",
            
        
    
        
        
            
                "vendorType": "SERVICE_PROVIDER",
            
        
    
        
        
            
                "taxClassification": "GOVERNMENT",
            
        
    
        
        
            
                "tinNumber": "Alan Turing",
            
        
    
        
        
            
                "birRegAddress": "Ada Lovelace",
            
        
    
        
        
            
                "contactPerson": "Grace Hopper",
            
        
    
        
        
            
                "contactNumber": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "paymentTermsDays": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wtaxAtcCode": "Ada Lovelace",
            
        
    
        
        
            
                "wtaxRate": 2.98,
            
        
    
        
        
            
                "bankName": "Alan Turing",
            
        
    
        
        
            
                "bankAccountNumber": "Marie Curie",
            
        
    
        
        
            
                "bankAccountName": "Ada Lovelace",
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "vendorCode": "Grace Hopper",
            
        
    
        
        
            
                "vendorName": "Marie Curie",
            
        
    
        
        
            
                "vendorType": "SUPPLIER",
            
        
    
        
        
            
                "taxClassification": "VAT_REGISTERED",
            
        
    
        
        
            
                "tinNumber": "Alan Turing",
            
        
    
        
        
            
                "birRegAddress": "Alan Turing",
            
        
    
        
        
            
                "contactPerson": "Alan Turing",
            
        
    
        
        
            
                "contactNumber": "Marie Curie",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "paymentTermsDays": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wtaxAtcCode": "Alan Turing",
            
        
    
        
        
            
                "wtaxRate": 9.05,
            
        
    
        
        
            
                "bankName": "Grace Hopper",
            
        
    
        
        
            
                "bankAccountNumber": "Ada Lovelace",
            
        
    
        
        
            
                "bankAccountName": "Ada Lovelace",
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "vendorCode": "Marie Curie",
            
        
    
        
        
            
                "vendorName": "Marie Curie",
            
        
    
        
        
            
                "vendorType": "CONTRACTOR",
            
        
    
        
        
            
                "taxClassification": "VAT_REGISTERED",
            
        
    
        
        
            
                "tinNumber": "Grace Hopper",
            
        
    
        
        
            
                "birRegAddress": "Alan Turing",
            
        
    
        
        
            
                "contactPerson": "Grace Hopper",
            
        
    
        
        
            
                "contactNumber": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "paymentTermsDays": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wtaxAtcCode": "Alan Turing",
            
        
    
        
        
            
                "wtaxRate": 2.54,
            
        
    
        
        
            
                "bankName": "Grace Hopper",
            
        
    
        
        
            
                "bankAccountNumber": "Ada Lovelace",
            
        
    
        
        
            
                "bankAccountName": "Marie Curie",
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "vendorCode": "Alan Turing",
            
        
    
        
        
            
                "vendorName": "Ada Lovelace",
            
        
    
        
        
            
                "vendorType": "SUPPLIER",
            
        
    
        
        
            
                "taxClassification": "NON_VAT",
            
        
    
        
        
            
                "tinNumber": "Alan Turing",
            
        
    
        
        
            
                "birRegAddress": "Alan Turing",
            
        
    
        
        
            
                "contactPerson": "Alan Turing",
            
        
    
        
        
            
                "contactNumber": "Alan Turing",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "paymentTermsDays": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wtaxAtcCode": "Alan Turing",
            
        
    
        
        
            
                "wtaxRate": 2.51,
            
        
    
        
        
            
                "bankName": "Grace Hopper",
            
        
    
        
        
            
                "bankAccountNumber": "Ada Lovelace",
            
        
    
        
        
            
                "bankAccountName": "Alan Turing",
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "vendorCode": "Ada Lovelace",
            
        
    
        
        
            
                "vendorName": "Ada Lovelace",
            
        
    
        
        
            
                "vendorType": "GOVERNMENT",
            
        
    
        
        
            
                "taxClassification": "NON_VAT",
            
        
    
        
        
            
                "tinNumber": "Grace Hopper",
            
        
    
        
        
            
                "birRegAddress": "Marie Curie",
            
        
    
        
        
            
                "contactPerson": "Grace Hopper",
            
        
    
        
        
            
                "contactNumber": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "paymentTermsDays": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "wtaxAtcCode": "Marie Curie",
            
        
    
        
        
            
                "wtaxRate": 2.21,
            
        
    
        
        
            
                "bankName": "Marie Curie",
            
        
    
        
        
            
                "bankAccountNumber": "Alan Turing",
            
        
    
        
        
            
                "bankAccountName": "Marie Curie",
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
];



const ApInvoicesData = [
    
    {
    
        
        
            
                "invoiceNumber": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "vendorInvoiceNumber": "Ada Lovelace",
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "receiptDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "grossAmount": 3.42,
            
        
    
        
        
            
                "vatAmount": 9.02,
            
        
    
        
        
            
                "ewtAmount": 0.36,
            
        
    
        
        
            
                "netPayable": 3.73,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "FULLY_PAID",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "vendorInvoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "receiptDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "grossAmount": 3.41,
            
        
    
        
        
            
                "vatAmount": 6.16,
            
        
    
        
        
            
                "ewtAmount": 6.41,
            
        
    
        
        
            
                "netPayable": 9.12,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "UNPOSTED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "vendorInvoiceNumber": "Ada Lovelace",
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "receiptDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "grossAmount": 5.21,
            
        
    
        
        
            
                "vatAmount": 4.91,
            
        
    
        
        
            
                "ewtAmount": 4.25,
            
        
    
        
        
            
                "netPayable": 7.02,
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "FULLY_PAID",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "vendorInvoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "receiptDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "grossAmount": 2.34,
            
        
    
        
        
            
                "vatAmount": 5.6,
            
        
    
        
        
            
                "ewtAmount": 0.3,
            
        
    
        
        
            
                "netPayable": 5.71,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "FULLY_PAID",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "vendorInvoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "receiptDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "grossAmount": 2.05,
            
        
    
        
        
            
                "vatAmount": 7.92,
            
        
    
        
        
            
                "ewtAmount": 0.83,
            
        
    
        
        
            
                "netPayable": 6.49,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "PARTIALLY_PAID",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApPaymentsData = [
    
    {
    
        
        
            
                "paymentDate": new Date(Date.now()),
            
        
    
        
        
            
                "paymentMode": "CASH",
            
        
    
        
        
            
                "checkNumber": "Ada Lovelace",
            
        
    
        
        
            
                "bankName": "Marie Curie",
            
        
    
        
        
            
                "totalAmount": 1.55,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "paymentDate": new Date(Date.now()),
            
        
    
        
        
            
                "paymentMode": "CHECK",
            
        
    
        
        
            
                "checkNumber": "Marie Curie",
            
        
    
        
        
            
                "bankName": "Ada Lovelace",
            
        
    
        
        
            
                "totalAmount": 7.34,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "paymentDate": new Date(Date.now()),
            
        
    
        
        
            
                "paymentMode": "BANK_TRANSFER",
            
        
    
        
        
            
                "checkNumber": "Ada Lovelace",
            
        
    
        
        
            
                "bankName": "Ada Lovelace",
            
        
    
        
        
            
                "totalAmount": 8.61,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "paymentDate": new Date(Date.now()),
            
        
    
        
        
            
                "paymentMode": "CHECK",
            
        
    
        
        
            
                "checkNumber": "Grace Hopper",
            
        
    
        
        
            
                "bankName": "Marie Curie",
            
        
    
        
        
            
                "totalAmount": 5.95,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "paymentDate": new Date(Date.now()),
            
        
    
        
        
            
                "paymentMode": "BANK_TRANSFER",
            
        
    
        
        
            
                "checkNumber": "Marie Curie",
            
        
    
        
        
            
                "bankName": "Marie Curie",
            
        
    
        
        
            
                "totalAmount": 4.32,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const ApPaymentLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountPaid": 5.64,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountPaid": 2.58,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountPaid": 3.49,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountPaid": 4.76,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amountPaid": 9.6,
            
        
    
    },
    
];



const CustomersData = [
    
    {
    
        
        
            
                "customerCode": "Marie Curie",
            
        
    
        
        
            
                "customerName": "Marie Curie",
            
        
    
        
        
            
                "customerType": "Marie Curie",
            
        
    
        
        
            
                "tinNumber": "Alan Turing",
            
        
    
        
        
            
                "creditLimit": 6.91,
            
        
    
        
        
            
                "paymentTerms": 4,
            
        
    
        
        
            
                "contactPerson": "Alan Turing",
            
        
    
        
        
            
                "billingAddress": "Marie Curie",
            
        
    
        
        
            
                "onCreditHold": false,
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "customerCode": "Marie Curie",
            
        
    
        
        
            
                "customerName": "Marie Curie",
            
        
    
        
        
            
                "customerType": "Marie Curie",
            
        
    
        
        
            
                "tinNumber": "Ada Lovelace",
            
        
    
        
        
            
                "creditLimit": 0.12,
            
        
    
        
        
            
                "paymentTerms": 6,
            
        
    
        
        
            
                "contactPerson": "Ada Lovelace",
            
        
    
        
        
            
                "billingAddress": "Alan Turing",
            
        
    
        
        
            
                "onCreditHold": true,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
    {
    
        
        
            
                "customerCode": "Alan Turing",
            
        
    
        
        
            
                "customerName": "Alan Turing",
            
        
    
        
        
            
                "customerType": "Ada Lovelace",
            
        
    
        
        
            
                "tinNumber": "Grace Hopper",
            
        
    
        
        
            
                "creditLimit": 6.3,
            
        
    
        
        
            
                "paymentTerms": 6,
            
        
    
        
        
            
                "contactPerson": "Ada Lovelace",
            
        
    
        
        
            
                "billingAddress": "Marie Curie",
            
        
    
        
        
            
                "onCreditHold": false,
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "customerCode": "Alan Turing",
            
        
    
        
        
            
                "customerName": "Marie Curie",
            
        
    
        
        
            
                "customerType": "Marie Curie",
            
        
    
        
        
            
                "tinNumber": "Marie Curie",
            
        
    
        
        
            
                "creditLimit": 9.28,
            
        
    
        
        
            
                "paymentTerms": 3,
            
        
    
        
        
            
                "contactPerson": "Alan Turing",
            
        
    
        
        
            
                "billingAddress": "Alan Turing",
            
        
    
        
        
            
                "onCreditHold": true,
            
        
    
        
        
            
                "isActive": true,
            
        
    
    },
    
    {
    
        
        
            
                "customerCode": "Grace Hopper",
            
        
    
        
        
            
                "customerName": "Grace Hopper",
            
        
    
        
        
            
                "customerType": "Marie Curie",
            
        
    
        
        
            
                "tinNumber": "Grace Hopper",
            
        
    
        
        
            
                "creditLimit": 2.09,
            
        
    
        
        
            
                "paymentTerms": 6,
            
        
    
        
        
            
                "contactPerson": "Marie Curie",
            
        
    
        
        
            
                "billingAddress": "Alan Turing",
            
        
    
        
        
            
                "onCreditHold": false,
            
        
    
        
        
            
                "isActive": false,
            
        
    
    },
    
];



const ArInvoicesData = [
    
    {
    
        
        
            
                "invoiceNumber": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal": 5.21,
            
        
    
        
        
            
                "vatAmount": 7.78,
            
        
    
        
        
            
                "totalAmountDue": 5.52,
            
        
    
        
        
            
                "collectedAmount": 5.88,
            
        
    
        
        
            
                "outstandingBalance": 7.75,
            
        
    
        
        
            
                "status": "WRITTEN_OFF",
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal": 5.99,
            
        
    
        
        
            
                "vatAmount": 0.4,
            
        
    
        
        
            
                "totalAmountDue": 4.42,
            
        
    
        
        
            
                "collectedAmount": 2.24,
            
        
    
        
        
            
                "outstandingBalance": 2.73,
            
        
    
        
        
            
                "status": "OPEN",
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal": 2.69,
            
        
    
        
        
            
                "vatAmount": 5.41,
            
        
    
        
        
            
                "totalAmountDue": 2.39,
            
        
    
        
        
            
                "collectedAmount": 3.71,
            
        
    
        
        
            
                "outstandingBalance": 3.68,
            
        
    
        
        
            
                "status": "OVERDUE",
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal": 9.4,
            
        
    
        
        
            
                "vatAmount": 7.01,
            
        
    
        
        
            
                "totalAmountDue": 9.87,
            
        
    
        
        
            
                "collectedAmount": 6.05,
            
        
    
        
        
            
                "outstandingBalance": 5.27,
            
        
    
        
        
            
                "status": "WRITTEN_OFF",
            
        
    
    },
    
    {
    
        
        
            
                "invoiceNumber": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoiceDate": new Date(Date.now()),
            
        
    
        
        
            
                "dueDate": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal": 3.81,
            
        
    
        
        
            
                "vatAmount": 1.08,
            
        
    
        
        
            
                "totalAmountDue": 9.53,
            
        
    
        
        
            
                "collectedAmount": 4.06,
            
        
    
        
        
            
                "outstandingBalance": 2.23,
            
        
    
        
        
            
                "status": "OPEN",
            
        
    
    },
    
];



const ArInvoiceItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "quantity": 5.11,
            
        
    
        
        
            
                "unitPrice": 0.63,
            
        
    
        
        
            
                "lineTotal": 3.84,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "quantity": 4.19,
            
        
    
        
        
            
                "unitPrice": 7.66,
            
        
    
        
        
            
                "lineTotal": 6.97,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "quantity": 1.19,
            
        
    
        
        
            
                "unitPrice": 0.42,
            
        
    
        
        
            
                "lineTotal": 7.42,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "quantity": 6.21,
            
        
    
        
        
            
                "unitPrice": 2.62,
            
        
    
        
        
            
                "lineTotal": 1.1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "quantity": 9.53,
            
        
    
        
        
            
                "unitPrice": 2.43,
            
        
    
        
        
            
                "lineTotal": 0.41,
            
        
    
    },
    
];



const JobRequisitionsData = [
    
    {
    
        
        
            
                "requestingDept": "Grace Hopper",
            
        
    
        
        
            
                "positionTitle": "Alan Turing",
            
        
    
        
        
            
                "numberOfVacancies": 3,
            
        
    
        
        
            
                "justification": "Marie Curie",
            
        
    
        
        
            
                "requiredSkills": "Alan Turing",
            
        
    
        
        
            
                "salaryRangeFrom": 6.53,
            
        
    
        
        
            
                "salaryRangeTo": 8.43,
            
        
    
        
        
            
                "targetStartDate": new Date(Date.now()),
            
        
    
        
        
            
                "status": "POSTED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "requestingDept": "Marie Curie",
            
        
    
        
        
            
                "positionTitle": "Alan Turing",
            
        
    
        
        
            
                "numberOfVacancies": 6,
            
        
    
        
        
            
                "justification": "Marie Curie",
            
        
    
        
        
            
                "requiredSkills": "Alan Turing",
            
        
    
        
        
            
                "salaryRangeFrom": 9.52,
            
        
    
        
        
            
                "salaryRangeTo": 8.92,
            
        
    
        
        
            
                "targetStartDate": new Date(Date.now()),
            
        
    
        
        
            
                "status": "SCREENING",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "requestingDept": "Marie Curie",
            
        
    
        
        
            
                "positionTitle": "Alan Turing",
            
        
    
        
        
            
                "numberOfVacancies": 9,
            
        
    
        
        
            
                "justification": "Grace Hopper",
            
        
    
        
        
            
                "requiredSkills": "Marie Curie",
            
        
    
        
        
            
                "salaryRangeFrom": 8.76,
            
        
    
        
        
            
                "salaryRangeTo": 2.44,
            
        
    
        
        
            
                "targetStartDate": new Date(Date.now()),
            
        
    
        
        
            
                "status": "JOB_REQUEST",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "requestingDept": "Grace Hopper",
            
        
    
        
        
            
                "positionTitle": "Marie Curie",
            
        
    
        
        
            
                "numberOfVacancies": 2,
            
        
    
        
        
            
                "justification": "Marie Curie",
            
        
    
        
        
            
                "requiredSkills": "Alan Turing",
            
        
    
        
        
            
                "salaryRangeFrom": 0.67,
            
        
    
        
        
            
                "salaryRangeTo": 8.6,
            
        
    
        
        
            
                "targetStartDate": new Date(Date.now()),
            
        
    
        
        
            
                "status": "ONBOARDING",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "requestingDept": "Alan Turing",
            
        
    
        
        
            
                "positionTitle": "Ada Lovelace",
            
        
    
        
        
            
                "numberOfVacancies": 2,
            
        
    
        
        
            
                "justification": "Ada Lovelace",
            
        
    
        
        
            
                "requiredSkills": "Grace Hopper",
            
        
    
        
        
            
                "salaryRangeFrom": 7.18,
            
        
    
        
        
            
                "salaryRangeTo": 5.61,
            
        
    
        
        
            
                "targetStartDate": new Date(Date.now()),
            
        
    
        
        
            
                "status": "APPLICATIONS",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApplicantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "applicationDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstName": "Ada Lovelace",
            
        
    
        
        
            
                "lastName": "Grace Hopper",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "mobile": "Alan Turing",
            
        
    
        
        
            
                "source": "WALK_IN",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "interviewSchedule": new Date(Date.now()),
            
        
    
        
        
            
                "interviewResult": "FAIL",
            
        
    
        
        
            
                "psychTestResult": "Grace Hopper",
            
        
    
        
        
            
                "medicalResult": "Ada Lovelace",
            
        
    
        
        
            
                "backgroundCheck": "Grace Hopper",
            
        
    
        
        
            
                "jobOfferStatus": "PENDING",
            
        
    
        
        
            
                "expectedStartDate": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "applicationDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstName": "Marie Curie",
            
        
    
        
        
            
                "lastName": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "mobile": "Grace Hopper",
            
        
    
        
        
            
                "source": "WALK_IN",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "interviewSchedule": new Date(Date.now()),
            
        
    
        
        
            
                "interviewResult": "FAIL",
            
        
    
        
        
            
                "psychTestResult": "Alan Turing",
            
        
    
        
        
            
                "medicalResult": "Grace Hopper",
            
        
    
        
        
            
                "backgroundCheck": "Ada Lovelace",
            
        
    
        
        
            
                "jobOfferStatus": "PENDING",
            
        
    
        
        
            
                "expectedStartDate": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "applicationDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstName": "Ada Lovelace",
            
        
    
        
        
            
                "lastName": "Marie Curie",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "mobile": "Marie Curie",
            
        
    
        
        
            
                "source": "WALK_IN",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "interviewSchedule": new Date(Date.now()),
            
        
    
        
        
            
                "interviewResult": "PENDING",
            
        
    
        
        
            
                "psychTestResult": "Ada Lovelace",
            
        
    
        
        
            
                "medicalResult": "Ada Lovelace",
            
        
    
        
        
            
                "backgroundCheck": "Grace Hopper",
            
        
    
        
        
            
                "jobOfferStatus": "DECLINED",
            
        
    
        
        
            
                "expectedStartDate": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "applicationDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstName": "Grace Hopper",
            
        
    
        
        
            
                "lastName": "Grace Hopper",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "mobile": "Ada Lovelace",
            
        
    
        
        
            
                "source": "JOB_BOARD",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "interviewSchedule": new Date(Date.now()),
            
        
    
        
        
            
                "interviewResult": "SECOND_INTERVIEW",
            
        
    
        
        
            
                "psychTestResult": "Grace Hopper",
            
        
    
        
        
            
                "medicalResult": "Alan Turing",
            
        
    
        
        
            
                "backgroundCheck": "Ada Lovelace",
            
        
    
        
        
            
                "jobOfferStatus": "PENDING",
            
        
    
        
        
            
                "expectedStartDate": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "applicationDate": new Date(Date.now()),
            
        
    
        
        
            
                "firstName": "Grace Hopper",
            
        
    
        
        
            
                "lastName": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "mobile": "Marie Curie",
            
        
    
        
        
            
                "source": "REFERRAL",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "interviewSchedule": new Date(Date.now()),
            
        
    
        
        
            
                "interviewResult": "FAIL",
            
        
    
        
        
            
                "psychTestResult": "Alan Turing",
            
        
    
        
        
            
                "medicalResult": "Ada Lovelace",
            
        
    
        
        
            
                "backgroundCheck": "Marie Curie",
            
        
    
        
        
            
                "jobOfferStatus": "DECLINED",
            
        
    
        
        
            
                "expectedStartDate": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApprovalRequestsData = [
    
    {
    
        
        
            
                "requestType": "AP_PAYMENT",
            
        
    
        
        
            
                "entityId": "Alan Turing",
            
        
    
        
        
            
                "entityType": "Ada Lovelace",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requestedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rejectedAt": new Date(Date.now()),
            
        
    
        
        
            
                "rejectionReason": "Marie Curie",
            
        
    
        
        
            
                "amount": 2.7,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "requestType": "AP_PAYMENT",
            
        
    
        
        
            
                "entityId": "Alan Turing",
            
        
    
        
        
            
                "entityType": "Ada Lovelace",
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requestedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rejectedAt": new Date(Date.now()),
            
        
    
        
        
            
                "rejectionReason": "Grace Hopper",
            
        
    
        
        
            
                "amount": 6.78,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "requestType": "JOURNAL_ENTRY",
            
        
    
        
        
            
                "entityId": "Alan Turing",
            
        
    
        
        
            
                "entityType": "Alan Turing",
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requestedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rejectedAt": new Date(Date.now()),
            
        
    
        
        
            
                "rejectionReason": "Marie Curie",
            
        
    
        
        
            
                "amount": 1.98,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "requestType": "PAYROLL_POST",
            
        
    
        
        
            
                "entityId": "Marie Curie",
            
        
    
        
        
            
                "entityType": "Marie Curie",
            
        
    
        
        
            
                "status": "PENDING",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requestedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rejectedAt": new Date(Date.now()),
            
        
    
        
        
            
                "rejectionReason": "Alan Turing",
            
        
    
        
        
            
                "amount": 7.93,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "requestType": "LOAN_APPROVAL",
            
        
    
        
        
            
                "entityId": "Ada Lovelace",
            
        
    
        
        
            
                "entityType": "Alan Turing",
            
        
    
        
        
            
                "status": "PENDING",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requestedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rejectedAt": new Date(Date.now()),
            
        
    
        
        
            
                "rejectionReason": "Marie Curie",
            
        
    
        
        
            
                "amount": 6.52,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "PAYSLIP_READY",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "link": "Grace Hopper",
            
        
    
        
        
            
                "isRead": true,
            
        
    
        
        
            
                "readAt": new Date(Date.now()),
            
        
    
        
        
            
                "sentAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEAVE_REJECTED",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "link": "Ada Lovelace",
            
        
    
        
        
            
                "isRead": false,
            
        
    
        
        
            
                "readAt": new Date(Date.now()),
            
        
    
        
        
            
                "sentAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEAVE_APPROVED",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "link": "Alan Turing",
            
        
    
        
        
            
                "isRead": true,
            
        
    
        
        
            
                "readAt": new Date(Date.now()),
            
        
    
        
        
            
                "sentAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "AP_OVERDUE",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "link": "Ada Lovelace",
            
        
    
        
        
            
                "isRead": true,
            
        
    
        
        
            
                "readAt": new Date(Date.now()),
            
        
    
        
        
            
                "sentAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEAVE_REJECTED",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "link": "Alan Turing",
            
        
    
        
        
            
                "isRead": false,
            
        
    
        
        
            
                "readAt": new Date(Date.now()),
            
        
    
        
        
            
                "sentAt": new Date(Date.now()),
            
        
    
    },
    
];



const ExportRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "exportType": "Grace Hopper",
            
        
    
        
        
            
                "filtersJson": "Grace Hopper",
            
        
    
        
        
            
                "recordCount": 5,
            
        
    
        
        
            
                "status": "EXPIRED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "exportType": "Marie Curie",
            
        
    
        
        
            
                "filtersJson": "Grace Hopper",
            
        
    
        
        
            
                "recordCount": 1,
            
        
    
        
        
            
                "status": "PENDING",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "exportType": "Grace Hopper",
            
        
    
        
        
            
                "filtersJson": "Ada Lovelace",
            
        
    
        
        
            
                "recordCount": 5,
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "exportType": "Marie Curie",
            
        
    
        
        
            
                "filtersJson": "Marie Curie",
            
        
    
        
        
            
                "recordCount": 3,
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "exportType": "Grace Hopper",
            
        
    
        
        
            
                "filtersJson": "Ada Lovelace",
            
        
    
        
        
            
                "recordCount": 3,
            
        
    
        
        
            
                "status": "PENDING",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "approvedAt": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
    },
    
];



const PasswordHistoriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "passwordHash": "Marie Curie",
            
        
    
        
        
            
                "recordedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "passwordHash": "Ada Lovelace",
            
        
    
        
        
            
                "recordedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "passwordHash": "Marie Curie",
            
        
    
        
        
            
                "recordedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "passwordHash": "Ada Lovelace",
            
        
    
        
        
            
                "recordedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "passwordHash": "Grace Hopper",
            
        
    
        
        
            
                "recordedAt": new Date(Date.now()),
            
        
    
    },
    
];



const RefreshTokensData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tokenHash": "Ada Lovelace",
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
        
        
            
                "isRevoked": true,
            
        
    
        
        
            
                "ipAddress": "Marie Curie",
            
        
    
        
        
            
                "userAgent": "Marie Curie",
            
        
    
        
        
            
                "issuedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tokenHash": "Grace Hopper",
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
        
        
            
                "isRevoked": false,
            
        
    
        
        
            
                "ipAddress": "Grace Hopper",
            
        
    
        
        
            
                "userAgent": "Marie Curie",
            
        
    
        
        
            
                "issuedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tokenHash": "Grace Hopper",
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
        
        
            
                "isRevoked": true,
            
        
    
        
        
            
                "ipAddress": "Ada Lovelace",
            
        
    
        
        
            
                "userAgent": "Marie Curie",
            
        
    
        
        
            
                "issuedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tokenHash": "Ada Lovelace",
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
        
        
            
                "isRevoked": true,
            
        
    
        
        
            
                "ipAddress": "Grace Hopper",
            
        
    
        
        
            
                "userAgent": "Marie Curie",
            
        
    
        
        
            
                "issuedAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tokenHash": "Marie Curie",
            
        
    
        
        
            
                "expiresAt": new Date(Date.now()),
            
        
    
        
        
            
                "isRevoked": false,
            
        
    
        
        
            
                "ipAddress": "Marie Curie",
            
        
    
        
        
            
                "userAgent": "Ada Lovelace",
            
        
    
        
        
            
                "issuedAt": new Date(Date.now()),
            
        
    
    },
    
];



const AuditLogsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "APPROVE",
            
        
    
        
        
            
                "module": "Alan Turing",
            
        
    
        
        
            
                "entityId": "Marie Curie",
            
        
    
        
        
            
                "entityType": "Ada Lovelace",
            
        
    
        
        
            
                "oldValueJson": "Alan Turing",
            
        
    
        
        
            
                "newValueJson": "Grace Hopper",
            
        
    
        
        
            
                "ipAddress": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "eventAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "DELETE",
            
        
    
        
        
            
                "module": "Grace Hopper",
            
        
    
        
        
            
                "entityId": "Alan Turing",
            
        
    
        
        
            
                "entityType": "Grace Hopper",
            
        
    
        
        
            
                "oldValueJson": "Ada Lovelace",
            
        
    
        
        
            
                "newValueJson": "Ada Lovelace",
            
        
    
        
        
            
                "ipAddress": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "eventAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "LOGIN_FAILED",
            
        
    
        
        
            
                "module": "Grace Hopper",
            
        
    
        
        
            
                "entityId": "Ada Lovelace",
            
        
    
        
        
            
                "entityType": "Grace Hopper",
            
        
    
        
        
            
                "oldValueJson": "Alan Turing",
            
        
    
        
        
            
                "newValueJson": "Alan Turing",
            
        
    
        
        
            
                "ipAddress": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "eventAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "DELETE",
            
        
    
        
        
            
                "module": "Marie Curie",
            
        
    
        
        
            
                "entityId": "Alan Turing",
            
        
    
        
        
            
                "entityType": "Ada Lovelace",
            
        
    
        
        
            
                "oldValueJson": "Marie Curie",
            
        
    
        
        
            
                "newValueJson": "Ada Lovelace",
            
        
    
        
        
            
                "ipAddress": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "eventAt": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "POST",
            
        
    
        
        
            
                "module": "Marie Curie",
            
        
    
        
        
            
                "entityId": "Ada Lovelace",
            
        
    
        
        
            
                "entityType": "Marie Curie",
            
        
    
        
        
            
                "oldValueJson": "Ada Lovelace",
            
        
    
        
        
            
                "newValueJson": "Marie Curie",
            
        
    
        
        
            
                "ipAddress": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "eventAt": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateSystemParameterWithLastupdatedbyuser() {
            
                const relatedLastupdatedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SystemParameter0 = await SystemParameters.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SystemParameter0?.setLastupdatedbyuser)
                {
                    await
                    SystemParameter0.
                    setLastupdatedbyuser(relatedLastupdatedbyuser0);
                }
            
                const relatedLastupdatedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SystemParameter1 = await SystemParameters.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SystemParameter1?.setLastupdatedbyuser)
                {
                    await
                    SystemParameter1.
                    setLastupdatedbyuser(relatedLastupdatedbyuser1);
                }
            
                const relatedLastupdatedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SystemParameter2 = await SystemParameters.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SystemParameter2?.setLastupdatedbyuser)
                {
                    await
                    SystemParameter2.
                    setLastupdatedbyuser(relatedLastupdatedbyuser2);
                }
            
                const relatedLastupdatedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SystemParameter3 = await SystemParameters.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SystemParameter3?.setLastupdatedbyuser)
                {
                    await
                    SystemParameter3.
                    setLastupdatedbyuser(relatedLastupdatedbyuser3);
                }
            
                const relatedLastupdatedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SystemParameter4 = await SystemParameters.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SystemParameter4?.setLastupdatedbyuser)
                {
                    await
                    SystemParameter4.
                    setLastupdatedbyuser(relatedLastupdatedbyuser4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFiscalPeriodWithClosedbyuser() {
            
                const relatedClosedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod0 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FiscalPeriod0?.setClosedbyuser)
                {
                    await
                    FiscalPeriod0.
                    setClosedbyuser(relatedClosedbyuser0);
                }
            
                const relatedClosedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod1 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FiscalPeriod1?.setClosedbyuser)
                {
                    await
                    FiscalPeriod1.
                    setClosedbyuser(relatedClosedbyuser1);
                }
            
                const relatedClosedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod2 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FiscalPeriod2?.setClosedbyuser)
                {
                    await
                    FiscalPeriod2.
                    setClosedbyuser(relatedClosedbyuser2);
                }
            
                const relatedClosedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod3 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FiscalPeriod3?.setClosedbyuser)
                {
                    await
                    FiscalPeriod3.
                    setClosedbyuser(relatedClosedbyuser3);
                }
            
                const relatedClosedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod4 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FiscalPeriod4?.setClosedbyuser)
                {
                    await
                    FiscalPeriod4.
                    setClosedbyuser(relatedClosedbyuser4);
                }
            
        }
        
    
        
    
        
            
            async function associateFiscalPeriodWithLockedbyuser() {
            
                const relatedLockedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod0 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FiscalPeriod0?.setLockedbyuser)
                {
                    await
                    FiscalPeriod0.
                    setLockedbyuser(relatedLockedbyuser0);
                }
            
                const relatedLockedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod1 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FiscalPeriod1?.setLockedbyuser)
                {
                    await
                    FiscalPeriod1.
                    setLockedbyuser(relatedLockedbyuser1);
                }
            
                const relatedLockedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod2 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FiscalPeriod2?.setLockedbyuser)
                {
                    await
                    FiscalPeriod2.
                    setLockedbyuser(relatedLockedbyuser2);
                }
            
                const relatedLockedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod3 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FiscalPeriod3?.setLockedbyuser)
                {
                    await
                    FiscalPeriod3.
                    setLockedbyuser(relatedLockedbyuser3);
                }
            
                const relatedLockedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FiscalPeriod4 = await FiscalPeriods.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FiscalPeriod4?.setLockedbyuser)
                {
                    await
                    FiscalPeriod4.
                    setLockedbyuser(relatedLockedbyuser4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            
            async function associateDepartmentWithCostcenter() {
            
                const relatedCostcenter0 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const Department0 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Department0?.setCostcenter)
                {
                    await
                    Department0.
                    setCostcenter(relatedCostcenter0);
                }
            
                const relatedCostcenter1 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const Department1 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Department1?.setCostcenter)
                {
                    await
                    Department1.
                    setCostcenter(relatedCostcenter1);
                }
            
                const relatedCostcenter2 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const Department2 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Department2?.setCostcenter)
                {
                    await
                    Department2.
                    setCostcenter(relatedCostcenter2);
                }
            
                const relatedCostcenter3 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const Department3 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Department3?.setCostcenter)
                {
                    await
                    Department3.
                    setCostcenter(relatedCostcenter3);
                }
            
                const relatedCostcenter4 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const Department4 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Department4?.setCostcenter)
                {
                    await
                    Department4.
                    setCostcenter(relatedCostcenter4);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateEmployeeWithDepartment() {
            
                const relatedDepartment0 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Employee0 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Employee0?.setDepartment)
                {
                    await
                    Employee0.
                    setDepartment(relatedDepartment0);
                }
            
                const relatedDepartment1 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Employee1 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Employee1?.setDepartment)
                {
                    await
                    Employee1.
                    setDepartment(relatedDepartment1);
                }
            
                const relatedDepartment2 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Employee2 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Employee2?.setDepartment)
                {
                    await
                    Employee2.
                    setDepartment(relatedDepartment2);
                }
            
                const relatedDepartment3 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Employee3 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Employee3?.setDepartment)
                {
                    await
                    Employee3.
                    setDepartment(relatedDepartment3);
                }
            
                const relatedDepartment4 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Employee4 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Employee4?.setDepartment)
                {
                    await
                    Employee4.
                    setDepartment(relatedDepartment4);
                }
            
        }
        
    
        
            
            async function associateEmployeeWithPosition() {
            
                const relatedPosition0 = await Positions.findOne({
                    offset: Math.floor(Math.random() * (await Positions.count())),
                });
                const Employee0 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Employee0?.setPosition)
                {
                    await
                    Employee0.
                    setPosition(relatedPosition0);
                }
            
                const relatedPosition1 = await Positions.findOne({
                    offset: Math.floor(Math.random() * (await Positions.count())),
                });
                const Employee1 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Employee1?.setPosition)
                {
                    await
                    Employee1.
                    setPosition(relatedPosition1);
                }
            
                const relatedPosition2 = await Positions.findOne({
                    offset: Math.floor(Math.random() * (await Positions.count())),
                });
                const Employee2 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Employee2?.setPosition)
                {
                    await
                    Employee2.
                    setPosition(relatedPosition2);
                }
            
                const relatedPosition3 = await Positions.findOne({
                    offset: Math.floor(Math.random() * (await Positions.count())),
                });
                const Employee3 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Employee3?.setPosition)
                {
                    await
                    Employee3.
                    setPosition(relatedPosition3);
                }
            
                const relatedPosition4 = await Positions.findOne({
                    offset: Math.floor(Math.random() * (await Positions.count())),
                });
                const Employee4 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Employee4?.setPosition)
                {
                    await
                    Employee4.
                    setPosition(relatedPosition4);
                }
            
        }
        
    
        
            
            async function associateEmployeeWithShift() {
            
                const relatedShift0 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const Employee0 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Employee0?.setShift)
                {
                    await
                    Employee0.
                    setShift(relatedShift0);
                }
            
                const relatedShift1 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const Employee1 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Employee1?.setShift)
                {
                    await
                    Employee1.
                    setShift(relatedShift1);
                }
            
                const relatedShift2 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const Employee2 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Employee2?.setShift)
                {
                    await
                    Employee2.
                    setShift(relatedShift2);
                }
            
                const relatedShift3 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const Employee3 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Employee3?.setShift)
                {
                    await
                    Employee3.
                    setShift(relatedShift3);
                }
            
                const relatedShift4 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const Employee4 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Employee4?.setShift)
                {
                    await
                    Employee4.
                    setShift(relatedShift4);
                }
            
        }
        
    
        
            
            async function associateEmployeeWithReportingto() {
            
                const relatedReportingto0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Employee0 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Employee0?.setReportingto)
                {
                    await
                    Employee0.
                    setReportingto(relatedReportingto0);
                }
            
                const relatedReportingto1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Employee1 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Employee1?.setReportingto)
                {
                    await
                    Employee1.
                    setReportingto(relatedReportingto1);
                }
            
                const relatedReportingto2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Employee2 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Employee2?.setReportingto)
                {
                    await
                    Employee2.
                    setReportingto(relatedReportingto2);
                }
            
                const relatedReportingto3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Employee3 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Employee3?.setReportingto)
                {
                    await
                    Employee3.
                    setReportingto(relatedReportingto3);
                }
            
                const relatedReportingto4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Employee4 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Employee4?.setReportingto)
                {
                    await
                    Employee4.
                    setReportingto(relatedReportingto4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateEmployeeDocumentWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeDocument0 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EmployeeDocument0?.setEmployee)
                {
                    await
                    EmployeeDocument0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeDocument1 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EmployeeDocument1?.setEmployee)
                {
                    await
                    EmployeeDocument1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeDocument2 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EmployeeDocument2?.setEmployee)
                {
                    await
                    EmployeeDocument2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeDocument3 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EmployeeDocument3?.setEmployee)
                {
                    await
                    EmployeeDocument3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeDocument4 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (EmployeeDocument4?.setEmployee)
                {
                    await
                    EmployeeDocument4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateEmployeeDocumentWithUploadedbyuser() {
            
                const relatedUploadedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EmployeeDocument0 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EmployeeDocument0?.setUploadedbyuser)
                {
                    await
                    EmployeeDocument0.
                    setUploadedbyuser(relatedUploadedbyuser0);
                }
            
                const relatedUploadedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EmployeeDocument1 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EmployeeDocument1?.setUploadedbyuser)
                {
                    await
                    EmployeeDocument1.
                    setUploadedbyuser(relatedUploadedbyuser1);
                }
            
                const relatedUploadedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EmployeeDocument2 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EmployeeDocument2?.setUploadedbyuser)
                {
                    await
                    EmployeeDocument2.
                    setUploadedbyuser(relatedUploadedbyuser2);
                }
            
                const relatedUploadedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EmployeeDocument3 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EmployeeDocument3?.setUploadedbyuser)
                {
                    await
                    EmployeeDocument3.
                    setUploadedbyuser(relatedUploadedbyuser3);
                }
            
                const relatedUploadedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const EmployeeDocument4 = await EmployeeDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (EmployeeDocument4?.setUploadedbyuser)
                {
                    await
                    EmployeeDocument4.
                    setUploadedbyuser(relatedUploadedbyuser4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTimeRecordWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const TimeRecord0 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TimeRecord0?.setEmployee)
                {
                    await
                    TimeRecord0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const TimeRecord1 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TimeRecord1?.setEmployee)
                {
                    await
                    TimeRecord1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const TimeRecord2 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TimeRecord2?.setEmployee)
                {
                    await
                    TimeRecord2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const TimeRecord3 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TimeRecord3?.setEmployee)
                {
                    await
                    TimeRecord3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const TimeRecord4 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TimeRecord4?.setEmployee)
                {
                    await
                    TimeRecord4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
            
            async function associateTimeRecordWithShift() {
            
                const relatedShift0 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const TimeRecord0 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TimeRecord0?.setShift)
                {
                    await
                    TimeRecord0.
                    setShift(relatedShift0);
                }
            
                const relatedShift1 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const TimeRecord1 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TimeRecord1?.setShift)
                {
                    await
                    TimeRecord1.
                    setShift(relatedShift1);
                }
            
                const relatedShift2 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const TimeRecord2 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TimeRecord2?.setShift)
                {
                    await
                    TimeRecord2.
                    setShift(relatedShift2);
                }
            
                const relatedShift3 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const TimeRecord3 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TimeRecord3?.setShift)
                {
                    await
                    TimeRecord3.
                    setShift(relatedShift3);
                }
            
                const relatedShift4 = await Shifts.findOne({
                    offset: Math.floor(Math.random() * (await Shifts.count())),
                });
                const TimeRecord4 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TimeRecord4?.setShift)
                {
                    await
                    TimeRecord4.
                    setShift(relatedShift4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateTimeRecordWithModifiedbyuser() {
            
                const relatedModifiedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord0 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TimeRecord0?.setModifiedbyuser)
                {
                    await
                    TimeRecord0.
                    setModifiedbyuser(relatedModifiedbyuser0);
                }
            
                const relatedModifiedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord1 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TimeRecord1?.setModifiedbyuser)
                {
                    await
                    TimeRecord1.
                    setModifiedbyuser(relatedModifiedbyuser1);
                }
            
                const relatedModifiedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord2 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TimeRecord2?.setModifiedbyuser)
                {
                    await
                    TimeRecord2.
                    setModifiedbyuser(relatedModifiedbyuser2);
                }
            
                const relatedModifiedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord3 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TimeRecord3?.setModifiedbyuser)
                {
                    await
                    TimeRecord3.
                    setModifiedbyuser(relatedModifiedbyuser3);
                }
            
                const relatedModifiedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord4 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TimeRecord4?.setModifiedbyuser)
                {
                    await
                    TimeRecord4.
                    setModifiedbyuser(relatedModifiedbyuser4);
                }
            
        }
        
    
        
    
        
            
            async function associateTimeRecordWithApprovedbyuser() {
            
                const relatedApprovedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord0 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TimeRecord0?.setApprovedbyuser)
                {
                    await
                    TimeRecord0.
                    setApprovedbyuser(relatedApprovedbyuser0);
                }
            
                const relatedApprovedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord1 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TimeRecord1?.setApprovedbyuser)
                {
                    await
                    TimeRecord1.
                    setApprovedbyuser(relatedApprovedbyuser1);
                }
            
                const relatedApprovedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord2 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TimeRecord2?.setApprovedbyuser)
                {
                    await
                    TimeRecord2.
                    setApprovedbyuser(relatedApprovedbyuser2);
                }
            
                const relatedApprovedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord3 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TimeRecord3?.setApprovedbyuser)
                {
                    await
                    TimeRecord3.
                    setApprovedbyuser(relatedApprovedbyuser3);
                }
            
                const relatedApprovedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TimeRecord4 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TimeRecord4?.setApprovedbyuser)
                {
                    await
                    TimeRecord4.
                    setApprovedbyuser(relatedApprovedbyuser4);
                }
            
        }
        
    
        
    
        
            
            async function associateTimeRecordWithPayrollrun() {
            
                const relatedPayrollrun0 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const TimeRecord0 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TimeRecord0?.setPayrollrun)
                {
                    await
                    TimeRecord0.
                    setPayrollrun(relatedPayrollrun0);
                }
            
                const relatedPayrollrun1 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const TimeRecord1 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TimeRecord1?.setPayrollrun)
                {
                    await
                    TimeRecord1.
                    setPayrollrun(relatedPayrollrun1);
                }
            
                const relatedPayrollrun2 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const TimeRecord2 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TimeRecord2?.setPayrollrun)
                {
                    await
                    TimeRecord2.
                    setPayrollrun(relatedPayrollrun2);
                }
            
                const relatedPayrollrun3 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const TimeRecord3 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TimeRecord3?.setPayrollrun)
                {
                    await
                    TimeRecord3.
                    setPayrollrun(relatedPayrollrun3);
                }
            
                const relatedPayrollrun4 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const TimeRecord4 = await TimeRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TimeRecord4?.setPayrollrun)
                {
                    await
                    TimeRecord4.
                    setPayrollrun(relatedPayrollrun4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBiometricImportWithImportedbyuser() {
            
                const relatedImportedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BiometricImport0 = await BiometricImports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BiometricImport0?.setImportedbyuser)
                {
                    await
                    BiometricImport0.
                    setImportedbyuser(relatedImportedbyuser0);
                }
            
                const relatedImportedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BiometricImport1 = await BiometricImports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BiometricImport1?.setImportedbyuser)
                {
                    await
                    BiometricImport1.
                    setImportedbyuser(relatedImportedbyuser1);
                }
            
                const relatedImportedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BiometricImport2 = await BiometricImports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BiometricImport2?.setImportedbyuser)
                {
                    await
                    BiometricImport2.
                    setImportedbyuser(relatedImportedbyuser2);
                }
            
                const relatedImportedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BiometricImport3 = await BiometricImports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BiometricImport3?.setImportedbyuser)
                {
                    await
                    BiometricImport3.
                    setImportedbyuser(relatedImportedbyuser3);
                }
            
                const relatedImportedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BiometricImport4 = await BiometricImports.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BiometricImport4?.setImportedbyuser)
                {
                    await
                    BiometricImport4.
                    setImportedbyuser(relatedImportedbyuser4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLeaveBalanceWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveBalance0 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaveBalance0?.setEmployee)
                {
                    await
                    LeaveBalance0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveBalance1 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaveBalance1?.setEmployee)
                {
                    await
                    LeaveBalance1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveBalance2 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaveBalance2?.setEmployee)
                {
                    await
                    LeaveBalance2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveBalance3 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaveBalance3?.setEmployee)
                {
                    await
                    LeaveBalance3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveBalance4 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LeaveBalance4?.setEmployee)
                {
                    await
                    LeaveBalance4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
            
            async function associateLeaveBalanceWithLeavetype() {
            
                const relatedLeavetype0 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveBalance0 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaveBalance0?.setLeavetype)
                {
                    await
                    LeaveBalance0.
                    setLeavetype(relatedLeavetype0);
                }
            
                const relatedLeavetype1 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveBalance1 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaveBalance1?.setLeavetype)
                {
                    await
                    LeaveBalance1.
                    setLeavetype(relatedLeavetype1);
                }
            
                const relatedLeavetype2 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveBalance2 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaveBalance2?.setLeavetype)
                {
                    await
                    LeaveBalance2.
                    setLeavetype(relatedLeavetype2);
                }
            
                const relatedLeavetype3 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveBalance3 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaveBalance3?.setLeavetype)
                {
                    await
                    LeaveBalance3.
                    setLeavetype(relatedLeavetype3);
                }
            
                const relatedLeavetype4 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveBalance4 = await LeaveBalances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LeaveBalance4?.setLeavetype)
                {
                    await
                    LeaveBalance4.
                    setLeavetype(relatedLeavetype4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLeaveApplicationWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveApplication0 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaveApplication0?.setEmployee)
                {
                    await
                    LeaveApplication0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveApplication1 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaveApplication1?.setEmployee)
                {
                    await
                    LeaveApplication1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveApplication2 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaveApplication2?.setEmployee)
                {
                    await
                    LeaveApplication2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveApplication3 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaveApplication3?.setEmployee)
                {
                    await
                    LeaveApplication3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const LeaveApplication4 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LeaveApplication4?.setEmployee)
                {
                    await
                    LeaveApplication4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
            
            async function associateLeaveApplicationWithLeavetype() {
            
                const relatedLeavetype0 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveApplication0 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaveApplication0?.setLeavetype)
                {
                    await
                    LeaveApplication0.
                    setLeavetype(relatedLeavetype0);
                }
            
                const relatedLeavetype1 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveApplication1 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaveApplication1?.setLeavetype)
                {
                    await
                    LeaveApplication1.
                    setLeavetype(relatedLeavetype1);
                }
            
                const relatedLeavetype2 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveApplication2 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaveApplication2?.setLeavetype)
                {
                    await
                    LeaveApplication2.
                    setLeavetype(relatedLeavetype2);
                }
            
                const relatedLeavetype3 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveApplication3 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaveApplication3?.setLeavetype)
                {
                    await
                    LeaveApplication3.
                    setLeavetype(relatedLeavetype3);
                }
            
                const relatedLeavetype4 = await LeaveTypes.findOne({
                    offset: Math.floor(Math.random() * (await LeaveTypes.count())),
                });
                const LeaveApplication4 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LeaveApplication4?.setLeavetype)
                {
                    await
                    LeaveApplication4.
                    setLeavetype(relatedLeavetype4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLeaveApplicationWithApprovedbyuser() {
            
                const relatedApprovedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaveApplication0 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeaveApplication0?.setApprovedbyuser)
                {
                    await
                    LeaveApplication0.
                    setApprovedbyuser(relatedApprovedbyuser0);
                }
            
                const relatedApprovedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaveApplication1 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeaveApplication1?.setApprovedbyuser)
                {
                    await
                    LeaveApplication1.
                    setApprovedbyuser(relatedApprovedbyuser1);
                }
            
                const relatedApprovedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaveApplication2 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeaveApplication2?.setApprovedbyuser)
                {
                    await
                    LeaveApplication2.
                    setApprovedbyuser(relatedApprovedbyuser2);
                }
            
                const relatedApprovedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaveApplication3 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeaveApplication3?.setApprovedbyuser)
                {
                    await
                    LeaveApplication3.
                    setApprovedbyuser(relatedApprovedbyuser3);
                }
            
                const relatedApprovedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeaveApplication4 = await LeaveApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LeaveApplication4?.setApprovedbyuser)
                {
                    await
                    LeaveApplication4.
                    setApprovedbyuser(relatedApprovedbyuser4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateEmployeeLoanWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeLoan0 = await EmployeeLoans.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EmployeeLoan0?.setEmployee)
                {
                    await
                    EmployeeLoan0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeLoan1 = await EmployeeLoans.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EmployeeLoan1?.setEmployee)
                {
                    await
                    EmployeeLoan1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeLoan2 = await EmployeeLoans.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EmployeeLoan2?.setEmployee)
                {
                    await
                    EmployeeLoan2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeLoan3 = await EmployeeLoans.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EmployeeLoan3?.setEmployee)
                {
                    await
                    EmployeeLoan3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeLoan4 = await EmployeeLoans.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (EmployeeLoan4?.setEmployee)
                {
                    await
                    EmployeeLoan4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLoanDeductionWithLoan() {
            
                const relatedLoan0 = await EmployeeLoans.findOne({
                    offset: Math.floor(Math.random() * (await EmployeeLoans.count())),
                });
                const LoanDeduction0 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LoanDeduction0?.setLoan)
                {
                    await
                    LoanDeduction0.
                    setLoan(relatedLoan0);
                }
            
                const relatedLoan1 = await EmployeeLoans.findOne({
                    offset: Math.floor(Math.random() * (await EmployeeLoans.count())),
                });
                const LoanDeduction1 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LoanDeduction1?.setLoan)
                {
                    await
                    LoanDeduction1.
                    setLoan(relatedLoan1);
                }
            
                const relatedLoan2 = await EmployeeLoans.findOne({
                    offset: Math.floor(Math.random() * (await EmployeeLoans.count())),
                });
                const LoanDeduction2 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LoanDeduction2?.setLoan)
                {
                    await
                    LoanDeduction2.
                    setLoan(relatedLoan2);
                }
            
                const relatedLoan3 = await EmployeeLoans.findOne({
                    offset: Math.floor(Math.random() * (await EmployeeLoans.count())),
                });
                const LoanDeduction3 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LoanDeduction3?.setLoan)
                {
                    await
                    LoanDeduction3.
                    setLoan(relatedLoan3);
                }
            
                const relatedLoan4 = await EmployeeLoans.findOne({
                    offset: Math.floor(Math.random() * (await EmployeeLoans.count())),
                });
                const LoanDeduction4 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LoanDeduction4?.setLoan)
                {
                    await
                    LoanDeduction4.
                    setLoan(relatedLoan4);
                }
            
        }
        
    
        
            
            async function associateLoanDeductionWithPayrollitem() {
            
                const relatedPayrollitem0 = await PayrollItems.findOne({
                    offset: Math.floor(Math.random() * (await PayrollItems.count())),
                });
                const LoanDeduction0 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LoanDeduction0?.setPayrollitem)
                {
                    await
                    LoanDeduction0.
                    setPayrollitem(relatedPayrollitem0);
                }
            
                const relatedPayrollitem1 = await PayrollItems.findOne({
                    offset: Math.floor(Math.random() * (await PayrollItems.count())),
                });
                const LoanDeduction1 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LoanDeduction1?.setPayrollitem)
                {
                    await
                    LoanDeduction1.
                    setPayrollitem(relatedPayrollitem1);
                }
            
                const relatedPayrollitem2 = await PayrollItems.findOne({
                    offset: Math.floor(Math.random() * (await PayrollItems.count())),
                });
                const LoanDeduction2 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LoanDeduction2?.setPayrollitem)
                {
                    await
                    LoanDeduction2.
                    setPayrollitem(relatedPayrollitem2);
                }
            
                const relatedPayrollitem3 = await PayrollItems.findOne({
                    offset: Math.floor(Math.random() * (await PayrollItems.count())),
                });
                const LoanDeduction3 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LoanDeduction3?.setPayrollitem)
                {
                    await
                    LoanDeduction3.
                    setPayrollitem(relatedPayrollitem3);
                }
            
                const relatedPayrollitem4 = await PayrollItems.findOne({
                    offset: Math.floor(Math.random() * (await PayrollItems.count())),
                });
                const LoanDeduction4 = await LoanDeductions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LoanDeduction4?.setPayrollitem)
                {
                    await
                    LoanDeduction4.
                    setPayrollitem(relatedPayrollitem4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePayrollRunWithApprovedbyuser() {
            
                const relatedApprovedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun0 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PayrollRun0?.setApprovedbyuser)
                {
                    await
                    PayrollRun0.
                    setApprovedbyuser(relatedApprovedbyuser0);
                }
            
                const relatedApprovedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun1 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PayrollRun1?.setApprovedbyuser)
                {
                    await
                    PayrollRun1.
                    setApprovedbyuser(relatedApprovedbyuser1);
                }
            
                const relatedApprovedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun2 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PayrollRun2?.setApprovedbyuser)
                {
                    await
                    PayrollRun2.
                    setApprovedbyuser(relatedApprovedbyuser2);
                }
            
                const relatedApprovedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun3 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PayrollRun3?.setApprovedbyuser)
                {
                    await
                    PayrollRun3.
                    setApprovedbyuser(relatedApprovedbyuser3);
                }
            
                const relatedApprovedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun4 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PayrollRun4?.setApprovedbyuser)
                {
                    await
                    PayrollRun4.
                    setApprovedbyuser(relatedApprovedbyuser4);
                }
            
        }
        
    
        
            
            async function associatePayrollRunWithPostedbyuser() {
            
                const relatedPostedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun0 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PayrollRun0?.setPostedbyuser)
                {
                    await
                    PayrollRun0.
                    setPostedbyuser(relatedPostedbyuser0);
                }
            
                const relatedPostedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun1 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PayrollRun1?.setPostedbyuser)
                {
                    await
                    PayrollRun1.
                    setPostedbyuser(relatedPostedbyuser1);
                }
            
                const relatedPostedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun2 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PayrollRun2?.setPostedbyuser)
                {
                    await
                    PayrollRun2.
                    setPostedbyuser(relatedPostedbyuser2);
                }
            
                const relatedPostedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun3 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PayrollRun3?.setPostedbyuser)
                {
                    await
                    PayrollRun3.
                    setPostedbyuser(relatedPostedbyuser3);
                }
            
                const relatedPostedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PayrollRun4 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PayrollRun4?.setPostedbyuser)
                {
                    await
                    PayrollRun4.
                    setPostedbyuser(relatedPostedbyuser4);
                }
            
        }
        
    
        
    
        
            
            async function associatePayrollRunWithJournalentry() {
            
                const relatedJournalentry0 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const PayrollRun0 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PayrollRun0?.setJournalentry)
                {
                    await
                    PayrollRun0.
                    setJournalentry(relatedJournalentry0);
                }
            
                const relatedJournalentry1 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const PayrollRun1 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PayrollRun1?.setJournalentry)
                {
                    await
                    PayrollRun1.
                    setJournalentry(relatedJournalentry1);
                }
            
                const relatedJournalentry2 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const PayrollRun2 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PayrollRun2?.setJournalentry)
                {
                    await
                    PayrollRun2.
                    setJournalentry(relatedJournalentry2);
                }
            
                const relatedJournalentry3 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const PayrollRun3 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PayrollRun3?.setJournalentry)
                {
                    await
                    PayrollRun3.
                    setJournalentry(relatedJournalentry3);
                }
            
                const relatedJournalentry4 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const PayrollRun4 = await PayrollRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PayrollRun4?.setJournalentry)
                {
                    await
                    PayrollRun4.
                    setJournalentry(relatedJournalentry4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePayrollItemWithPayrollrun() {
            
                const relatedPayrollrun0 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const PayrollItem0 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PayrollItem0?.setPayrollrun)
                {
                    await
                    PayrollItem0.
                    setPayrollrun(relatedPayrollrun0);
                }
            
                const relatedPayrollrun1 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const PayrollItem1 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PayrollItem1?.setPayrollrun)
                {
                    await
                    PayrollItem1.
                    setPayrollrun(relatedPayrollrun1);
                }
            
                const relatedPayrollrun2 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const PayrollItem2 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PayrollItem2?.setPayrollrun)
                {
                    await
                    PayrollItem2.
                    setPayrollrun(relatedPayrollrun2);
                }
            
                const relatedPayrollrun3 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const PayrollItem3 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PayrollItem3?.setPayrollrun)
                {
                    await
                    PayrollItem3.
                    setPayrollrun(relatedPayrollrun3);
                }
            
                const relatedPayrollrun4 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const PayrollItem4 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PayrollItem4?.setPayrollrun)
                {
                    await
                    PayrollItem4.
                    setPayrollrun(relatedPayrollrun4);
                }
            
        }
        
    
        
            
            async function associatePayrollItemWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const PayrollItem0 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PayrollItem0?.setEmployee)
                {
                    await
                    PayrollItem0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const PayrollItem1 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PayrollItem1?.setEmployee)
                {
                    await
                    PayrollItem1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const PayrollItem2 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PayrollItem2?.setEmployee)
                {
                    await
                    PayrollItem2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const PayrollItem3 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PayrollItem3?.setEmployee)
                {
                    await
                    PayrollItem3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const PayrollItem4 = await PayrollItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PayrollItem4?.setEmployee)
                {
                    await
                    PayrollItem4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBankFileWithPayrollrun() {
            
                const relatedPayrollrun0 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const BankFile0 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankFile0?.setPayrollrun)
                {
                    await
                    BankFile0.
                    setPayrollrun(relatedPayrollrun0);
                }
            
                const relatedPayrollrun1 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const BankFile1 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankFile1?.setPayrollrun)
                {
                    await
                    BankFile1.
                    setPayrollrun(relatedPayrollrun1);
                }
            
                const relatedPayrollrun2 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const BankFile2 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankFile2?.setPayrollrun)
                {
                    await
                    BankFile2.
                    setPayrollrun(relatedPayrollrun2);
                }
            
                const relatedPayrollrun3 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const BankFile3 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankFile3?.setPayrollrun)
                {
                    await
                    BankFile3.
                    setPayrollrun(relatedPayrollrun3);
                }
            
                const relatedPayrollrun4 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const BankFile4 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankFile4?.setPayrollrun)
                {
                    await
                    BankFile4.
                    setPayrollrun(relatedPayrollrun4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBankFileWithGeneratedbyuser() {
            
                const relatedGeneratedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BankFile0 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankFile0?.setGeneratedbyuser)
                {
                    await
                    BankFile0.
                    setGeneratedbyuser(relatedGeneratedbyuser0);
                }
            
                const relatedGeneratedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BankFile1 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankFile1?.setGeneratedbyuser)
                {
                    await
                    BankFile1.
                    setGeneratedbyuser(relatedGeneratedbyuser1);
                }
            
                const relatedGeneratedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BankFile2 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankFile2?.setGeneratedbyuser)
                {
                    await
                    BankFile2.
                    setGeneratedbyuser(relatedGeneratedbyuser2);
                }
            
                const relatedGeneratedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BankFile3 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankFile3?.setGeneratedbyuser)
                {
                    await
                    BankFile3.
                    setGeneratedbyuser(relatedGeneratedbyuser3);
                }
            
                const relatedGeneratedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BankFile4 = await BankFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankFile4?.setGeneratedbyuser)
                {
                    await
                    BankFile4.
                    setGeneratedbyuser(relatedGeneratedbyuser4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateAccountWithParent() {
            
                const relatedParent0 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Account0 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Account0?.setParent)
                {
                    await
                    Account0.
                    setParent(relatedParent0);
                }
            
                const relatedParent1 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Account1 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Account1?.setParent)
                {
                    await
                    Account1.
                    setParent(relatedParent1);
                }
            
                const relatedParent2 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Account2 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Account2?.setParent)
                {
                    await
                    Account2.
                    setParent(relatedParent2);
                }
            
                const relatedParent3 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Account3 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Account3?.setParent)
                {
                    await
                    Account3.
                    setParent(relatedParent3);
                }
            
                const relatedParent4 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Account4 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Account4?.setParent)
                {
                    await
                    Account4.
                    setParent(relatedParent4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateJournalEntryWithPayrollrun() {
            
                const relatedPayrollrun0 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const JournalEntry0 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalEntry0?.setPayrollrun)
                {
                    await
                    JournalEntry0.
                    setPayrollrun(relatedPayrollrun0);
                }
            
                const relatedPayrollrun1 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const JournalEntry1 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalEntry1?.setPayrollrun)
                {
                    await
                    JournalEntry1.
                    setPayrollrun(relatedPayrollrun1);
                }
            
                const relatedPayrollrun2 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const JournalEntry2 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalEntry2?.setPayrollrun)
                {
                    await
                    JournalEntry2.
                    setPayrollrun(relatedPayrollrun2);
                }
            
                const relatedPayrollrun3 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const JournalEntry3 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalEntry3?.setPayrollrun)
                {
                    await
                    JournalEntry3.
                    setPayrollrun(relatedPayrollrun3);
                }
            
                const relatedPayrollrun4 = await PayrollRuns.findOne({
                    offset: Math.floor(Math.random() * (await PayrollRuns.count())),
                });
                const JournalEntry4 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalEntry4?.setPayrollrun)
                {
                    await
                    JournalEntry4.
                    setPayrollrun(relatedPayrollrun4);
                }
            
        }
        
    
        
            
            async function associateJournalEntryWithReversalofentry() {
            
                const relatedReversalofentry0 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalEntry0 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalEntry0?.setReversalofentry)
                {
                    await
                    JournalEntry0.
                    setReversalofentry(relatedReversalofentry0);
                }
            
                const relatedReversalofentry1 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalEntry1 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalEntry1?.setReversalofentry)
                {
                    await
                    JournalEntry1.
                    setReversalofentry(relatedReversalofentry1);
                }
            
                const relatedReversalofentry2 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalEntry2 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalEntry2?.setReversalofentry)
                {
                    await
                    JournalEntry2.
                    setReversalofentry(relatedReversalofentry2);
                }
            
                const relatedReversalofentry3 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalEntry3 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalEntry3?.setReversalofentry)
                {
                    await
                    JournalEntry3.
                    setReversalofentry(relatedReversalofentry3);
                }
            
                const relatedReversalofentry4 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalEntry4 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalEntry4?.setReversalofentry)
                {
                    await
                    JournalEntry4.
                    setReversalofentry(relatedReversalofentry4);
                }
            
        }
        
    
        
    
        
            
            async function associateJournalEntryWithPostedbyuser() {
            
                const relatedPostedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JournalEntry0 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalEntry0?.setPostedbyuser)
                {
                    await
                    JournalEntry0.
                    setPostedbyuser(relatedPostedbyuser0);
                }
            
                const relatedPostedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JournalEntry1 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalEntry1?.setPostedbyuser)
                {
                    await
                    JournalEntry1.
                    setPostedbyuser(relatedPostedbyuser1);
                }
            
                const relatedPostedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JournalEntry2 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalEntry2?.setPostedbyuser)
                {
                    await
                    JournalEntry2.
                    setPostedbyuser(relatedPostedbyuser2);
                }
            
                const relatedPostedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JournalEntry3 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalEntry3?.setPostedbyuser)
                {
                    await
                    JournalEntry3.
                    setPostedbyuser(relatedPostedbyuser3);
                }
            
                const relatedPostedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JournalEntry4 = await JournalEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalEntry4?.setPostedbyuser)
                {
                    await
                    JournalEntry4.
                    setPostedbyuser(relatedPostedbyuser4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateJournalLineWithJournalentry() {
            
                const relatedJournalentry0 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setJournalentry)
                {
                    await
                    JournalLine0.
                    setJournalentry(relatedJournalentry0);
                }
            
                const relatedJournalentry1 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setJournalentry)
                {
                    await
                    JournalLine1.
                    setJournalentry(relatedJournalentry1);
                }
            
                const relatedJournalentry2 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setJournalentry)
                {
                    await
                    JournalLine2.
                    setJournalentry(relatedJournalentry2);
                }
            
                const relatedJournalentry3 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setJournalentry)
                {
                    await
                    JournalLine3.
                    setJournalentry(relatedJournalentry3);
                }
            
                const relatedJournalentry4 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setJournalentry)
                {
                    await
                    JournalLine4.
                    setJournalentry(relatedJournalentry4);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAccount() {
            
                const relatedAccount0 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAccount)
                {
                    await
                    JournalLine0.
                    setAccount(relatedAccount0);
                }
            
                const relatedAccount1 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAccount)
                {
                    await
                    JournalLine1.
                    setAccount(relatedAccount1);
                }
            
                const relatedAccount2 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAccount)
                {
                    await
                    JournalLine2.
                    setAccount(relatedAccount2);
                }
            
                const relatedAccount3 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAccount)
                {
                    await
                    JournalLine3.
                    setAccount(relatedAccount3);
                }
            
                const relatedAccount4 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAccount)
                {
                    await
                    JournalLine4.
                    setAccount(relatedAccount4);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithCostcenter() {
            
                const relatedCostcenter0 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setCostcenter)
                {
                    await
                    JournalLine0.
                    setCostcenter(relatedCostcenter0);
                }
            
                const relatedCostcenter1 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setCostcenter)
                {
                    await
                    JournalLine1.
                    setCostcenter(relatedCostcenter1);
                }
            
                const relatedCostcenter2 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setCostcenter)
                {
                    await
                    JournalLine2.
                    setCostcenter(relatedCostcenter2);
                }
            
                const relatedCostcenter3 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setCostcenter)
                {
                    await
                    JournalLine3.
                    setCostcenter(relatedCostcenter3);
                }
            
                const relatedCostcenter4 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setCostcenter)
                {
                    await
                    JournalLine4.
                    setCostcenter(relatedCostcenter4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateVendorWithDefaultaccount() {
            
                const relatedDefaultaccount0 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Vendor0 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vendor0?.setDefaultaccount)
                {
                    await
                    Vendor0.
                    setDefaultaccount(relatedDefaultaccount0);
                }
            
                const relatedDefaultaccount1 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Vendor1 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vendor1?.setDefaultaccount)
                {
                    await
                    Vendor1.
                    setDefaultaccount(relatedDefaultaccount1);
                }
            
                const relatedDefaultaccount2 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Vendor2 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vendor2?.setDefaultaccount)
                {
                    await
                    Vendor2.
                    setDefaultaccount(relatedDefaultaccount2);
                }
            
                const relatedDefaultaccount3 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Vendor3 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vendor3?.setDefaultaccount)
                {
                    await
                    Vendor3.
                    setDefaultaccount(relatedDefaultaccount3);
                }
            
                const relatedDefaultaccount4 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const Vendor4 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Vendor4?.setDefaultaccount)
                {
                    await
                    Vendor4.
                    setDefaultaccount(relatedDefaultaccount4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateApInvoiceWithVendor() {
            
                const relatedVendor0 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const ApInvoice0 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApInvoice0?.setVendor)
                {
                    await
                    ApInvoice0.
                    setVendor(relatedVendor0);
                }
            
                const relatedVendor1 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const ApInvoice1 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApInvoice1?.setVendor)
                {
                    await
                    ApInvoice1.
                    setVendor(relatedVendor1);
                }
            
                const relatedVendor2 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const ApInvoice2 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApInvoice2?.setVendor)
                {
                    await
                    ApInvoice2.
                    setVendor(relatedVendor2);
                }
            
                const relatedVendor3 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const ApInvoice3 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApInvoice3?.setVendor)
                {
                    await
                    ApInvoice3.
                    setVendor(relatedVendor3);
                }
            
                const relatedVendor4 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const ApInvoice4 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApInvoice4?.setVendor)
                {
                    await
                    ApInvoice4.
                    setVendor(relatedVendor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateApInvoiceWithGlaccount() {
            
                const relatedGlaccount0 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const ApInvoice0 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApInvoice0?.setGlaccount)
                {
                    await
                    ApInvoice0.
                    setGlaccount(relatedGlaccount0);
                }
            
                const relatedGlaccount1 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const ApInvoice1 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApInvoice1?.setGlaccount)
                {
                    await
                    ApInvoice1.
                    setGlaccount(relatedGlaccount1);
                }
            
                const relatedGlaccount2 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const ApInvoice2 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApInvoice2?.setGlaccount)
                {
                    await
                    ApInvoice2.
                    setGlaccount(relatedGlaccount2);
                }
            
                const relatedGlaccount3 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const ApInvoice3 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApInvoice3?.setGlaccount)
                {
                    await
                    ApInvoice3.
                    setGlaccount(relatedGlaccount3);
                }
            
                const relatedGlaccount4 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const ApInvoice4 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApInvoice4?.setGlaccount)
                {
                    await
                    ApInvoice4.
                    setGlaccount(relatedGlaccount4);
                }
            
        }
        
    
        
            
            async function associateApInvoiceWithCostcenter() {
            
                const relatedCostcenter0 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const ApInvoice0 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApInvoice0?.setCostcenter)
                {
                    await
                    ApInvoice0.
                    setCostcenter(relatedCostcenter0);
                }
            
                const relatedCostcenter1 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const ApInvoice1 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApInvoice1?.setCostcenter)
                {
                    await
                    ApInvoice1.
                    setCostcenter(relatedCostcenter1);
                }
            
                const relatedCostcenter2 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const ApInvoice2 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApInvoice2?.setCostcenter)
                {
                    await
                    ApInvoice2.
                    setCostcenter(relatedCostcenter2);
                }
            
                const relatedCostcenter3 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const ApInvoice3 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApInvoice3?.setCostcenter)
                {
                    await
                    ApInvoice3.
                    setCostcenter(relatedCostcenter3);
                }
            
                const relatedCostcenter4 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const ApInvoice4 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApInvoice4?.setCostcenter)
                {
                    await
                    ApInvoice4.
                    setCostcenter(relatedCostcenter4);
                }
            
        }
        
    
        
    
        
            
            async function associateApInvoiceWithJournalentry() {
            
                const relatedJournalentry0 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const ApInvoice0 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApInvoice0?.setJournalentry)
                {
                    await
                    ApInvoice0.
                    setJournalentry(relatedJournalentry0);
                }
            
                const relatedJournalentry1 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const ApInvoice1 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApInvoice1?.setJournalentry)
                {
                    await
                    ApInvoice1.
                    setJournalentry(relatedJournalentry1);
                }
            
                const relatedJournalentry2 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const ApInvoice2 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApInvoice2?.setJournalentry)
                {
                    await
                    ApInvoice2.
                    setJournalentry(relatedJournalentry2);
                }
            
                const relatedJournalentry3 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const ApInvoice3 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApInvoice3?.setJournalentry)
                {
                    await
                    ApInvoice3.
                    setJournalentry(relatedJournalentry3);
                }
            
                const relatedJournalentry4 = await JournalEntries.findOne({
                    offset: Math.floor(Math.random() * (await JournalEntries.count())),
                });
                const ApInvoice4 = await ApInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApInvoice4?.setJournalentry)
                {
                    await
                    ApInvoice4.
                    setJournalentry(relatedJournalentry4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateApPaymentWithCreatedbyuser() {
            
                const relatedCreatedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment0 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApPayment0?.setCreatedbyuser)
                {
                    await
                    ApPayment0.
                    setCreatedbyuser(relatedCreatedbyuser0);
                }
            
                const relatedCreatedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment1 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApPayment1?.setCreatedbyuser)
                {
                    await
                    ApPayment1.
                    setCreatedbyuser(relatedCreatedbyuser1);
                }
            
                const relatedCreatedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment2 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApPayment2?.setCreatedbyuser)
                {
                    await
                    ApPayment2.
                    setCreatedbyuser(relatedCreatedbyuser2);
                }
            
                const relatedCreatedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment3 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApPayment3?.setCreatedbyuser)
                {
                    await
                    ApPayment3.
                    setCreatedbyuser(relatedCreatedbyuser3);
                }
            
                const relatedCreatedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment4 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApPayment4?.setCreatedbyuser)
                {
                    await
                    ApPayment4.
                    setCreatedbyuser(relatedCreatedbyuser4);
                }
            
        }
        
    
        
            
            async function associateApPaymentWithApprovedbyuser() {
            
                const relatedApprovedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment0 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApPayment0?.setApprovedbyuser)
                {
                    await
                    ApPayment0.
                    setApprovedbyuser(relatedApprovedbyuser0);
                }
            
                const relatedApprovedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment1 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApPayment1?.setApprovedbyuser)
                {
                    await
                    ApPayment1.
                    setApprovedbyuser(relatedApprovedbyuser1);
                }
            
                const relatedApprovedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment2 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApPayment2?.setApprovedbyuser)
                {
                    await
                    ApPayment2.
                    setApprovedbyuser(relatedApprovedbyuser2);
                }
            
                const relatedApprovedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment3 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApPayment3?.setApprovedbyuser)
                {
                    await
                    ApPayment3.
                    setApprovedbyuser(relatedApprovedbyuser3);
                }
            
                const relatedApprovedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApPayment4 = await ApPayments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApPayment4?.setApprovedbyuser)
                {
                    await
                    ApPayment4.
                    setApprovedbyuser(relatedApprovedbyuser4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateApPaymentLineWithPayment() {
            
                const relatedPayment0 = await ApPayments.findOne({
                    offset: Math.floor(Math.random() * (await ApPayments.count())),
                });
                const ApPaymentLine0 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApPaymentLine0?.setPayment)
                {
                    await
                    ApPaymentLine0.
                    setPayment(relatedPayment0);
                }
            
                const relatedPayment1 = await ApPayments.findOne({
                    offset: Math.floor(Math.random() * (await ApPayments.count())),
                });
                const ApPaymentLine1 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApPaymentLine1?.setPayment)
                {
                    await
                    ApPaymentLine1.
                    setPayment(relatedPayment1);
                }
            
                const relatedPayment2 = await ApPayments.findOne({
                    offset: Math.floor(Math.random() * (await ApPayments.count())),
                });
                const ApPaymentLine2 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApPaymentLine2?.setPayment)
                {
                    await
                    ApPaymentLine2.
                    setPayment(relatedPayment2);
                }
            
                const relatedPayment3 = await ApPayments.findOne({
                    offset: Math.floor(Math.random() * (await ApPayments.count())),
                });
                const ApPaymentLine3 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApPaymentLine3?.setPayment)
                {
                    await
                    ApPaymentLine3.
                    setPayment(relatedPayment3);
                }
            
                const relatedPayment4 = await ApPayments.findOne({
                    offset: Math.floor(Math.random() * (await ApPayments.count())),
                });
                const ApPaymentLine4 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApPaymentLine4?.setPayment)
                {
                    await
                    ApPaymentLine4.
                    setPayment(relatedPayment4);
                }
            
        }
        
    
        
            
            async function associateApPaymentLineWithInvoice() {
            
                const relatedInvoice0 = await ApInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ApInvoices.count())),
                });
                const ApPaymentLine0 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApPaymentLine0?.setInvoice)
                {
                    await
                    ApPaymentLine0.
                    setInvoice(relatedInvoice0);
                }
            
                const relatedInvoice1 = await ApInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ApInvoices.count())),
                });
                const ApPaymentLine1 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApPaymentLine1?.setInvoice)
                {
                    await
                    ApPaymentLine1.
                    setInvoice(relatedInvoice1);
                }
            
                const relatedInvoice2 = await ApInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ApInvoices.count())),
                });
                const ApPaymentLine2 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApPaymentLine2?.setInvoice)
                {
                    await
                    ApPaymentLine2.
                    setInvoice(relatedInvoice2);
                }
            
                const relatedInvoice3 = await ApInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ApInvoices.count())),
                });
                const ApPaymentLine3 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApPaymentLine3?.setInvoice)
                {
                    await
                    ApPaymentLine3.
                    setInvoice(relatedInvoice3);
                }
            
                const relatedInvoice4 = await ApInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ApInvoices.count())),
                });
                const ApPaymentLine4 = await ApPaymentLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApPaymentLine4?.setInvoice)
                {
                    await
                    ApPaymentLine4.
                    setInvoice(relatedInvoice4);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateArInvoiceWithCustomer() {
            
                const relatedCustomer0 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const ArInvoice0 = await ArInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ArInvoice0?.setCustomer)
                {
                    await
                    ArInvoice0.
                    setCustomer(relatedCustomer0);
                }
            
                const relatedCustomer1 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const ArInvoice1 = await ArInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ArInvoice1?.setCustomer)
                {
                    await
                    ArInvoice1.
                    setCustomer(relatedCustomer1);
                }
            
                const relatedCustomer2 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const ArInvoice2 = await ArInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ArInvoice2?.setCustomer)
                {
                    await
                    ArInvoice2.
                    setCustomer(relatedCustomer2);
                }
            
                const relatedCustomer3 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const ArInvoice3 = await ArInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ArInvoice3?.setCustomer)
                {
                    await
                    ArInvoice3.
                    setCustomer(relatedCustomer3);
                }
            
                const relatedCustomer4 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const ArInvoice4 = await ArInvoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ArInvoice4?.setCustomer)
                {
                    await
                    ArInvoice4.
                    setCustomer(relatedCustomer4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateArInvoiceItemWithInvoice() {
            
                const relatedInvoice0 = await ArInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ArInvoices.count())),
                });
                const ArInvoiceItem0 = await ArInvoiceItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ArInvoiceItem0?.setInvoice)
                {
                    await
                    ArInvoiceItem0.
                    setInvoice(relatedInvoice0);
                }
            
                const relatedInvoice1 = await ArInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ArInvoices.count())),
                });
                const ArInvoiceItem1 = await ArInvoiceItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ArInvoiceItem1?.setInvoice)
                {
                    await
                    ArInvoiceItem1.
                    setInvoice(relatedInvoice1);
                }
            
                const relatedInvoice2 = await ArInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ArInvoices.count())),
                });
                const ArInvoiceItem2 = await ArInvoiceItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ArInvoiceItem2?.setInvoice)
                {
                    await
                    ArInvoiceItem2.
                    setInvoice(relatedInvoice2);
                }
            
                const relatedInvoice3 = await ArInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ArInvoices.count())),
                });
                const ArInvoiceItem3 = await ArInvoiceItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ArInvoiceItem3?.setInvoice)
                {
                    await
                    ArInvoiceItem3.
                    setInvoice(relatedInvoice3);
                }
            
                const relatedInvoice4 = await ArInvoices.findOne({
                    offset: Math.floor(Math.random() * (await ArInvoices.count())),
                });
                const ArInvoiceItem4 = await ArInvoiceItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ArInvoiceItem4?.setInvoice)
                {
                    await
                    ArInvoiceItem4.
                    setInvoice(relatedInvoice4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateJobRequisitionWithApprovedbymanageruser() {
            
                const relatedApprovedbymanageruser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition0 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobRequisition0?.setApprovedbymanageruser)
                {
                    await
                    JobRequisition0.
                    setApprovedbymanageruser(relatedApprovedbymanageruser0);
                }
            
                const relatedApprovedbymanageruser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition1 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobRequisition1?.setApprovedbymanageruser)
                {
                    await
                    JobRequisition1.
                    setApprovedbymanageruser(relatedApprovedbymanageruser1);
                }
            
                const relatedApprovedbymanageruser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition2 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobRequisition2?.setApprovedbymanageruser)
                {
                    await
                    JobRequisition2.
                    setApprovedbymanageruser(relatedApprovedbymanageruser2);
                }
            
                const relatedApprovedbymanageruser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition3 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobRequisition3?.setApprovedbymanageruser)
                {
                    await
                    JobRequisition3.
                    setApprovedbymanageruser(relatedApprovedbymanageruser3);
                }
            
                const relatedApprovedbymanageruser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition4 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobRequisition4?.setApprovedbymanageruser)
                {
                    await
                    JobRequisition4.
                    setApprovedbymanageruser(relatedApprovedbymanageruser4);
                }
            
        }
        
    
        
            
            async function associateJobRequisitionWithApprovedbyhruser() {
            
                const relatedApprovedbyhruser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition0 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JobRequisition0?.setApprovedbyhruser)
                {
                    await
                    JobRequisition0.
                    setApprovedbyhruser(relatedApprovedbyhruser0);
                }
            
                const relatedApprovedbyhruser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition1 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JobRequisition1?.setApprovedbyhruser)
                {
                    await
                    JobRequisition1.
                    setApprovedbyhruser(relatedApprovedbyhruser1);
                }
            
                const relatedApprovedbyhruser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition2 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JobRequisition2?.setApprovedbyhruser)
                {
                    await
                    JobRequisition2.
                    setApprovedbyhruser(relatedApprovedbyhruser2);
                }
            
                const relatedApprovedbyhruser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition3 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JobRequisition3?.setApprovedbyhruser)
                {
                    await
                    JobRequisition3.
                    setApprovedbyhruser(relatedApprovedbyhruser3);
                }
            
                const relatedApprovedbyhruser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const JobRequisition4 = await JobRequisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JobRequisition4?.setApprovedbyhruser)
                {
                    await
                    JobRequisition4.
                    setApprovedbyhruser(relatedApprovedbyhruser4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApplicantWithJobrequisition() {
            
                const relatedJobrequisition0 = await JobRequisitions.findOne({
                    offset: Math.floor(Math.random() * (await JobRequisitions.count())),
                });
                const Applicant0 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Applicant0?.setJobrequisition)
                {
                    await
                    Applicant0.
                    setJobrequisition(relatedJobrequisition0);
                }
            
                const relatedJobrequisition1 = await JobRequisitions.findOne({
                    offset: Math.floor(Math.random() * (await JobRequisitions.count())),
                });
                const Applicant1 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Applicant1?.setJobrequisition)
                {
                    await
                    Applicant1.
                    setJobrequisition(relatedJobrequisition1);
                }
            
                const relatedJobrequisition2 = await JobRequisitions.findOne({
                    offset: Math.floor(Math.random() * (await JobRequisitions.count())),
                });
                const Applicant2 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Applicant2?.setJobrequisition)
                {
                    await
                    Applicant2.
                    setJobrequisition(relatedJobrequisition2);
                }
            
                const relatedJobrequisition3 = await JobRequisitions.findOne({
                    offset: Math.floor(Math.random() * (await JobRequisitions.count())),
                });
                const Applicant3 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Applicant3?.setJobrequisition)
                {
                    await
                    Applicant3.
                    setJobrequisition(relatedJobrequisition3);
                }
            
                const relatedJobrequisition4 = await JobRequisitions.findOne({
                    offset: Math.floor(Math.random() * (await JobRequisitions.count())),
                });
                const Applicant4 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Applicant4?.setJobrequisition)
                {
                    await
                    Applicant4.
                    setJobrequisition(relatedJobrequisition4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateApplicantWithConvertedemployee() {
            
                const relatedConvertedemployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Applicant0 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Applicant0?.setConvertedemployee)
                {
                    await
                    Applicant0.
                    setConvertedemployee(relatedConvertedemployee0);
                }
            
                const relatedConvertedemployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Applicant1 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Applicant1?.setConvertedemployee)
                {
                    await
                    Applicant1.
                    setConvertedemployee(relatedConvertedemployee1);
                }
            
                const relatedConvertedemployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Applicant2 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Applicant2?.setConvertedemployee)
                {
                    await
                    Applicant2.
                    setConvertedemployee(relatedConvertedemployee2);
                }
            
                const relatedConvertedemployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Applicant3 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Applicant3?.setConvertedemployee)
                {
                    await
                    Applicant3.
                    setConvertedemployee(relatedConvertedemployee3);
                }
            
                const relatedConvertedemployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Applicant4 = await Applicants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Applicant4?.setConvertedemployee)
                {
                    await
                    Applicant4.
                    setConvertedemployee(relatedConvertedemployee4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateApprovalRequestWithRequestedbyuser() {
            
                const relatedRequestedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest0 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalRequest0?.setRequestedbyuser)
                {
                    await
                    ApprovalRequest0.
                    setRequestedbyuser(relatedRequestedbyuser0);
                }
            
                const relatedRequestedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest1 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalRequest1?.setRequestedbyuser)
                {
                    await
                    ApprovalRequest1.
                    setRequestedbyuser(relatedRequestedbyuser1);
                }
            
                const relatedRequestedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest2 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalRequest2?.setRequestedbyuser)
                {
                    await
                    ApprovalRequest2.
                    setRequestedbyuser(relatedRequestedbyuser2);
                }
            
                const relatedRequestedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest3 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalRequest3?.setRequestedbyuser)
                {
                    await
                    ApprovalRequest3.
                    setRequestedbyuser(relatedRequestedbyuser3);
                }
            
                const relatedRequestedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest4 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalRequest4?.setRequestedbyuser)
                {
                    await
                    ApprovalRequest4.
                    setRequestedbyuser(relatedRequestedbyuser4);
                }
            
        }
        
    
        
    
        
            
            async function associateApprovalRequestWithApprovedbyuser() {
            
                const relatedApprovedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest0 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalRequest0?.setApprovedbyuser)
                {
                    await
                    ApprovalRequest0.
                    setApprovedbyuser(relatedApprovedbyuser0);
                }
            
                const relatedApprovedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest1 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalRequest1?.setApprovedbyuser)
                {
                    await
                    ApprovalRequest1.
                    setApprovedbyuser(relatedApprovedbyuser1);
                }
            
                const relatedApprovedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest2 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalRequest2?.setApprovedbyuser)
                {
                    await
                    ApprovalRequest2.
                    setApprovedbyuser(relatedApprovedbyuser2);
                }
            
                const relatedApprovedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest3 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalRequest3?.setApprovedbyuser)
                {
                    await
                    ApprovalRequest3.
                    setApprovedbyuser(relatedApprovedbyuser3);
                }
            
                const relatedApprovedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest4 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalRequest4?.setApprovedbyuser)
                {
                    await
                    ApprovalRequest4.
                    setApprovedbyuser(relatedApprovedbyuser4);
                }
            
        }
        
    
        
    
        
            
            async function associateApprovalRequestWithRejectedbyuser() {
            
                const relatedRejectedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest0 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalRequest0?.setRejectedbyuser)
                {
                    await
                    ApprovalRequest0.
                    setRejectedbyuser(relatedRejectedbyuser0);
                }
            
                const relatedRejectedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest1 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalRequest1?.setRejectedbyuser)
                {
                    await
                    ApprovalRequest1.
                    setRejectedbyuser(relatedRejectedbyuser1);
                }
            
                const relatedRejectedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest2 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalRequest2?.setRejectedbyuser)
                {
                    await
                    ApprovalRequest2.
                    setRejectedbyuser(relatedRejectedbyuser2);
                }
            
                const relatedRejectedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest3 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalRequest3?.setRejectedbyuser)
                {
                    await
                    ApprovalRequest3.
                    setRejectedbyuser(relatedRejectedbyuser3);
                }
            
                const relatedRejectedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApprovalRequest4 = await ApprovalRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalRequest4?.setRejectedbyuser)
                {
                    await
                    ApprovalRequest4.
                    setRejectedbyuser(relatedRejectedbyuser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNotificationWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setUser)
                {
                    await
                    Notification0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setUser)
                {
                    await
                    Notification1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setUser)
                {
                    await
                    Notification2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification3 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Notification3?.setUser)
                {
                    await
                    Notification3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification4 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Notification4?.setUser)
                {
                    await
                    Notification4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateExportRequestWithRequestedbyuser() {
            
                const relatedRequestedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest0 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExportRequest0?.setRequestedbyuser)
                {
                    await
                    ExportRequest0.
                    setRequestedbyuser(relatedRequestedbyuser0);
                }
            
                const relatedRequestedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest1 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExportRequest1?.setRequestedbyuser)
                {
                    await
                    ExportRequest1.
                    setRequestedbyuser(relatedRequestedbyuser1);
                }
            
                const relatedRequestedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest2 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExportRequest2?.setRequestedbyuser)
                {
                    await
                    ExportRequest2.
                    setRequestedbyuser(relatedRequestedbyuser2);
                }
            
                const relatedRequestedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest3 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ExportRequest3?.setRequestedbyuser)
                {
                    await
                    ExportRequest3.
                    setRequestedbyuser(relatedRequestedbyuser3);
                }
            
                const relatedRequestedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest4 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ExportRequest4?.setRequestedbyuser)
                {
                    await
                    ExportRequest4.
                    setRequestedbyuser(relatedRequestedbyuser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateExportRequestWithApprovedbyuser() {
            
                const relatedApprovedbyuser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest0 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExportRequest0?.setApprovedbyuser)
                {
                    await
                    ExportRequest0.
                    setApprovedbyuser(relatedApprovedbyuser0);
                }
            
                const relatedApprovedbyuser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest1 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExportRequest1?.setApprovedbyuser)
                {
                    await
                    ExportRequest1.
                    setApprovedbyuser(relatedApprovedbyuser1);
                }
            
                const relatedApprovedbyuser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest2 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExportRequest2?.setApprovedbyuser)
                {
                    await
                    ExportRequest2.
                    setApprovedbyuser(relatedApprovedbyuser2);
                }
            
                const relatedApprovedbyuser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest3 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ExportRequest3?.setApprovedbyuser)
                {
                    await
                    ExportRequest3.
                    setApprovedbyuser(relatedApprovedbyuser3);
                }
            
                const relatedApprovedbyuser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ExportRequest4 = await ExportRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ExportRequest4?.setApprovedbyuser)
                {
                    await
                    ExportRequest4.
                    setApprovedbyuser(relatedApprovedbyuser4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePasswordHistoryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PasswordHistory0 = await PasswordHistories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PasswordHistory0?.setUser)
                {
                    await
                    PasswordHistory0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PasswordHistory1 = await PasswordHistories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PasswordHistory1?.setUser)
                {
                    await
                    PasswordHistory1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PasswordHistory2 = await PasswordHistories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PasswordHistory2?.setUser)
                {
                    await
                    PasswordHistory2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PasswordHistory3 = await PasswordHistories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PasswordHistory3?.setUser)
                {
                    await
                    PasswordHistory3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PasswordHistory4 = await PasswordHistories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PasswordHistory4?.setUser)
                {
                    await
                    PasswordHistory4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateRefreshTokenWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RefreshToken0 = await RefreshTokens.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RefreshToken0?.setUser)
                {
                    await
                    RefreshToken0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RefreshToken1 = await RefreshTokens.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RefreshToken1?.setUser)
                {
                    await
                    RefreshToken1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RefreshToken2 = await RefreshTokens.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RefreshToken2?.setUser)
                {
                    await
                    RefreshToken2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RefreshToken3 = await RefreshTokens.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RefreshToken3?.setUser)
                {
                    await
                    RefreshToken3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const RefreshToken4 = await RefreshTokens.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RefreshToken4?.setUser)
                {
                    await
                    RefreshToken4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAuditLogWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog0 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditLog0?.setUser)
                {
                    await
                    AuditLog0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog1 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditLog1?.setUser)
                {
                    await
                    AuditLog1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog2 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditLog2?.setUser)
                {
                    await
                    AuditLog2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog3 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditLog3?.setUser)
                {
                    await
                    AuditLog3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog4 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditLog4?.setUser)
                {
                    await
                    AuditLog4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await SystemParameters.bulkCreate(SystemParametersData);
                
            
            
                
                await Holidays.bulkCreate(HolidaysData);
                
            
            
                
                await SssContributionTables.bulkCreate(SssContributionTablesData);
                
            
            
                
                await WithholdingTaxTables.bulkCreate(WithholdingTaxTablesData);
                
            
            
                
                await FiscalPeriods.bulkCreate(FiscalPeriodsData);
                
            
            
                
                await CostCenters.bulkCreate(CostCentersData);
                
            
            
                
                await Departments.bulkCreate(DepartmentsData);
                
            
            
                
                await Positions.bulkCreate(PositionsData);
                
            
            
                
                await Shifts.bulkCreate(ShiftsData);
                
            
            
                
                await Employees.bulkCreate(EmployeesData);
                
            
            
                
                await EmployeeDocuments.bulkCreate(EmployeeDocumentsData);
                
            
            
                
                await TimeRecords.bulkCreate(TimeRecordsData);
                
            
            
                
                await BiometricImports.bulkCreate(BiometricImportsData);
                
            
            
                
                await LeaveTypes.bulkCreate(LeaveTypesData);
                
            
            
                
                await LeaveBalances.bulkCreate(LeaveBalancesData);
                
            
            
                
                await LeaveApplications.bulkCreate(LeaveApplicationsData);
                
            
            
                
                await EmployeeLoans.bulkCreate(EmployeeLoansData);
                
            
            
                
                await LoanDeductions.bulkCreate(LoanDeductionsData);
                
            
            
                
                await PayrollRuns.bulkCreate(PayrollRunsData);
                
            
            
                
                await PayrollItems.bulkCreate(PayrollItemsData);
                
            
            
                
                await BankFiles.bulkCreate(BankFilesData);
                
            
            
                
                await Accounts.bulkCreate(AccountsData);
                
            
            
                
                await JournalEntries.bulkCreate(JournalEntriesData);
                
            
            
                
                await JournalLines.bulkCreate(JournalLinesData);
                
            
            
                
                await Vendors.bulkCreate(VendorsData);
                
            
            
                
                await ApInvoices.bulkCreate(ApInvoicesData);
                
            
            
                
                await ApPayments.bulkCreate(ApPaymentsData);
                
            
            
                
                await ApPaymentLines.bulkCreate(ApPaymentLinesData);
                
            
            
                
                await Customers.bulkCreate(CustomersData);
                
            
            
                
                await ArInvoices.bulkCreate(ArInvoicesData);
                
            
            
                
                await ArInvoiceItems.bulkCreate(ArInvoiceItemsData);
                
            
            
                
                await JobRequisitions.bulkCreate(JobRequisitionsData);
                
            
            
                
                await Applicants.bulkCreate(ApplicantsData);
                
            
            
                
                await ApprovalRequests.bulkCreate(ApprovalRequestsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await ExportRequests.bulkCreate(ExportRequestsData);
                
            
            
                
                await PasswordHistories.bulkCreate(PasswordHistoriesData);
                
            
            
                
                await RefreshTokens.bulkCreate(RefreshTokensData);
                
            
            
                
                await AuditLogs.bulkCreate(AuditLogsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSystemParameterWithLastupdatedbyuser(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFiscalPeriodWithClosedbyuser(),
                    
                
                    
                
                    
                        
                        await associateFiscalPeriodWithLockedbyuser(),
                    
                
            
                
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateDepartmentWithCostcenter(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEmployeeWithDepartment(),
                    
                
                    
                        
                        await associateEmployeeWithPosition(),
                    
                
                    
                        
                        await associateEmployeeWithShift(),
                    
                
                    
                        
                        await associateEmployeeWithReportingto(),
                    
                
            
                
                
                    
                        
                        await associateEmployeeDocumentWithEmployee(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateEmployeeDocumentWithUploadedbyuser(),
                    
                
            
                
                
                    
                        
                        await associateTimeRecordWithEmployee(),
                    
                
                    
                        
                        await associateTimeRecordWithShift(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTimeRecordWithModifiedbyuser(),
                    
                
                    
                
                    
                        
                        await associateTimeRecordWithApprovedbyuser(),
                    
                
                    
                
                    
                        
                        await associateTimeRecordWithPayrollrun(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBiometricImportWithImportedbyuser(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeaveBalanceWithEmployee(),
                    
                
                    
                        
                        await associateLeaveBalanceWithLeavetype(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeaveApplicationWithEmployee(),
                    
                
                    
                        
                        await associateLeaveApplicationWithLeavetype(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLeaveApplicationWithApprovedbyuser(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateEmployeeLoanWithEmployee(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLoanDeductionWithLoan(),
                    
                
                    
                        
                        await associateLoanDeductionWithPayrollitem(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePayrollRunWithApprovedbyuser(),
                    
                
                    
                        
                        await associatePayrollRunWithPostedbyuser(),
                    
                
                    
                
                    
                        
                        await associatePayrollRunWithJournalentry(),
                    
                
            
                
                
                    
                        
                        await associatePayrollItemWithPayrollrun(),
                    
                
                    
                        
                        await associatePayrollItemWithEmployee(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBankFileWithPayrollrun(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBankFileWithGeneratedbyuser(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAccountWithParent(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateJournalEntryWithPayrollrun(),
                    
                
                    
                        
                        await associateJournalEntryWithReversalofentry(),
                    
                
                    
                
                    
                        
                        await associateJournalEntryWithPostedbyuser(),
                    
                
            
                
                
                    
                        
                        await associateJournalLineWithJournalentry(),
                    
                
                    
                        
                        await associateJournalLineWithAccount(),
                    
                
                    
                        
                        await associateJournalLineWithCostcenter(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateVendorWithDefaultaccount(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateApInvoiceWithVendor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApInvoiceWithGlaccount(),
                    
                
                    
                        
                        await associateApInvoiceWithCostcenter(),
                    
                
                    
                
                    
                        
                        await associateApInvoiceWithJournalentry(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApPaymentWithCreatedbyuser(),
                    
                
                    
                        
                        await associateApPaymentWithApprovedbyuser(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateApPaymentLineWithPayment(),
                    
                
                    
                        
                        await associateApPaymentLineWithInvoice(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateArInvoiceWithCustomer(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateArInvoiceItemWithInvoice(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateJobRequisitionWithApprovedbymanageruser(),
                    
                
                    
                        
                        await associateJobRequisitionWithApprovedbyhruser(),
                    
                
            
                
                
                    
                        
                        await associateApplicantWithJobrequisition(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApplicantWithConvertedemployee(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApprovalRequestWithRequestedbyuser(),
                    
                
                    
                
                    
                        
                        await associateApprovalRequestWithApprovedbyuser(),
                    
                
                    
                
                    
                        
                        await associateApprovalRequestWithRejectedbyuser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateExportRequestWithRequestedbyuser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateExportRequestWithApprovedbyuser(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePasswordHistoryWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateRefreshTokenWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAuditLogWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('system_parameters', null, {});
            
            
            await queryInterface.bulkDelete('holidays', null, {});
            
            
            await queryInterface.bulkDelete('sss_contribution_tables', null, {});
            
            
            await queryInterface.bulkDelete('withholding_tax_tables', null, {});
            
            
            await queryInterface.bulkDelete('fiscal_periods', null, {});
            
            
            await queryInterface.bulkDelete('cost_centers', null, {});
            
            
            await queryInterface.bulkDelete('departments', null, {});
            
            
            await queryInterface.bulkDelete('positions', null, {});
            
            
            await queryInterface.bulkDelete('shifts', null, {});
            
            
            await queryInterface.bulkDelete('employees', null, {});
            
            
            await queryInterface.bulkDelete('employee_documents', null, {});
            
            
            await queryInterface.bulkDelete('time_records', null, {});
            
            
            await queryInterface.bulkDelete('biometric_imports', null, {});
            
            
            await queryInterface.bulkDelete('leave_types', null, {});
            
            
            await queryInterface.bulkDelete('leave_balances', null, {});
            
            
            await queryInterface.bulkDelete('leave_applications', null, {});
            
            
            await queryInterface.bulkDelete('employee_loans', null, {});
            
            
            await queryInterface.bulkDelete('loan_deductions', null, {});
            
            
            await queryInterface.bulkDelete('payroll_runs', null, {});
            
            
            await queryInterface.bulkDelete('payroll_items', null, {});
            
            
            await queryInterface.bulkDelete('bank_files', null, {});
            
            
            await queryInterface.bulkDelete('accounts', null, {});
            
            
            await queryInterface.bulkDelete('journal_entries', null, {});
            
            
            await queryInterface.bulkDelete('journal_lines', null, {});
            
            
            await queryInterface.bulkDelete('vendors', null, {});
            
            
            await queryInterface.bulkDelete('ap_invoices', null, {});
            
            
            await queryInterface.bulkDelete('ap_payments', null, {});
            
            
            await queryInterface.bulkDelete('ap_payment_lines', null, {});
            
            
            await queryInterface.bulkDelete('customers', null, {});
            
            
            await queryInterface.bulkDelete('ar_invoices', null, {});
            
            
            await queryInterface.bulkDelete('ar_invoice_items', null, {});
            
            
            await queryInterface.bulkDelete('job_requisitions', null, {});
            
            
            await queryInterface.bulkDelete('applicants', null, {});
            
            
            await queryInterface.bulkDelete('approval_requests', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('export_requests', null, {});
            
            
            await queryInterface.bulkDelete('password_histories', null, {});
            
            
            await queryInterface.bulkDelete('refresh_tokens', null, {});
            
            
            await queryInterface.bulkDelete('audit_logs', null, {});
            
        
    },
};