





















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






const Organizations = db.organizations;

const Provinces = db.provinces;

const Departments = db.departments;

const RolePermissions = db.role_permissions;

const Permissions = db.permissions;

const ApprovalWorkflows = db.approval_workflows;

const ApprovalSteps = db.approval_steps;

const Approvals = db.approvals;

const Notifications = db.notifications;

const AuditLogs = db.audit_logs;

const FiscalYears = db.fiscal_years;

const FundingSources = db.funding_sources;

const BudgetPrograms = db.budget_programs;

const BudgetLines = db.budget_lines;

const Allocations = db.allocations;

const BudgetReallocations = db.budget_reallocations;

const ProcurementPlans = db.procurement_plans;

const Requisitions = db.requisitions;

const Tenders = db.tenders;

const Vendors = db.vendors;

const VendorComplianceDocuments = db.vendor_compliance_documents;

const Bids = db.bids;

const BidEvaluations = db.bid_evaluations;

const Awards = db.awards;

const Programs = db.programs;

const Projects = db.projects;

const ProjectMilestones = db.project_milestones;

const Risks = db.risks;

const Issues = db.issues;

const FieldVerifications = db.field_verifications;

const Contracts = db.contracts;

const ContractAmendments = db.contract_amendments;

const ContractMilestones = db.contract_milestones;

const Grants = db.grants;

const Beneficiaries = db.beneficiaries;

const GrantApplications = db.grant_applications;

const GrantEvaluations = db.grant_evaluations;

const GrantTranches = db.grant_tranches;

const ExpenseCategories = db.expense_categories;

const Invoices = db.invoices;

const PaymentRequests = db.payment_requests;

const PaymentBatches = db.payment_batches;

const Payments = db.payments;

const Obligations = db.obligations;

const LedgerEntries = db.ledger_entries;

const Documents = db.documents;

const ComplianceAlerts = db.compliance_alerts;







const OrganizationsData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
    },
    
];



const ProvincesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
];



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



const RolePermissionsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                // 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
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApprovalWorkflowsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "module": "document",
            
        
    
        
        
            
                "record_type": "tenders",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "module": "budget",
            
        
    
        
        
            
                "record_type": "requisitions",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "module": "grant",
            
        
    
        
        
            
                "record_type": "contract_amendments",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "module": "budget",
            
        
    
        
        
            
                "record_type": "awards",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "module": "grant",
            
        
    
        
        
            
                "record_type": "contracts",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
];



const ApprovalStepsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_order": 7,
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_amount": 4.17,
            
        
    
        
        
            
                "max_amount": 4.94,
            
        
    
        
        
            
                "requires_comment": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_order": 5,
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_amount": 1.23,
            
        
    
        
        
            
                "max_amount": 1.6,
            
        
    
        
        
            
                "requires_comment": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_order": 8,
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_amount": 4.31,
            
        
    
        
        
            
                "max_amount": 6.08,
            
        
    
        
        
            
                "requires_comment": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_order": 4,
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_amount": 3.86,
            
        
    
        
        
            
                "max_amount": 5.81,
            
        
    
        
        
            
                "requires_comment": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_order": 8,
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_amount": 2.31,
            
        
    
        
        
            
                "max_amount": 6.43,
            
        
    
        
        
            
                "requires_comment": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ApprovalsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "record_type": "Grace Hopper",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_comment": "Grace Hopper",
            
        
    
        
        
            
                "rejection_reason": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_comment": "Marie Curie",
            
        
    
        
        
            
                "rejection_reason": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Grace Hopper",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_comment": "Grace Hopper",
            
        
    
        
        
            
                "rejection_reason": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_comment": "Ada Lovelace",
            
        
    
        
        
            
                "rejection_reason": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "record_type": "Grace Hopper",
            
        
    
        
        
            
                "record_key": "Ada Lovelace",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "decision_comment": "Marie Curie",
            
        
    
        
        
            
                "rejection_reason": "Marie Curie",
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "vendor_compliance",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "record_type": "Marie Curie",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "system",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "system",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "record_type": "Grace Hopper",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                "read": false,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "document_required",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "record_type": "Marie Curie",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "vendor_compliance",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                "read": true,
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
];



const AuditLogsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Marie Curie",
            
        
    
        
        
            
                "entity_name": "Grace Hopper",
            
        
    
        
        
            
                "record_key": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Marie Curie",
            
        
    
        
        
            
                "entity_name": "Marie Curie",
            
        
    
        
        
            
                "record_key": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Alan Turing",
            
        
    
        
        
            
                "entity_name": "Grace Hopper",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "summary": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Marie Curie",
            
        
    
        
        
            
                "entity_name": "Grace Hopper",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "summary": "Marie Curie",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Ada Lovelace",
            
        
    
        
        
            
                "entity_name": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Ada Lovelace",
            
        
    
        
        
            
                "summary": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
    },
    
];



const FiscalYearsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "is_current": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "is_current": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "is_current": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "is_current": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "is_current": true,
            
        
    
    },
    
];



const FundingSourcesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "source_type": "other",
            
        
    
        
        
            
                "reference_code": "Marie Curie",
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "total_committed_amount": 9.37,
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "source_type": "state_program",
            
        
    
        
        
            
                "reference_code": "Ada Lovelace",
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "total_committed_amount": 6.72,
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "source_type": "government",
            
        
    
        
        
            
                "reference_code": "Grace Hopper",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "total_committed_amount": 6.8,
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "source_type": "donor",
            
        
    
        
        
            
                "reference_code": "Ada Lovelace",
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "total_committed_amount": 5.59,
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "source_type": "donor",
            
        
    
        
        
            
                "reference_code": "Grace Hopper",
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "total_committed_amount": 2.82,
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
];



const BudgetProgramsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "objective": "Ada Lovelace",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "approved_amount": 3.74,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "objective": "Grace Hopper",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "approved_amount": 8.87,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "objective": "Grace Hopper",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "approved_amount": 2.92,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "objective": "Grace Hopper",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "approved_amount": 9.46,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "objective": "Ada Lovelace",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "approved_amount": 0.85,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
    },
    
];



const BudgetLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "services",
            
        
    
        
        
            
                "approved_amount": 5.7,
            
        
    
        
        
            
                "committed_amount": 9.7,
            
        
    
        
        
            
                "disbursed_amount": 3.13,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "other",
            
        
    
        
        
            
                "approved_amount": 9.32,
            
        
    
        
        
            
                "committed_amount": 0.5,
            
        
    
        
        
            
                "disbursed_amount": 1.33,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "category": "infrastructure",
            
        
    
        
        
            
                "approved_amount": 4.0,
            
        
    
        
        
            
                "committed_amount": 5.91,
            
        
    
        
        
            
                "disbursed_amount": 9.77,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "opex",
            
        
    
        
        
            
                "approved_amount": 3.36,
            
        
    
        
        
            
                "committed_amount": 0.66,
            
        
    
        
        
            
                "disbursed_amount": 2.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "capex",
            
        
    
        
        
            
                "approved_amount": 3.53,
            
        
    
        
        
            
                "committed_amount": 9.25,
            
        
    
        
        
            
                "disbursed_amount": 1.08,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AllocationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 4.7,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "reduced",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 1.36,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 6.01,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "reduced",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 8.15,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 1.49,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "allocated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BudgetReallocationsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 2.85,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 9.92,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 1.82,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 6.51,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "amount": 3.33,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Alan Turing",
            
        
    
    },
    
];



const ProcurementPlansData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "estimated_total_amount": 1.35,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "estimated_total_amount": 1.4,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "estimated_total_amount": 9.76,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "estimated_total_amount": 4.57,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "estimated_total_amount": 3.86,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
    },
    
];



const RequisitionsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requisition_number": "Ada Lovelace",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "scope_of_work": "Alan Turing",
            
        
    
        
        
            
                "procurement_method": "restricted_tender",
            
        
    
        
        
            
                "estimated_amount": 5.49,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "needed_by_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "rejection_reason": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requisition_number": "Marie Curie",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "scope_of_work": "Marie Curie",
            
        
    
        
        
            
                "procurement_method": "rfq",
            
        
    
        
        
            
                "estimated_amount": 8.63,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "needed_by_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "rejection_reason": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requisition_number": "Marie Curie",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "scope_of_work": "Grace Hopper",
            
        
    
        
        
            
                "procurement_method": "consultation",
            
        
    
        
        
            
                "estimated_amount": 0.35,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "needed_by_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "rejection_reason": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requisition_number": "Grace Hopper",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "scope_of_work": "Ada Lovelace",
            
        
    
        
        
            
                "procurement_method": "consultation",
            
        
    
        
        
            
                "estimated_amount": 1.66,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "needed_by_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "rejection_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requisition_number": "Ada Lovelace",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "scope_of_work": "Alan Turing",
            
        
    
        
        
            
                "procurement_method": "direct_award",
            
        
    
        
        
            
                "estimated_amount": 2.53,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "needed_by_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "rejection_reason": "Alan Turing",
            
        
    
    },
    
];



const TendersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tender_number": "Alan Turing",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "tender_type": "consultation",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closing_at": new Date(Date.now()),
            
        
    
        
        
            
                "opening_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "eligibility_criteria": "Alan Turing",
            
        
    
        
        
            
                "submission_instructions": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tender_number": "Marie Curie",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "tender_type": "consultation",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closing_at": new Date(Date.now()),
            
        
    
        
        
            
                "opening_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "published",
            
        
    
        
        
            
                "eligibility_criteria": "Marie Curie",
            
        
    
        
        
            
                "submission_instructions": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tender_number": "Alan Turing",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "tender_type": "rfq",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closing_at": new Date(Date.now()),
            
        
    
        
        
            
                "opening_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "eligibility_criteria": "Ada Lovelace",
            
        
    
        
        
            
                "submission_instructions": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tender_number": "Alan Turing",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "tender_type": "open_tender",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closing_at": new Date(Date.now()),
            
        
    
        
        
            
                "opening_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "eligibility_criteria": "Grace Hopper",
            
        
    
        
        
            
                "submission_instructions": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tender_number": "Grace Hopper",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "tender_type": "restricted_tender",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                "closing_at": new Date(Date.now()),
            
        
    
        
        
            
                "opening_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "awarded",
            
        
    
        
        
            
                "eligibility_criteria": "Ada Lovelace",
            
        
    
        
        
            
                "submission_instructions": "Marie Curie",
            
        
    
    },
    
];



const VendorsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "trade_name": "Ada Lovelace",
            
        
    
        
        
            
                "vendor_type": "company",
            
        
    
        
        
            
                "registration_number": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Grace Hopper",
            
        
    
        
        
            
                "contact_name": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "bank_name": "Alan Turing",
            
        
    
        
        
            
                "bank_account_number": "Alan Turing",
            
        
    
        
        
            
                "bank_account_name": "Marie Curie",
            
        
    
        
        
            
                "bank_swift": "Marie Curie",
            
        
    
        
        
            
                "qualification_status": "conditionally_qualified",
            
        
    
        
        
            
                "qualification_reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "risk_rating": "medium",
            
        
    
        
        
            
                "is_blacklisted": true,
            
        
    
        
        
            
                "compliance_valid_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "trade_name": "Ada Lovelace",
            
        
    
        
        
            
                "vendor_type": "ngo",
            
        
    
        
        
            
                "registration_number": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Grace Hopper",
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "bank_name": "Alan Turing",
            
        
    
        
        
            
                "bank_account_number": "Marie Curie",
            
        
    
        
        
            
                "bank_account_name": "Ada Lovelace",
            
        
    
        
        
            
                "bank_swift": "Alan Turing",
            
        
    
        
        
            
                "qualification_status": "qualified",
            
        
    
        
        
            
                "qualification_reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "risk_rating": "high",
            
        
    
        
        
            
                "is_blacklisted": true,
            
        
    
        
        
            
                "compliance_valid_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "trade_name": "Alan Turing",
            
        
    
        
        
            
                "vendor_type": "company",
            
        
    
        
        
            
                "registration_number": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Grace Hopper",
            
        
    
        
        
            
                "contact_name": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "bank_name": "Alan Turing",
            
        
    
        
        
            
                "bank_account_number": "Grace Hopper",
            
        
    
        
        
            
                "bank_account_name": "Grace Hopper",
            
        
    
        
        
            
                "bank_swift": "Ada Lovelace",
            
        
    
        
        
            
                "qualification_status": "disqualified",
            
        
    
        
        
            
                "qualification_reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "risk_rating": "high",
            
        
    
        
        
            
                "is_blacklisted": true,
            
        
    
        
        
            
                "compliance_valid_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "trade_name": "Alan Turing",
            
        
    
        
        
            
                "vendor_type": "public_entity",
            
        
    
        
        
            
                "registration_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "contact_name": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "bank_name": "Ada Lovelace",
            
        
    
        
        
            
                "bank_account_number": "Ada Lovelace",
            
        
    
        
        
            
                "bank_account_name": "Grace Hopper",
            
        
    
        
        
            
                "bank_swift": "Grace Hopper",
            
        
    
        
        
            
                "qualification_status": "qualified",
            
        
    
        
        
            
                "qualification_reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "risk_rating": "critical",
            
        
    
        
        
            
                "is_blacklisted": true,
            
        
    
        
        
            
                "compliance_valid_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "trade_name": "Ada Lovelace",
            
        
    
        
        
            
                "vendor_type": "individual",
            
        
    
        
        
            
                "registration_number": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Alan Turing",
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "bank_name": "Grace Hopper",
            
        
    
        
        
            
                "bank_account_number": "Marie Curie",
            
        
    
        
        
            
                "bank_account_name": "Alan Turing",
            
        
    
        
        
            
                "bank_swift": "Ada Lovelace",
            
        
    
        
        
            
                "qualification_status": "suspended",
            
        
    
        
        
            
                "qualification_reviewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "risk_rating": "medium",
            
        
    
        
        
            
                "is_blacklisted": false,
            
        
    
        
        
            
                "compliance_valid_until": new Date(Date.now()),
            
        
    
    },
    
];



const VendorComplianceDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "business_license",
            
        
    
        
        
            
                "reference_number": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "valid",
            
        
    
        
        
            
                "review_comment": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "tax_clearance",
            
        
    
        
        
            
                "reference_number": "Alan Turing",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "expiring",
            
        
    
        
        
            
                "review_comment": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "id",
            
        
    
        
        
            
                "reference_number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "review_comment": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "cnss",
            
        
    
        
        
            
                "reference_number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "review_comment": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "document_type": "tax_clearance",
            
        
    
        
        
            
                "reference_number": "Grace Hopper",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "valid",
            
        
    
        
        
            
                "review_comment": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BidsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bid_reference": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "bid_amount": 6.63,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "non_responsive",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bid_reference": "Marie Curie",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "bid_amount": 8.49,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "non_responsive",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bid_reference": "Marie Curie",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "bid_amount": 9.2,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "withdrawn",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bid_reference": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "bid_amount": 0.24,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "recommended",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bid_reference": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "bid_amount": 1.07,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "responsive",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BidEvaluationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "technical_score": 5.93,
            
        
    
        
        
            
                "financial_score": 8.54,
            
        
    
        
        
            
                "total_score": 3.15,
            
        
    
        
        
            
                "recommendation": "reserve",
            
        
    
        
        
            
                "justification": "Grace Hopper",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "technical_score": 1.42,
            
        
    
        
        
            
                "financial_score": 6.25,
            
        
    
        
        
            
                "total_score": 3.83,
            
        
    
        
        
            
                "recommendation": "reserve",
            
        
    
        
        
            
                "justification": "Grace Hopper",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "technical_score": 1.13,
            
        
    
        
        
            
                "financial_score": 4.28,
            
        
    
        
        
            
                "total_score": 0.63,
            
        
    
        
        
            
                "recommendation": "reserve",
            
        
    
        
        
            
                "justification": "Alan Turing",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "technical_score": 0.87,
            
        
    
        
        
            
                "financial_score": 0.51,
            
        
    
        
        
            
                "total_score": 7.55,
            
        
    
        
        
            
                "recommendation": "award",
            
        
    
        
        
            
                "justification": "Alan Turing",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "technical_score": 3.45,
            
        
    
        
        
            
                "financial_score": 0.02,
            
        
    
        
        
            
                "total_score": 5.98,
            
        
    
        
        
            
                "recommendation": "reserve",
            
        
    
        
        
            
                "justification": "Grace Hopper",
            
        
    
        
        
            
                "evaluated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AwardsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_number": "Ada Lovelace",
            
        
    
        
        
            
                "award_amount": 7.46,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "decision_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "contract_initiated",
            
        
    
        
        
            
                "award_memo": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_number": "Ada Lovelace",
            
        
    
        
        
            
                "award_amount": 1.5,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "decision_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "award_memo": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_number": "Marie Curie",
            
        
    
        
        
            
                "award_amount": 1.55,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "decision_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "award_memo": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_number": "Alan Turing",
            
        
    
        
        
            
                "award_amount": 5.42,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "decision_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "award_memo": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "award_number": "Grace Hopper",
            
        
    
        
        
            
                "award_amount": 5.13,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "decision_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "contract_initiated",
            
        
    
        
        
            
                "award_memo": "Marie Curie",
            
        
    
    },
    
];



const ProgramsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "budget_amount": 2.1,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "budget_amount": 5.12,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "budget_amount": 5.68,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "budget_amount": 7.74,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "budget_amount": 7.65,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
    },
    
];



const ProjectsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "project_code": "Alan Turing",
            
        
    
        
        
            
                "implementing_entity": "Marie Curie",
            
        
    
        
        
            
                "objectives": "Alan Turing",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_budget": 0.48,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "completion_percent": 6,
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "risk_level": "low",
            
        
    
        
        
            
                "reporting_cycle": "Grace Hopper",
            
        
    
        
        
            
                "last_reported_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "project_code": "Marie Curie",
            
        
    
        
        
            
                "implementing_entity": "Grace Hopper",
            
        
    
        
        
            
                "objectives": "Marie Curie",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_budget": 9.08,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "completion_percent": 9,
            
        
    
        
        
            
                "status": "on_hold",
            
        
    
        
        
            
                "risk_level": "critical",
            
        
    
        
        
            
                "reporting_cycle": "Alan Turing",
            
        
    
        
        
            
                "last_reported_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "project_code": "Ada Lovelace",
            
        
    
        
        
            
                "implementing_entity": "Grace Hopper",
            
        
    
        
        
            
                "objectives": "Alan Turing",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_budget": 6.28,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "completion_percent": 2,
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "risk_level": "high",
            
        
    
        
        
            
                "reporting_cycle": "Ada Lovelace",
            
        
    
        
        
            
                "last_reported_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "project_code": "Marie Curie",
            
        
    
        
        
            
                "implementing_entity": "Alan Turing",
            
        
    
        
        
            
                "objectives": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_budget": 4.89,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "completion_percent": 5,
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "risk_level": "critical",
            
        
    
        
        
            
                "reporting_cycle": "Grace Hopper",
            
        
    
        
        
            
                "last_reported_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "project_code": "Alan Turing",
            
        
    
        
        
            
                "implementing_entity": "Marie Curie",
            
        
    
        
        
            
                "objectives": "Ada Lovelace",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_budget": 9.0,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "completion_percent": 5,
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "risk_level": "high",
            
        
    
        
        
            
                "reporting_cycle": "Alan Turing",
            
        
    
        
        
            
                "last_reported_at": new Date(Date.now()),
            
        
    
    },
    
];



const ProjectMilestonesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "planned_start_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "weight_percent": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "planned_start_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "weight_percent": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "planned_start_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                "weight_percent": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "planned_start_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "weight_percent": 5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "planned_start_date": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "actual_end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "weight_percent": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RisksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "stakeholder",
            
        
    
        
        
            
                "likelihood": "high",
            
        
    
        
        
            
                "impact": "medium",
            
        
    
        
        
            
                "status": "mitigating",
            
        
    
        
        
            
                "mitigation_plan": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "identified_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "category": "technical",
            
        
    
        
        
            
                "likelihood": "medium",
            
        
    
        
        
            
                "impact": "low",
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "mitigation_plan": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "identified_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "financial",
            
        
    
        
        
            
                "likelihood": "medium",
            
        
    
        
        
            
                "impact": "medium",
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "mitigation_plan": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "identified_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "category": "compliance",
            
        
    
        
        
            
                "likelihood": "high",
            
        
    
        
        
            
                "impact": "medium",
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "mitigation_plan": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "identified_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "category": "other",
            
        
    
        
        
            
                "likelihood": "high",
            
        
    
        
        
            
                "impact": "critical",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "mitigation_plan": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "identified_at": new Date(Date.now()),
            
        
    
        
        
            
                "review_due_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const IssuesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "severity": "low",
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "severity": "medium",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "severity": "high",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "severity": "low",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "severity": "critical",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FieldVerificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visit_date": new Date(Date.now()),
            
        
    
        
        
            
                "verification_type": "remote_validation",
            
        
    
        
        
            
                "outcome": "fail",
            
        
    
        
        
            
                "findings": "Grace Hopper",
            
        
    
        
        
            
                "actions_required": "Marie Curie",
            
        
    
        
        
            
                "next_followup_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visit_date": new Date(Date.now()),
            
        
    
        
        
            
                "verification_type": "site_visit",
            
        
    
        
        
            
                "outcome": "fail",
            
        
    
        
        
            
                "findings": "Grace Hopper",
            
        
    
        
        
            
                "actions_required": "Ada Lovelace",
            
        
    
        
        
            
                "next_followup_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visit_date": new Date(Date.now()),
            
        
    
        
        
            
                "verification_type": "remote_validation",
            
        
    
        
        
            
                "outcome": "pass",
            
        
    
        
        
            
                "findings": "Grace Hopper",
            
        
    
        
        
            
                "actions_required": "Alan Turing",
            
        
    
        
        
            
                "next_followup_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visit_date": new Date(Date.now()),
            
        
    
        
        
            
                "verification_type": "document_review",
            
        
    
        
        
            
                "outcome": "follow_up_required",
            
        
    
        
        
            
                "findings": "Alan Turing",
            
        
    
        
        
            
                "actions_required": "Alan Turing",
            
        
    
        
        
            
                "next_followup_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "visit_date": new Date(Date.now()),
            
        
    
        
        
            
                "verification_type": "document_review",
            
        
    
        
        
            
                "outcome": "fail",
            
        
    
        
        
            
                "findings": "Grace Hopper",
            
        
    
        
        
            
                "actions_required": "Alan Turing",
            
        
    
        
        
            
                "next_followup_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContractsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Alan Turing",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "contract_type": "goods",
            
        
    
        
        
            
                "contract_value": 6.15,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                "retention_percent": 2.77,
            
        
    
        
        
            
                "penalty_rate_percent": 8.6,
            
        
    
        
        
            
                "signed_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Marie Curie",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "contract_type": "goods",
            
        
    
        
        
            
                "contract_value": 7.83,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "retention_percent": 9.29,
            
        
    
        
        
            
                "penalty_rate_percent": 0.71,
            
        
    
        
        
            
                "signed_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Grace Hopper",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "contract_type": "grant_agreement",
            
        
    
        
        
            
                "contract_value": 9.6,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "retention_percent": 6.94,
            
        
    
        
        
            
                "penalty_rate_percent": 4.96,
            
        
    
        
        
            
                "signed_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Alan Turing",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "contract_type": "grant_agreement",
            
        
    
        
        
            
                "contract_value": 6.16,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "retention_percent": 5.4,
            
        
    
        
        
            
                "penalty_rate_percent": 3.12,
            
        
    
        
        
            
                "signed_at": 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "contract_type": "consulting",
            
        
    
        
        
            
                "contract_value": 6.98,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "suspended",
            
        
    
        
        
            
                "retention_percent": 7.73,
            
        
    
        
        
            
                "penalty_rate_percent": 9.48,
            
        
    
        
        
            
                "signed_at": new Date(Date.now()),
            
        
    
    },
    
];



const ContractAmendmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amendment_number": "Ada Lovelace",
            
        
    
        
        
            
                "amendment_type": "other",
            
        
    
        
        
            
                "value_change_amount": 3.28,
            
        
    
        
        
            
                "days_extension": 5,
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "implemented",
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amendment_number": "Alan Turing",
            
        
    
        
        
            
                "amendment_type": "time_extension",
            
        
    
        
        
            
                "value_change_amount": 0.51,
            
        
    
        
        
            
                "days_extension": 6,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amendment_number": "Alan Turing",
            
        
    
        
        
            
                "amendment_type": "scope_change",
            
        
    
        
        
            
                "value_change_amount": 0.47,
            
        
    
        
        
            
                "days_extension": 4,
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "implemented",
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amendment_number": "Alan Turing",
            
        
    
        
        
            
                "amendment_type": "scope_change",
            
        
    
        
        
            
                "value_change_amount": 9.96,
            
        
    
        
        
            
                "days_extension": 8,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amendment_number": "Marie Curie",
            
        
    
        
        
            
                "amendment_type": "value_change",
            
        
    
        
        
            
                "value_change_amount": 0.72,
            
        
    
        
        
            
                "days_extension": 2,
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "effective_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContractMilestonesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "deliverable_description": "Ada Lovelace",
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "payment_percent": 1.25,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "deliverable_description": "Marie Curie",
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "payment_percent": 3.74,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "deliverable_description": "Marie Curie",
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "overdue",
            
        
    
        
        
            
                "payment_percent": 5.95,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "deliverable_description": "Marie Curie",
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "planned",
            
        
    
        
        
            
                "payment_percent": 0.96,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "deliverable_description": "Alan Turing",
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "payment_percent": 1.36,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GrantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "funding_window_name": "Marie Curie",
            
        
    
        
        
            
                "call_reference": "Alan Turing",
            
        
    
        
        
            
                "call_open_at": new Date(Date.now()),
            
        
    
        
        
            
                "call_close_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "eligibility_rules": "Ada Lovelace",
            
        
    
        
        
            
                "total_envelope_amount": 6.9,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "funding_window_name": "Alan Turing",
            
        
    
        
        
            
                "call_reference": "Alan Turing",
            
        
    
        
        
            
                "call_open_at": new Date(Date.now()),
            
        
    
        
        
            
                "call_close_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "awarded",
            
        
    
        
        
            
                "eligibility_rules": "Ada Lovelace",
            
        
    
        
        
            
                "total_envelope_amount": 1.75,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "funding_window_name": "Ada Lovelace",
            
        
    
        
        
            
                "call_reference": "Ada Lovelace",
            
        
    
        
        
            
                "call_open_at": new Date(Date.now()),
            
        
    
        
        
            
                "call_close_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "eligibility_rules": "Marie Curie",
            
        
    
        
        
            
                "total_envelope_amount": 4.17,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "funding_window_name": "Marie Curie",
            
        
    
        
        
            
                "call_reference": "Alan Turing",
            
        
    
        
        
            
                "call_open_at": new Date(Date.now()),
            
        
    
        
        
            
                "call_close_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "disbursing",
            
        
    
        
        
            
                "eligibility_rules": "Marie Curie",
            
        
    
        
        
            
                "total_envelope_amount": 3.36,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "funding_window_name": "Ada Lovelace",
            
        
    
        
        
            
                "call_reference": "Grace Hopper",
            
        
    
        
        
            
                "call_open_at": new Date(Date.now()),
            
        
    
        
        
            
                "call_close_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "disbursing",
            
        
    
        
        
            
                "eligibility_rules": "Grace Hopper",
            
        
    
        
        
            
                "total_envelope_amount": 9.77,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
];



const BeneficiariesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "beneficiary_type": "local_government",
            
        
    
        
        
            
                "registration_number": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "approved_amount": 2.11,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "beneficiary_type": "operator",
            
        
    
        
        
            
                "registration_number": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "approved_amount": 5.68,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "suspended",
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "beneficiary_type": "community_center",
            
        
    
        
        
            
                "registration_number": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "approved_amount": 1.16,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "under_review",
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "beneficiary_type": "operator",
            
        
    
        
        
            
                "registration_number": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "approved_amount": 8.9,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "applicant",
            
        
    
        
        
            
                "approved_at": 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
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "beneficiary_type": "community_center",
            
        
    
        
        
            
                "registration_number": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "contact_phone": "Ada Lovelace",
            
        
    
        
        
            
                "approved_amount": 3.74,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GrantApplicationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "application_reference": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "requested_amount": 2.19,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "proposal_summary": "Ada Lovelace",
            
        
    
        
        
            
                "status": "eligible",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "application_reference": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "requested_amount": 4.85,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "proposal_summary": "Grace Hopper",
            
        
    
        
        
            
                "status": "eligible",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "application_reference": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "requested_amount": 5.17,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "proposal_summary": "Grace Hopper",
            
        
    
        
        
            
                "status": "scoring",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "application_reference": "Marie Curie",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "requested_amount": 9.45,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "proposal_summary": "Grace Hopper",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "application_reference": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "requested_amount": 8.98,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "proposal_summary": "Ada Lovelace",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GrantEvaluationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "score": 5.25,
            
        
    
        
        
            
                "comments": "Alan Turing",
            
        
    
        
        
            
                "recommendation": "approve",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "score": 7.35,
            
        
    
        
        
            
                "comments": "Ada Lovelace",
            
        
    
        
        
            
                "recommendation": "approve",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "score": 5.7,
            
        
    
        
        
            
                "comments": "Marie Curie",
            
        
    
        
        
            
                "recommendation": "approve",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "score": 7.42,
            
        
    
        
        
            
                "comments": "Grace Hopper",
            
        
    
        
        
            
                "recommendation": "revise",
            
        
    
        
        
            
                "evaluated_at": 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
            
        
    
        
        
            
                "score": 4.54,
            
        
    
        
        
            
                "comments": "Alan Turing",
            
        
    
        
        
            
                "recommendation": "revise",
            
        
    
        
        
            
                "evaluated_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const GrantTranchesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tranche_number": 4,
            
        
    
        
        
            
                "amount": 6.78,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "planned_disbursement_at": new Date(Date.now()),
            
        
    
        
        
            
                "disbursed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "disbursed",
            
        
    
        
        
            
                "conditions": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tranche_number": 9,
            
        
    
        
        
            
                "amount": 9.97,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "planned_disbursement_at": new Date(Date.now()),
            
        
    
        
        
            
                "disbursed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "conditions": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tranche_number": 8,
            
        
    
        
        
            
                "amount": 7.41,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "planned_disbursement_at": new Date(Date.now()),
            
        
    
        
        
            
                "disbursed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "pending_approval",
            
        
    
        
        
            
                "conditions": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tranche_number": 3,
            
        
    
        
        
            
                "amount": 5.32,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "planned_disbursement_at": new Date(Date.now()),
            
        
    
        
        
            
                "disbursed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "disbursed",
            
        
    
        
        
            
                "conditions": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tranche_number": 3,
            
        
    
        
        
            
                "amount": 6.84,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "planned_disbursement_at": new Date(Date.now()),
            
        
    
        
        
            
                "disbursed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "pending_approval",
            
        
    
        
        
            
                "conditions": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ExpenseCategoriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "status": "active",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "status": "inactive",
            
        
    
    },
    
];



const InvoicesData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoice_number": "Grace Hopper",
            
        
    
        
        
            
                "invoice_date": new Date(Date.now()),
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal_amount": 2.39,
            
        
    
        
        
            
                "tax_amount": 8.88,
            
        
    
        
        
            
                "total_amount": 3.21,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoice_number": "Grace Hopper",
            
        
    
        
        
            
                "invoice_date": new Date(Date.now()),
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal_amount": 6.89,
            
        
    
        
        
            
                "tax_amount": 6.84,
            
        
    
        
        
            
                "total_amount": 1.7,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "validated",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoice_number": "Grace Hopper",
            
        
    
        
        
            
                "invoice_date": new Date(Date.now()),
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal_amount": 4.33,
            
        
    
        
        
            
                "tax_amount": 4.12,
            
        
    
        
        
            
                "total_amount": 8.5,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "validated",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoice_number": "Alan Turing",
            
        
    
        
        
            
                "invoice_date": new Date(Date.now()),
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal_amount": 5.23,
            
        
    
        
        
            
                "tax_amount": 4.7,
            
        
    
        
        
            
                "total_amount": 9.48,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "disputed",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invoice_number": "Grace Hopper",
            
        
    
        
        
            
                "invoice_date": new Date(Date.now()),
            
        
    
        
        
            
                "received_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_date": new Date(Date.now()),
            
        
    
        
        
            
                "subtotal_amount": 3.41,
            
        
    
        
        
            
                "tax_amount": 9.7,
            
        
    
        
        
            
                "total_amount": 9.04,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
];



const PaymentRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_number": "Alan Turing",
            
        
    
        
        
            
                "requested_amount": 3.43,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "payment_method": "cash",
            
        
    
        
        
            
                "status": "batched",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_number": "Alan Turing",
            
        
    
        
        
            
                "requested_amount": 6.12,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "payment_method": "mobile_money",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_number": "Grace Hopper",
            
        
    
        
        
            
                "requested_amount": 0.37,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "payment_method": "check",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_number": "Grace Hopper",
            
        
    
        
        
            
                "requested_amount": 4.64,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "payment_method": "check",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "request_number": "Ada Lovelace",
            
        
    
        
        
            
                "requested_amount": 6.47,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "payment_method": "check",
            
        
    
        
        
            
                "status": "batched",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "justification": "Marie Curie",
            
        
    
    },
    
];



const PaymentBatchesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "batch_number": "Alan Turing",
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "total_amount": 4.77,
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "batch_number": "Alan Turing",
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "total_amount": 7.13,
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "batch_number": "Marie Curie",
            
        
    
        
        
            
                "status": "processing",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "total_amount": 2.14,
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "batch_number": "Alan Turing",
            
        
    
        
        
            
                "status": "submitted",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "total_amount": 8.92,
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "batch_number": "Ada Lovelace",
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "total_amount": 2.93,
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "payment_reference": "Marie Curie",
            
        
    
        
        
            
                "payment_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 6.75,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "payment_reference": "Alan Turing",
            
        
    
        
        
            
                "payment_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 9.43,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "reversed",
            
        
    
        
        
            
                "failure_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "payment_reference": "Alan Turing",
            
        
    
        
        
            
                "payment_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 3.22,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "status": "processed",
            
        
    
        
        
            
                "failure_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "payment_reference": "Alan Turing",
            
        
    
        
        
            
                "payment_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 6.17,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "payment_reference": "Alan Turing",
            
        
    
        
        
            
                "payment_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 5.51,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "status": "reversed",
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
    },
    
];



const ObligationsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "obligation_number": "Grace Hopper",
            
        
    
        
        
            
                "amount": 7.51,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "obligated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "obligation_number": "Grace Hopper",
            
        
    
        
        
            
                "amount": 5.18,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "obligated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "partially_settled",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "obligation_number": "Marie Curie",
            
        
    
        
        
            
                "amount": 9.76,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "obligated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "partially_settled",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "obligation_number": "Marie Curie",
            
        
    
        
        
            
                "amount": 8.01,
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "obligated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "settled",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "obligation_number": "Ada Lovelace",
            
        
    
        
        
            
                "amount": 1.79,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "obligated_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
];



const LedgerEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_reference": "Marie Curie",
            
        
    
        
        
            
                "entry_date": new Date(Date.now()),
            
        
    
        
        
            
                "entry_type": "reversal",
            
        
    
        
        
            
                "currency": "CDF",
            
        
    
        
        
            
                "debit_amount": 6.01,
            
        
    
        
        
            
                "credit_amount": 3.67,
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_reference": "Alan Turing",
            
        
    
        
        
            
                "entry_date": new Date(Date.now()),
            
        
    
        
        
            
                "entry_type": "commitment",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "debit_amount": 1.7,
            
        
    
        
        
            
                "credit_amount": 2.77,
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_reference": "Alan Turing",
            
        
    
        
        
            
                "entry_date": new Date(Date.now()),
            
        
    
        
        
            
                "entry_type": "adjustment",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "debit_amount": 5.72,
            
        
    
        
        
            
                "credit_amount": 7.3,
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_reference": "Marie Curie",
            
        
    
        
        
            
                "entry_date": new Date(Date.now()),
            
        
    
        
        
            
                "entry_type": "adjustment",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "debit_amount": 7.42,
            
        
    
        
        
            
                "credit_amount": 9.32,
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "record_type": "Marie Curie",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_reference": "Ada Lovelace",
            
        
    
        
        
            
                "entry_date": new Date(Date.now()),
            
        
    
        
        
            
                "entry_type": "commitment",
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "debit_amount": 9.12,
            
        
    
        
        
            
                "credit_amount": 0.2,
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Grace Hopper",
            
        
    
    },
    
];



const DocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "award_memo",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "version_number": 8,
            
        
    
        
        
            
                "access_level": "restricted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "requisition",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "version_number": 6,
            
        
    
        
        
            
                "access_level": "confidential",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "requisition",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "record_type": "Marie Curie",
            
        
    
        
        
            
                "record_key": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "version_number": 7,
            
        
    
        
        
            
                "access_level": "restricted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "tender_dossier",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "version_number": 9,
            
        
    
        
        
            
                "access_level": "restricted",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "contract",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "version_number": 4,
            
        
    
        
        
            
                "access_level": "public_within_org",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
    },
    
];



const ComplianceAlertsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "alert_type": "segregation_of_duties",
            
        
    
        
        
            
                "severity": "warning",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Grace Hopper",
            
        
    
        
        
            
                "status": "dismissed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "detected_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "alert_type": "other",
            
        
    
        
        
            
                "severity": "high",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "details": "Ada Lovelace",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "detected_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "alert_type": "missing_document",
            
        
    
        
        
            
                "severity": "high",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                "record_type": "Ada Lovelace",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "status": "dismissed",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "detected_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "alert_type": "payment_overdue",
            
        
    
        
        
            
                "severity": "info",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "details": "Grace Hopper",
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Marie Curie",
            
        
    
        
        
            
                "status": "acknowledged",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "detected_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "alert_type": "contract_expiry",
            
        
    
        
        
            
                "severity": "warning",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "details": "Alan Turing",
            
        
    
        
        
            
                "record_type": "Alan Turing",
            
        
    
        
        
            
                "record_key": "Alan Turing",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "detected_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateUserWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User0 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (User0?.setOrganization)
                {
                    await
                    User0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User1 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (User1?.setOrganization)
                {
                    await
                    User1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User2 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (User2?.setOrganization)
                {
                    await
                    User2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User3 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (User3?.setOrganization)
                {
                    await
                    User3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const User4 = await Users.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (User4?.setOrganization)
                {
                    await
                    User4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
    
    
        
    

    
    
    
        
            
            async function associateProvinceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Province0 = await Provinces.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Province0?.setOrganization)
                {
                    await
                    Province0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Province1 = await Provinces.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Province1?.setOrganization)
                {
                    await
                    Province1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Province2 = await Provinces.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Province2?.setOrganization)
                {
                    await
                    Province2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Province3 = await Provinces.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Province3?.setOrganization)
                {
                    await
                    Province3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Province4 = await Provinces.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Province4?.setOrganization)
                {
                    await
                    Province4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDepartmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department0 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Department0?.setOrganization)
                {
                    await
                    Department0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department1 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Department1?.setOrganization)
                {
                    await
                    Department1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department2 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Department2?.setOrganization)
                {
                    await
                    Department2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department3 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Department3?.setOrganization)
                {
                    await
                    Department3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Department4 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Department4?.setOrganization)
                {
                    await
                    Department4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateDepartmentWithParent_department() {
            
                const relatedParent_department0 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Department0 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Department0?.setParent_department)
                {
                    await
                    Department0.
                    setParent_department(relatedParent_department0);
                }
            
                const relatedParent_department1 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Department1 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Department1?.setParent_department)
                {
                    await
                    Department1.
                    setParent_department(relatedParent_department1);
                }
            
                const relatedParent_department2 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Department2 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Department2?.setParent_department)
                {
                    await
                    Department2.
                    setParent_department(relatedParent_department2);
                }
            
                const relatedParent_department3 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Department3 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Department3?.setParent_department)
                {
                    await
                    Department3.
                    setParent_department(relatedParent_department3);
                }
            
                const relatedParent_department4 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Department4 = await Departments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Department4?.setParent_department)
                {
                    await
                    Department4.
                    setParent_department(relatedParent_department4);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
            
            async function associateRolePermissionWithPermission() {
            
                const relatedPermission0 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission0 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RolePermission0?.setPermission)
                {
                    await
                    RolePermission0.
                    setPermission(relatedPermission0);
                }
            
                const relatedPermission1 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission1 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RolePermission1?.setPermission)
                {
                    await
                    RolePermission1.
                    setPermission(relatedPermission1);
                }
            
                const relatedPermission2 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission2 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RolePermission2?.setPermission)
                {
                    await
                    RolePermission2.
                    setPermission(relatedPermission2);
                }
            
                const relatedPermission3 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission3 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RolePermission3?.setPermission)
                {
                    await
                    RolePermission3.
                    setPermission(relatedPermission3);
                }
            
                const relatedPermission4 = await Permissions.findOne({
                    offset: Math.floor(Math.random() * (await Permissions.count())),
                });
                const RolePermission4 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RolePermission4?.setPermission)
                {
                    await
                    RolePermission4.
                    setPermission(relatedPermission4);
                }
            
        }
        
    
        
            
            async function associateRolePermissionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission0 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RolePermission0?.setOrganization)
                {
                    await
                    RolePermission0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission1 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RolePermission1?.setOrganization)
                {
                    await
                    RolePermission1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission2 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RolePermission2?.setOrganization)
                {
                    await
                    RolePermission2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission3 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RolePermission3?.setOrganization)
                {
                    await
                    RolePermission3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RolePermission4 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RolePermission4?.setOrganization)
                {
                    await
                    RolePermission4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApprovalWorkflowWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow0 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalWorkflow0?.setOrganization)
                {
                    await
                    ApprovalWorkflow0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow1 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalWorkflow1?.setOrganization)
                {
                    await
                    ApprovalWorkflow1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow2 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalWorkflow2?.setOrganization)
                {
                    await
                    ApprovalWorkflow2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow3 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalWorkflow3?.setOrganization)
                {
                    await
                    ApprovalWorkflow3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalWorkflow4 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalWorkflow4?.setOrganization)
                {
                    await
                    ApprovalWorkflow4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateApprovalStepWithWorkflow() {
            
                const relatedWorkflow0 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const ApprovalStep0 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalStep0?.setWorkflow)
                {
                    await
                    ApprovalStep0.
                    setWorkflow(relatedWorkflow0);
                }
            
                const relatedWorkflow1 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const ApprovalStep1 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalStep1?.setWorkflow)
                {
                    await
                    ApprovalStep1.
                    setWorkflow(relatedWorkflow1);
                }
            
                const relatedWorkflow2 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const ApprovalStep2 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalStep2?.setWorkflow)
                {
                    await
                    ApprovalStep2.
                    setWorkflow(relatedWorkflow2);
                }
            
                const relatedWorkflow3 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const ApprovalStep3 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalStep3?.setWorkflow)
                {
                    await
                    ApprovalStep3.
                    setWorkflow(relatedWorkflow3);
                }
            
                const relatedWorkflow4 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const ApprovalStep4 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalStep4?.setWorkflow)
                {
                    await
                    ApprovalStep4.
                    setWorkflow(relatedWorkflow4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateApprovalStepWithApprover_department() {
            
                const relatedApprover_department0 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ApprovalStep0 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalStep0?.setApprover_department)
                {
                    await
                    ApprovalStep0.
                    setApprover_department(relatedApprover_department0);
                }
            
                const relatedApprover_department1 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ApprovalStep1 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalStep1?.setApprover_department)
                {
                    await
                    ApprovalStep1.
                    setApprover_department(relatedApprover_department1);
                }
            
                const relatedApprover_department2 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ApprovalStep2 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalStep2?.setApprover_department)
                {
                    await
                    ApprovalStep2.
                    setApprover_department(relatedApprover_department2);
                }
            
                const relatedApprover_department3 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ApprovalStep3 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalStep3?.setApprover_department)
                {
                    await
                    ApprovalStep3.
                    setApprover_department(relatedApprover_department3);
                }
            
                const relatedApprover_department4 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ApprovalStep4 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalStep4?.setApprover_department)
                {
                    await
                    ApprovalStep4.
                    setApprover_department(relatedApprover_department4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateApprovalStepWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalStep0 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalStep0?.setOrganization)
                {
                    await
                    ApprovalStep0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalStep1 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalStep1?.setOrganization)
                {
                    await
                    ApprovalStep1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalStep2 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalStep2?.setOrganization)
                {
                    await
                    ApprovalStep2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalStep3 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalStep3?.setOrganization)
                {
                    await
                    ApprovalStep3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ApprovalStep4 = await ApprovalSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalStep4?.setOrganization)
                {
                    await
                    ApprovalStep4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApprovalWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setOrganization)
                {
                    await
                    Approval0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setOrganization)
                {
                    await
                    Approval1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setOrganization)
                {
                    await
                    Approval2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setOrganization)
                {
                    await
                    Approval3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setOrganization)
                {
                    await
                    Approval4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateApprovalWithWorkflow() {
            
                const relatedWorkflow0 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setWorkflow)
                {
                    await
                    Approval0.
                    setWorkflow(relatedWorkflow0);
                }
            
                const relatedWorkflow1 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setWorkflow)
                {
                    await
                    Approval1.
                    setWorkflow(relatedWorkflow1);
                }
            
                const relatedWorkflow2 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setWorkflow)
                {
                    await
                    Approval2.
                    setWorkflow(relatedWorkflow2);
                }
            
                const relatedWorkflow3 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setWorkflow)
                {
                    await
                    Approval3.
                    setWorkflow(relatedWorkflow3);
                }
            
                const relatedWorkflow4 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setWorkflow)
                {
                    await
                    Approval4.
                    setWorkflow(relatedWorkflow4);
                }
            
        }
        
    
        
            
            async function associateApprovalWithStep() {
            
                const relatedStep0 = await ApprovalSteps.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalSteps.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setStep)
                {
                    await
                    Approval0.
                    setStep(relatedStep0);
                }
            
                const relatedStep1 = await ApprovalSteps.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalSteps.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setStep)
                {
                    await
                    Approval1.
                    setStep(relatedStep1);
                }
            
                const relatedStep2 = await ApprovalSteps.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalSteps.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setStep)
                {
                    await
                    Approval2.
                    setStep(relatedStep2);
                }
            
                const relatedStep3 = await ApprovalSteps.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalSteps.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setStep)
                {
                    await
                    Approval3.
                    setStep(relatedStep3);
                }
            
                const relatedStep4 = await ApprovalSteps.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalSteps.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setStep)
                {
                    await
                    Approval4.
                    setStep(relatedStep4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateApprovalWithRequested_by_user() {
            
                const relatedRequested_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setRequested_by_user)
                {
                    await
                    Approval0.
                    setRequested_by_user(relatedRequested_by_user0);
                }
            
                const relatedRequested_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setRequested_by_user)
                {
                    await
                    Approval1.
                    setRequested_by_user(relatedRequested_by_user1);
                }
            
                const relatedRequested_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setRequested_by_user)
                {
                    await
                    Approval2.
                    setRequested_by_user(relatedRequested_by_user2);
                }
            
                const relatedRequested_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setRequested_by_user)
                {
                    await
                    Approval3.
                    setRequested_by_user(relatedRequested_by_user3);
                }
            
                const relatedRequested_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setRequested_by_user)
                {
                    await
                    Approval4.
                    setRequested_by_user(relatedRequested_by_user4);
                }
            
        }
        
    
        
            
            async function associateApprovalWithAssigned_to_user() {
            
                const relatedAssigned_to_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval0 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Approval0?.setAssigned_to_user)
                {
                    await
                    Approval0.
                    setAssigned_to_user(relatedAssigned_to_user0);
                }
            
                const relatedAssigned_to_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval1 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Approval1?.setAssigned_to_user)
                {
                    await
                    Approval1.
                    setAssigned_to_user(relatedAssigned_to_user1);
                }
            
                const relatedAssigned_to_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval2 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Approval2?.setAssigned_to_user)
                {
                    await
                    Approval2.
                    setAssigned_to_user(relatedAssigned_to_user2);
                }
            
                const relatedAssigned_to_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval3 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Approval3?.setAssigned_to_user)
                {
                    await
                    Approval3.
                    setAssigned_to_user(relatedAssigned_to_user3);
                }
            
                const relatedAssigned_to_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Approval4 = await Approvals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Approval4?.setAssigned_to_user)
                {
                    await
                    Approval4.
                    setAssigned_to_user(relatedAssigned_to_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNotificationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setOrganization)
                {
                    await
                    Notification0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setOrganization)
                {
                    await
                    Notification1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setOrganization)
                {
                    await
                    Notification2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification3 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Notification3?.setOrganization)
                {
                    await
                    Notification3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Notification4 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Notification4?.setOrganization)
                {
                    await
                    Notification4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            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 associateAuditLogWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog0 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditLog0?.setOrganization)
                {
                    await
                    AuditLog0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog1 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditLog1?.setOrganization)
                {
                    await
                    AuditLog1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog2 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditLog2?.setOrganization)
                {
                    await
                    AuditLog2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog3 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditLog3?.setOrganization)
                {
                    await
                    AuditLog3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditLog4 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditLog4?.setOrganization)
                {
                    await
                    AuditLog4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateAuditLogWithActor_user() {
            
                const relatedActor_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog0 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditLog0?.setActor_user)
                {
                    await
                    AuditLog0.
                    setActor_user(relatedActor_user0);
                }
            
                const relatedActor_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog1 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditLog1?.setActor_user)
                {
                    await
                    AuditLog1.
                    setActor_user(relatedActor_user1);
                }
            
                const relatedActor_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog2 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditLog2?.setActor_user)
                {
                    await
                    AuditLog2.
                    setActor_user(relatedActor_user2);
                }
            
                const relatedActor_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog3 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditLog3?.setActor_user)
                {
                    await
                    AuditLog3.
                    setActor_user(relatedActor_user3);
                }
            
                const relatedActor_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog4 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditLog4?.setActor_user)
                {
                    await
                    AuditLog4.
                    setActor_user(relatedActor_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFiscalYearWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FiscalYear0 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FiscalYear0?.setOrganization)
                {
                    await
                    FiscalYear0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FiscalYear1 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FiscalYear1?.setOrganization)
                {
                    await
                    FiscalYear1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FiscalYear2 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FiscalYear2?.setOrganization)
                {
                    await
                    FiscalYear2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FiscalYear3 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FiscalYear3?.setOrganization)
                {
                    await
                    FiscalYear3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FiscalYear4 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FiscalYear4?.setOrganization)
                {
                    await
                    FiscalYear4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFundingSourceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FundingSource0 = await FundingSources.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FundingSource0?.setOrganization)
                {
                    await
                    FundingSource0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FundingSource1 = await FundingSources.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FundingSource1?.setOrganization)
                {
                    await
                    FundingSource1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FundingSource2 = await FundingSources.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FundingSource2?.setOrganization)
                {
                    await
                    FundingSource2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FundingSource3 = await FundingSources.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FundingSource3?.setOrganization)
                {
                    await
                    FundingSource3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FundingSource4 = await FundingSources.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FundingSource4?.setOrganization)
                {
                    await
                    FundingSource4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBudgetProgramWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetProgram0 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetProgram0?.setOrganization)
                {
                    await
                    BudgetProgram0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetProgram1 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetProgram1?.setOrganization)
                {
                    await
                    BudgetProgram1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetProgram2 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetProgram2?.setOrganization)
                {
                    await
                    BudgetProgram2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetProgram3 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetProgram3?.setOrganization)
                {
                    await
                    BudgetProgram3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetProgram4 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetProgram4?.setOrganization)
                {
                    await
                    BudgetProgram4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateBudgetProgramWithFiscal_year() {
            
                const relatedFiscal_year0 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetProgram0 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetProgram0?.setFiscal_year)
                {
                    await
                    BudgetProgram0.
                    setFiscal_year(relatedFiscal_year0);
                }
            
                const relatedFiscal_year1 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetProgram1 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetProgram1?.setFiscal_year)
                {
                    await
                    BudgetProgram1.
                    setFiscal_year(relatedFiscal_year1);
                }
            
                const relatedFiscal_year2 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetProgram2 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetProgram2?.setFiscal_year)
                {
                    await
                    BudgetProgram2.
                    setFiscal_year(relatedFiscal_year2);
                }
            
                const relatedFiscal_year3 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetProgram3 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetProgram3?.setFiscal_year)
                {
                    await
                    BudgetProgram3.
                    setFiscal_year(relatedFiscal_year3);
                }
            
                const relatedFiscal_year4 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetProgram4 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetProgram4?.setFiscal_year)
                {
                    await
                    BudgetProgram4.
                    setFiscal_year(relatedFiscal_year4);
                }
            
        }
        
    
        
            
            async function associateBudgetProgramWithFunding_source() {
            
                const relatedFunding_source0 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const BudgetProgram0 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetProgram0?.setFunding_source)
                {
                    await
                    BudgetProgram0.
                    setFunding_source(relatedFunding_source0);
                }
            
                const relatedFunding_source1 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const BudgetProgram1 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetProgram1?.setFunding_source)
                {
                    await
                    BudgetProgram1.
                    setFunding_source(relatedFunding_source1);
                }
            
                const relatedFunding_source2 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const BudgetProgram2 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetProgram2?.setFunding_source)
                {
                    await
                    BudgetProgram2.
                    setFunding_source(relatedFunding_source2);
                }
            
                const relatedFunding_source3 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const BudgetProgram3 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetProgram3?.setFunding_source)
                {
                    await
                    BudgetProgram3.
                    setFunding_source(relatedFunding_source3);
                }
            
                const relatedFunding_source4 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const BudgetProgram4 = await BudgetPrograms.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetProgram4?.setFunding_source)
                {
                    await
                    BudgetProgram4.
                    setFunding_source(relatedFunding_source4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBudgetLineWithBudget_program() {
            
                const relatedBudget_program0 = await BudgetPrograms.findOne({
                    offset: Math.floor(Math.random() * (await BudgetPrograms.count())),
                });
                const BudgetLine0 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetLine0?.setBudget_program)
                {
                    await
                    BudgetLine0.
                    setBudget_program(relatedBudget_program0);
                }
            
                const relatedBudget_program1 = await BudgetPrograms.findOne({
                    offset: Math.floor(Math.random() * (await BudgetPrograms.count())),
                });
                const BudgetLine1 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetLine1?.setBudget_program)
                {
                    await
                    BudgetLine1.
                    setBudget_program(relatedBudget_program1);
                }
            
                const relatedBudget_program2 = await BudgetPrograms.findOne({
                    offset: Math.floor(Math.random() * (await BudgetPrograms.count())),
                });
                const BudgetLine2 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetLine2?.setBudget_program)
                {
                    await
                    BudgetLine2.
                    setBudget_program(relatedBudget_program2);
                }
            
                const relatedBudget_program3 = await BudgetPrograms.findOne({
                    offset: Math.floor(Math.random() * (await BudgetPrograms.count())),
                });
                const BudgetLine3 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetLine3?.setBudget_program)
                {
                    await
                    BudgetLine3.
                    setBudget_program(relatedBudget_program3);
                }
            
                const relatedBudget_program4 = await BudgetPrograms.findOne({
                    offset: Math.floor(Math.random() * (await BudgetPrograms.count())),
                });
                const BudgetLine4 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetLine4?.setBudget_program)
                {
                    await
                    BudgetLine4.
                    setBudget_program(relatedBudget_program4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBudgetLineWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetLine0 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetLine0?.setOrganization)
                {
                    await
                    BudgetLine0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetLine1 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetLine1?.setOrganization)
                {
                    await
                    BudgetLine1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetLine2 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetLine2?.setOrganization)
                {
                    await
                    BudgetLine2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetLine3 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetLine3?.setOrganization)
                {
                    await
                    BudgetLine3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetLine4 = await BudgetLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetLine4?.setOrganization)
                {
                    await
                    BudgetLine4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAllocationWithBudget_line() {
            
                const relatedBudget_line0 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Allocation0 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Allocation0?.setBudget_line)
                {
                    await
                    Allocation0.
                    setBudget_line(relatedBudget_line0);
                }
            
                const relatedBudget_line1 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Allocation1 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Allocation1?.setBudget_line)
                {
                    await
                    Allocation1.
                    setBudget_line(relatedBudget_line1);
                }
            
                const relatedBudget_line2 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Allocation2 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Allocation2?.setBudget_line)
                {
                    await
                    Allocation2.
                    setBudget_line(relatedBudget_line2);
                }
            
                const relatedBudget_line3 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Allocation3 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Allocation3?.setBudget_line)
                {
                    await
                    Allocation3.
                    setBudget_line(relatedBudget_line3);
                }
            
                const relatedBudget_line4 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Allocation4 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Allocation4?.setBudget_line)
                {
                    await
                    Allocation4.
                    setBudget_line(relatedBudget_line4);
                }
            
        }
        
    
        
            
            async function associateAllocationWithProvince() {
            
                const relatedProvince0 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Allocation0 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Allocation0?.setProvince)
                {
                    await
                    Allocation0.
                    setProvince(relatedProvince0);
                }
            
                const relatedProvince1 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Allocation1 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Allocation1?.setProvince)
                {
                    await
                    Allocation1.
                    setProvince(relatedProvince1);
                }
            
                const relatedProvince2 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Allocation2 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Allocation2?.setProvince)
                {
                    await
                    Allocation2.
                    setProvince(relatedProvince2);
                }
            
                const relatedProvince3 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Allocation3 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Allocation3?.setProvince)
                {
                    await
                    Allocation3.
                    setProvince(relatedProvince3);
                }
            
                const relatedProvince4 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Allocation4 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Allocation4?.setProvince)
                {
                    await
                    Allocation4.
                    setProvince(relatedProvince4);
                }
            
        }
        
    
        
            
            async function associateAllocationWithDepartment() {
            
                const relatedDepartment0 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Allocation0 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Allocation0?.setDepartment)
                {
                    await
                    Allocation0.
                    setDepartment(relatedDepartment0);
                }
            
                const relatedDepartment1 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Allocation1 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Allocation1?.setDepartment)
                {
                    await
                    Allocation1.
                    setDepartment(relatedDepartment1);
                }
            
                const relatedDepartment2 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Allocation2 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Allocation2?.setDepartment)
                {
                    await
                    Allocation2.
                    setDepartment(relatedDepartment2);
                }
            
                const relatedDepartment3 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Allocation3 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Allocation3?.setDepartment)
                {
                    await
                    Allocation3.
                    setDepartment(relatedDepartment3);
                }
            
                const relatedDepartment4 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Allocation4 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Allocation4?.setDepartment)
                {
                    await
                    Allocation4.
                    setDepartment(relatedDepartment4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAllocationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Allocation0 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Allocation0?.setOrganization)
                {
                    await
                    Allocation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Allocation1 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Allocation1?.setOrganization)
                {
                    await
                    Allocation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Allocation2 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Allocation2?.setOrganization)
                {
                    await
                    Allocation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Allocation3 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Allocation3?.setOrganization)
                {
                    await
                    Allocation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Allocation4 = await Allocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Allocation4?.setOrganization)
                {
                    await
                    Allocation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateBudgetReallocationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetReallocation0 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetReallocation0?.setOrganization)
                {
                    await
                    BudgetReallocation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetReallocation1 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetReallocation1?.setOrganization)
                {
                    await
                    BudgetReallocation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetReallocation2 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetReallocation2?.setOrganization)
                {
                    await
                    BudgetReallocation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetReallocation3 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetReallocation3?.setOrganization)
                {
                    await
                    BudgetReallocation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BudgetReallocation4 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetReallocation4?.setOrganization)
                {
                    await
                    BudgetReallocation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateBudgetReallocationWithFiscal_year() {
            
                const relatedFiscal_year0 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetReallocation0 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetReallocation0?.setFiscal_year)
                {
                    await
                    BudgetReallocation0.
                    setFiscal_year(relatedFiscal_year0);
                }
            
                const relatedFiscal_year1 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetReallocation1 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetReallocation1?.setFiscal_year)
                {
                    await
                    BudgetReallocation1.
                    setFiscal_year(relatedFiscal_year1);
                }
            
                const relatedFiscal_year2 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetReallocation2 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetReallocation2?.setFiscal_year)
                {
                    await
                    BudgetReallocation2.
                    setFiscal_year(relatedFiscal_year2);
                }
            
                const relatedFiscal_year3 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetReallocation3 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetReallocation3?.setFiscal_year)
                {
                    await
                    BudgetReallocation3.
                    setFiscal_year(relatedFiscal_year3);
                }
            
                const relatedFiscal_year4 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const BudgetReallocation4 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetReallocation4?.setFiscal_year)
                {
                    await
                    BudgetReallocation4.
                    setFiscal_year(relatedFiscal_year4);
                }
            
        }
        
    
        
            
            async function associateBudgetReallocationWithFrom_budget_line() {
            
                const relatedFrom_budget_line0 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation0 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetReallocation0?.setFrom_budget_line)
                {
                    await
                    BudgetReallocation0.
                    setFrom_budget_line(relatedFrom_budget_line0);
                }
            
                const relatedFrom_budget_line1 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation1 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetReallocation1?.setFrom_budget_line)
                {
                    await
                    BudgetReallocation1.
                    setFrom_budget_line(relatedFrom_budget_line1);
                }
            
                const relatedFrom_budget_line2 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation2 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetReallocation2?.setFrom_budget_line)
                {
                    await
                    BudgetReallocation2.
                    setFrom_budget_line(relatedFrom_budget_line2);
                }
            
                const relatedFrom_budget_line3 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation3 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetReallocation3?.setFrom_budget_line)
                {
                    await
                    BudgetReallocation3.
                    setFrom_budget_line(relatedFrom_budget_line3);
                }
            
                const relatedFrom_budget_line4 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation4 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetReallocation4?.setFrom_budget_line)
                {
                    await
                    BudgetReallocation4.
                    setFrom_budget_line(relatedFrom_budget_line4);
                }
            
        }
        
    
        
            
            async function associateBudgetReallocationWithTo_budget_line() {
            
                const relatedTo_budget_line0 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation0 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetReallocation0?.setTo_budget_line)
                {
                    await
                    BudgetReallocation0.
                    setTo_budget_line(relatedTo_budget_line0);
                }
            
                const relatedTo_budget_line1 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation1 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetReallocation1?.setTo_budget_line)
                {
                    await
                    BudgetReallocation1.
                    setTo_budget_line(relatedTo_budget_line1);
                }
            
                const relatedTo_budget_line2 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation2 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetReallocation2?.setTo_budget_line)
                {
                    await
                    BudgetReallocation2.
                    setTo_budget_line(relatedTo_budget_line2);
                }
            
                const relatedTo_budget_line3 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation3 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetReallocation3?.setTo_budget_line)
                {
                    await
                    BudgetReallocation3.
                    setTo_budget_line(relatedTo_budget_line3);
                }
            
                const relatedTo_budget_line4 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const BudgetReallocation4 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetReallocation4?.setTo_budget_line)
                {
                    await
                    BudgetReallocation4.
                    setTo_budget_line(relatedTo_budget_line4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateBudgetReallocationWithRequested_by_user() {
            
                const relatedRequested_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BudgetReallocation0 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BudgetReallocation0?.setRequested_by_user)
                {
                    await
                    BudgetReallocation0.
                    setRequested_by_user(relatedRequested_by_user0);
                }
            
                const relatedRequested_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BudgetReallocation1 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BudgetReallocation1?.setRequested_by_user)
                {
                    await
                    BudgetReallocation1.
                    setRequested_by_user(relatedRequested_by_user1);
                }
            
                const relatedRequested_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BudgetReallocation2 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BudgetReallocation2?.setRequested_by_user)
                {
                    await
                    BudgetReallocation2.
                    setRequested_by_user(relatedRequested_by_user2);
                }
            
                const relatedRequested_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BudgetReallocation3 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BudgetReallocation3?.setRequested_by_user)
                {
                    await
                    BudgetReallocation3.
                    setRequested_by_user(relatedRequested_by_user3);
                }
            
                const relatedRequested_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BudgetReallocation4 = await BudgetReallocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BudgetReallocation4?.setRequested_by_user)
                {
                    await
                    BudgetReallocation4.
                    setRequested_by_user(relatedRequested_by_user4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateProcurementPlanWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProcurementPlan0 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProcurementPlan0?.setOrganization)
                {
                    await
                    ProcurementPlan0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProcurementPlan1 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProcurementPlan1?.setOrganization)
                {
                    await
                    ProcurementPlan1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProcurementPlan2 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProcurementPlan2?.setOrganization)
                {
                    await
                    ProcurementPlan2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProcurementPlan3 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProcurementPlan3?.setOrganization)
                {
                    await
                    ProcurementPlan3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProcurementPlan4 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProcurementPlan4?.setOrganization)
                {
                    await
                    ProcurementPlan4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateProcurementPlanWithFiscal_year() {
            
                const relatedFiscal_year0 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const ProcurementPlan0 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProcurementPlan0?.setFiscal_year)
                {
                    await
                    ProcurementPlan0.
                    setFiscal_year(relatedFiscal_year0);
                }
            
                const relatedFiscal_year1 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const ProcurementPlan1 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProcurementPlan1?.setFiscal_year)
                {
                    await
                    ProcurementPlan1.
                    setFiscal_year(relatedFiscal_year1);
                }
            
                const relatedFiscal_year2 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const ProcurementPlan2 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProcurementPlan2?.setFiscal_year)
                {
                    await
                    ProcurementPlan2.
                    setFiscal_year(relatedFiscal_year2);
                }
            
                const relatedFiscal_year3 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const ProcurementPlan3 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProcurementPlan3?.setFiscal_year)
                {
                    await
                    ProcurementPlan3.
                    setFiscal_year(relatedFiscal_year3);
                }
            
                const relatedFiscal_year4 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const ProcurementPlan4 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProcurementPlan4?.setFiscal_year)
                {
                    await
                    ProcurementPlan4.
                    setFiscal_year(relatedFiscal_year4);
                }
            
        }
        
    
        
            
            async function associateProcurementPlanWithDepartment() {
            
                const relatedDepartment0 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ProcurementPlan0 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProcurementPlan0?.setDepartment)
                {
                    await
                    ProcurementPlan0.
                    setDepartment(relatedDepartment0);
                }
            
                const relatedDepartment1 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ProcurementPlan1 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProcurementPlan1?.setDepartment)
                {
                    await
                    ProcurementPlan1.
                    setDepartment(relatedDepartment1);
                }
            
                const relatedDepartment2 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ProcurementPlan2 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProcurementPlan2?.setDepartment)
                {
                    await
                    ProcurementPlan2.
                    setDepartment(relatedDepartment2);
                }
            
                const relatedDepartment3 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ProcurementPlan3 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProcurementPlan3?.setDepartment)
                {
                    await
                    ProcurementPlan3.
                    setDepartment(relatedDepartment3);
                }
            
                const relatedDepartment4 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const ProcurementPlan4 = await ProcurementPlans.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProcurementPlan4?.setDepartment)
                {
                    await
                    ProcurementPlan4.
                    setDepartment(relatedDepartment4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateRequisitionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Requisition0 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Requisition0?.setOrganization)
                {
                    await
                    Requisition0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Requisition1 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Requisition1?.setOrganization)
                {
                    await
                    Requisition1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Requisition2 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Requisition2?.setOrganization)
                {
                    await
                    Requisition2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Requisition3 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Requisition3?.setOrganization)
                {
                    await
                    Requisition3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Requisition4 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Requisition4?.setOrganization)
                {
                    await
                    Requisition4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateRequisitionWithProcurement_plan() {
            
                const relatedProcurement_plan0 = await ProcurementPlans.findOne({
                    offset: Math.floor(Math.random() * (await ProcurementPlans.count())),
                });
                const Requisition0 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Requisition0?.setProcurement_plan)
                {
                    await
                    Requisition0.
                    setProcurement_plan(relatedProcurement_plan0);
                }
            
                const relatedProcurement_plan1 = await ProcurementPlans.findOne({
                    offset: Math.floor(Math.random() * (await ProcurementPlans.count())),
                });
                const Requisition1 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Requisition1?.setProcurement_plan)
                {
                    await
                    Requisition1.
                    setProcurement_plan(relatedProcurement_plan1);
                }
            
                const relatedProcurement_plan2 = await ProcurementPlans.findOne({
                    offset: Math.floor(Math.random() * (await ProcurementPlans.count())),
                });
                const Requisition2 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Requisition2?.setProcurement_plan)
                {
                    await
                    Requisition2.
                    setProcurement_plan(relatedProcurement_plan2);
                }
            
                const relatedProcurement_plan3 = await ProcurementPlans.findOne({
                    offset: Math.floor(Math.random() * (await ProcurementPlans.count())),
                });
                const Requisition3 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Requisition3?.setProcurement_plan)
                {
                    await
                    Requisition3.
                    setProcurement_plan(relatedProcurement_plan3);
                }
            
                const relatedProcurement_plan4 = await ProcurementPlans.findOne({
                    offset: Math.floor(Math.random() * (await ProcurementPlans.count())),
                });
                const Requisition4 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Requisition4?.setProcurement_plan)
                {
                    await
                    Requisition4.
                    setProcurement_plan(relatedProcurement_plan4);
                }
            
        }
        
    
        
            
            async function associateRequisitionWithRequesting_department() {
            
                const relatedRequesting_department0 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Requisition0 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Requisition0?.setRequesting_department)
                {
                    await
                    Requisition0.
                    setRequesting_department(relatedRequesting_department0);
                }
            
                const relatedRequesting_department1 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Requisition1 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Requisition1?.setRequesting_department)
                {
                    await
                    Requisition1.
                    setRequesting_department(relatedRequesting_department1);
                }
            
                const relatedRequesting_department2 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Requisition2 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Requisition2?.setRequesting_department)
                {
                    await
                    Requisition2.
                    setRequesting_department(relatedRequesting_department2);
                }
            
                const relatedRequesting_department3 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Requisition3 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Requisition3?.setRequesting_department)
                {
                    await
                    Requisition3.
                    setRequesting_department(relatedRequesting_department3);
                }
            
                const relatedRequesting_department4 = await Departments.findOne({
                    offset: Math.floor(Math.random() * (await Departments.count())),
                });
                const Requisition4 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Requisition4?.setRequesting_department)
                {
                    await
                    Requisition4.
                    setRequesting_department(relatedRequesting_department4);
                }
            
        }
        
    
        
            
            async function associateRequisitionWithBudget_line() {
            
                const relatedBudget_line0 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Requisition0 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Requisition0?.setBudget_line)
                {
                    await
                    Requisition0.
                    setBudget_line(relatedBudget_line0);
                }
            
                const relatedBudget_line1 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Requisition1 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Requisition1?.setBudget_line)
                {
                    await
                    Requisition1.
                    setBudget_line(relatedBudget_line1);
                }
            
                const relatedBudget_line2 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Requisition2 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Requisition2?.setBudget_line)
                {
                    await
                    Requisition2.
                    setBudget_line(relatedBudget_line2);
                }
            
                const relatedBudget_line3 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Requisition3 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Requisition3?.setBudget_line)
                {
                    await
                    Requisition3.
                    setBudget_line(relatedBudget_line3);
                }
            
                const relatedBudget_line4 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Requisition4 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Requisition4?.setBudget_line)
                {
                    await
                    Requisition4.
                    setBudget_line(relatedBudget_line4);
                }
            
        }
        
    
        
            
            async function associateRequisitionWithProvince() {
            
                const relatedProvince0 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Requisition0 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Requisition0?.setProvince)
                {
                    await
                    Requisition0.
                    setProvince(relatedProvince0);
                }
            
                const relatedProvince1 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Requisition1 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Requisition1?.setProvince)
                {
                    await
                    Requisition1.
                    setProvince(relatedProvince1);
                }
            
                const relatedProvince2 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Requisition2 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Requisition2?.setProvince)
                {
                    await
                    Requisition2.
                    setProvince(relatedProvince2);
                }
            
                const relatedProvince3 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Requisition3 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Requisition3?.setProvince)
                {
                    await
                    Requisition3.
                    setProvince(relatedProvince3);
                }
            
                const relatedProvince4 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Requisition4 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Requisition4?.setProvince)
                {
                    await
                    Requisition4.
                    setProvince(relatedProvince4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRequisitionWithRequested_by_user() {
            
                const relatedRequested_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Requisition0 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Requisition0?.setRequested_by_user)
                {
                    await
                    Requisition0.
                    setRequested_by_user(relatedRequested_by_user0);
                }
            
                const relatedRequested_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Requisition1 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Requisition1?.setRequested_by_user)
                {
                    await
                    Requisition1.
                    setRequested_by_user(relatedRequested_by_user1);
                }
            
                const relatedRequested_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Requisition2 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Requisition2?.setRequested_by_user)
                {
                    await
                    Requisition2.
                    setRequested_by_user(relatedRequested_by_user2);
                }
            
                const relatedRequested_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Requisition3 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Requisition3?.setRequested_by_user)
                {
                    await
                    Requisition3.
                    setRequested_by_user(relatedRequested_by_user3);
                }
            
                const relatedRequested_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Requisition4 = await Requisitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Requisition4?.setRequested_by_user)
                {
                    await
                    Requisition4.
                    setRequested_by_user(relatedRequested_by_user4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateTenderWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tender0 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Tender0?.setOrganization)
                {
                    await
                    Tender0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tender1 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Tender1?.setOrganization)
                {
                    await
                    Tender1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tender2 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Tender2?.setOrganization)
                {
                    await
                    Tender2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tender3 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Tender3?.setOrganization)
                {
                    await
                    Tender3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tender4 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Tender4?.setOrganization)
                {
                    await
                    Tender4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateTenderWithRequisition() {
            
                const relatedRequisition0 = await Requisitions.findOne({
                    offset: Math.floor(Math.random() * (await Requisitions.count())),
                });
                const Tender0 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Tender0?.setRequisition)
                {
                    await
                    Tender0.
                    setRequisition(relatedRequisition0);
                }
            
                const relatedRequisition1 = await Requisitions.findOne({
                    offset: Math.floor(Math.random() * (await Requisitions.count())),
                });
                const Tender1 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Tender1?.setRequisition)
                {
                    await
                    Tender1.
                    setRequisition(relatedRequisition1);
                }
            
                const relatedRequisition2 = await Requisitions.findOne({
                    offset: Math.floor(Math.random() * (await Requisitions.count())),
                });
                const Tender2 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Tender2?.setRequisition)
                {
                    await
                    Tender2.
                    setRequisition(relatedRequisition2);
                }
            
                const relatedRequisition3 = await Requisitions.findOne({
                    offset: Math.floor(Math.random() * (await Requisitions.count())),
                });
                const Tender3 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Tender3?.setRequisition)
                {
                    await
                    Tender3.
                    setRequisition(relatedRequisition3);
                }
            
                const relatedRequisition4 = await Requisitions.findOne({
                    offset: Math.floor(Math.random() * (await Requisitions.count())),
                });
                const Tender4 = await Tenders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Tender4?.setRequisition)
                {
                    await
                    Tender4.
                    setRequisition(relatedRequisition4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVendorWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vendor0 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vendor0?.setOrganization)
                {
                    await
                    Vendor0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vendor1 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vendor1?.setOrganization)
                {
                    await
                    Vendor1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vendor2 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vendor2?.setOrganization)
                {
                    await
                    Vendor2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vendor3 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vendor3?.setOrganization)
                {
                    await
                    Vendor3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Vendor4 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Vendor4?.setOrganization)
                {
                    await
                    Vendor4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVendorComplianceDocumentWithVendor() {
            
                const relatedVendor0 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const VendorComplianceDocument0 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VendorComplianceDocument0?.setVendor)
                {
                    await
                    VendorComplianceDocument0.
                    setVendor(relatedVendor0);
                }
            
                const relatedVendor1 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const VendorComplianceDocument1 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VendorComplianceDocument1?.setVendor)
                {
                    await
                    VendorComplianceDocument1.
                    setVendor(relatedVendor1);
                }
            
                const relatedVendor2 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const VendorComplianceDocument2 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VendorComplianceDocument2?.setVendor)
                {
                    await
                    VendorComplianceDocument2.
                    setVendor(relatedVendor2);
                }
            
                const relatedVendor3 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const VendorComplianceDocument3 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VendorComplianceDocument3?.setVendor)
                {
                    await
                    VendorComplianceDocument3.
                    setVendor(relatedVendor3);
                }
            
                const relatedVendor4 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const VendorComplianceDocument4 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VendorComplianceDocument4?.setVendor)
                {
                    await
                    VendorComplianceDocument4.
                    setVendor(relatedVendor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateVendorComplianceDocumentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VendorComplianceDocument0 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VendorComplianceDocument0?.setOrganization)
                {
                    await
                    VendorComplianceDocument0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VendorComplianceDocument1 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VendorComplianceDocument1?.setOrganization)
                {
                    await
                    VendorComplianceDocument1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VendorComplianceDocument2 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VendorComplianceDocument2?.setOrganization)
                {
                    await
                    VendorComplianceDocument2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VendorComplianceDocument3 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VendorComplianceDocument3?.setOrganization)
                {
                    await
                    VendorComplianceDocument3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const VendorComplianceDocument4 = await VendorComplianceDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VendorComplianceDocument4?.setOrganization)
                {
                    await
                    VendorComplianceDocument4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateBidWithTender() {
            
                const relatedTender0 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Bid0 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Bid0?.setTender)
                {
                    await
                    Bid0.
                    setTender(relatedTender0);
                }
            
                const relatedTender1 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Bid1 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Bid1?.setTender)
                {
                    await
                    Bid1.
                    setTender(relatedTender1);
                }
            
                const relatedTender2 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Bid2 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Bid2?.setTender)
                {
                    await
                    Bid2.
                    setTender(relatedTender2);
                }
            
                const relatedTender3 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Bid3 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Bid3?.setTender)
                {
                    await
                    Bid3.
                    setTender(relatedTender3);
                }
            
                const relatedTender4 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Bid4 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Bid4?.setTender)
                {
                    await
                    Bid4.
                    setTender(relatedTender4);
                }
            
        }
        
    
        
            
            async function associateBidWithVendor() {
            
                const relatedVendor0 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Bid0 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Bid0?.setVendor)
                {
                    await
                    Bid0.
                    setVendor(relatedVendor0);
                }
            
                const relatedVendor1 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Bid1 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Bid1?.setVendor)
                {
                    await
                    Bid1.
                    setVendor(relatedVendor1);
                }
            
                const relatedVendor2 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Bid2 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Bid2?.setVendor)
                {
                    await
                    Bid2.
                    setVendor(relatedVendor2);
                }
            
                const relatedVendor3 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Bid3 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Bid3?.setVendor)
                {
                    await
                    Bid3.
                    setVendor(relatedVendor3);
                }
            
                const relatedVendor4 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Bid4 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Bid4?.setVendor)
                {
                    await
                    Bid4.
                    setVendor(relatedVendor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBidWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Bid0 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Bid0?.setOrganization)
                {
                    await
                    Bid0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Bid1 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Bid1?.setOrganization)
                {
                    await
                    Bid1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Bid2 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Bid2?.setOrganization)
                {
                    await
                    Bid2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Bid3 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Bid3?.setOrganization)
                {
                    await
                    Bid3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Bid4 = await Bids.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Bid4?.setOrganization)
                {
                    await
                    Bid4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateBidEvaluationWithBid() {
            
                const relatedBid0 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const BidEvaluation0 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BidEvaluation0?.setBid)
                {
                    await
                    BidEvaluation0.
                    setBid(relatedBid0);
                }
            
                const relatedBid1 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const BidEvaluation1 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BidEvaluation1?.setBid)
                {
                    await
                    BidEvaluation1.
                    setBid(relatedBid1);
                }
            
                const relatedBid2 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const BidEvaluation2 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BidEvaluation2?.setBid)
                {
                    await
                    BidEvaluation2.
                    setBid(relatedBid2);
                }
            
                const relatedBid3 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const BidEvaluation3 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BidEvaluation3?.setBid)
                {
                    await
                    BidEvaluation3.
                    setBid(relatedBid3);
                }
            
                const relatedBid4 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const BidEvaluation4 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BidEvaluation4?.setBid)
                {
                    await
                    BidEvaluation4.
                    setBid(relatedBid4);
                }
            
        }
        
    
        
            
            async function associateBidEvaluationWithLead_evaluator_user() {
            
                const relatedLead_evaluator_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BidEvaluation0 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BidEvaluation0?.setLead_evaluator_user)
                {
                    await
                    BidEvaluation0.
                    setLead_evaluator_user(relatedLead_evaluator_user0);
                }
            
                const relatedLead_evaluator_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BidEvaluation1 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BidEvaluation1?.setLead_evaluator_user)
                {
                    await
                    BidEvaluation1.
                    setLead_evaluator_user(relatedLead_evaluator_user1);
                }
            
                const relatedLead_evaluator_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BidEvaluation2 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BidEvaluation2?.setLead_evaluator_user)
                {
                    await
                    BidEvaluation2.
                    setLead_evaluator_user(relatedLead_evaluator_user2);
                }
            
                const relatedLead_evaluator_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BidEvaluation3 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BidEvaluation3?.setLead_evaluator_user)
                {
                    await
                    BidEvaluation3.
                    setLead_evaluator_user(relatedLead_evaluator_user3);
                }
            
                const relatedLead_evaluator_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const BidEvaluation4 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BidEvaluation4?.setLead_evaluator_user)
                {
                    await
                    BidEvaluation4.
                    setLead_evaluator_user(relatedLead_evaluator_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBidEvaluationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BidEvaluation0 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BidEvaluation0?.setOrganization)
                {
                    await
                    BidEvaluation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BidEvaluation1 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BidEvaluation1?.setOrganization)
                {
                    await
                    BidEvaluation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BidEvaluation2 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BidEvaluation2?.setOrganization)
                {
                    await
                    BidEvaluation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BidEvaluation3 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BidEvaluation3?.setOrganization)
                {
                    await
                    BidEvaluation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BidEvaluation4 = await BidEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BidEvaluation4?.setOrganization)
                {
                    await
                    BidEvaluation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAwardWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Award0 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Award0?.setOrganization)
                {
                    await
                    Award0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Award1 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Award1?.setOrganization)
                {
                    await
                    Award1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Award2 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Award2?.setOrganization)
                {
                    await
                    Award2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Award3 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Award3?.setOrganization)
                {
                    await
                    Award3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Award4 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Award4?.setOrganization)
                {
                    await
                    Award4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateAwardWithTender() {
            
                const relatedTender0 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Award0 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Award0?.setTender)
                {
                    await
                    Award0.
                    setTender(relatedTender0);
                }
            
                const relatedTender1 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Award1 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Award1?.setTender)
                {
                    await
                    Award1.
                    setTender(relatedTender1);
                }
            
                const relatedTender2 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Award2 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Award2?.setTender)
                {
                    await
                    Award2.
                    setTender(relatedTender2);
                }
            
                const relatedTender3 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Award3 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Award3?.setTender)
                {
                    await
                    Award3.
                    setTender(relatedTender3);
                }
            
                const relatedTender4 = await Tenders.findOne({
                    offset: Math.floor(Math.random() * (await Tenders.count())),
                });
                const Award4 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Award4?.setTender)
                {
                    await
                    Award4.
                    setTender(relatedTender4);
                }
            
        }
        
    
        
            
            async function associateAwardWithWinning_bid() {
            
                const relatedWinning_bid0 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const Award0 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Award0?.setWinning_bid)
                {
                    await
                    Award0.
                    setWinning_bid(relatedWinning_bid0);
                }
            
                const relatedWinning_bid1 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const Award1 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Award1?.setWinning_bid)
                {
                    await
                    Award1.
                    setWinning_bid(relatedWinning_bid1);
                }
            
                const relatedWinning_bid2 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const Award2 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Award2?.setWinning_bid)
                {
                    await
                    Award2.
                    setWinning_bid(relatedWinning_bid2);
                }
            
                const relatedWinning_bid3 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const Award3 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Award3?.setWinning_bid)
                {
                    await
                    Award3.
                    setWinning_bid(relatedWinning_bid3);
                }
            
                const relatedWinning_bid4 = await Bids.findOne({
                    offset: Math.floor(Math.random() * (await Bids.count())),
                });
                const Award4 = await Awards.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Award4?.setWinning_bid)
                {
                    await
                    Award4.
                    setWinning_bid(relatedWinning_bid4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProgramWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program0 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Program0?.setOrganization)
                {
                    await
                    Program0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program1 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Program1?.setOrganization)
                {
                    await
                    Program1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program2 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Program2?.setOrganization)
                {
                    await
                    Program2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program3 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Program3?.setOrganization)
                {
                    await
                    Program3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Program4 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Program4?.setOrganization)
                {
                    await
                    Program4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateProgramWithFiscal_year() {
            
                const relatedFiscal_year0 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const Program0 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Program0?.setFiscal_year)
                {
                    await
                    Program0.
                    setFiscal_year(relatedFiscal_year0);
                }
            
                const relatedFiscal_year1 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const Program1 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Program1?.setFiscal_year)
                {
                    await
                    Program1.
                    setFiscal_year(relatedFiscal_year1);
                }
            
                const relatedFiscal_year2 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const Program2 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Program2?.setFiscal_year)
                {
                    await
                    Program2.
                    setFiscal_year(relatedFiscal_year2);
                }
            
                const relatedFiscal_year3 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const Program3 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Program3?.setFiscal_year)
                {
                    await
                    Program3.
                    setFiscal_year(relatedFiscal_year3);
                }
            
                const relatedFiscal_year4 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const Program4 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Program4?.setFiscal_year)
                {
                    await
                    Program4.
                    setFiscal_year(relatedFiscal_year4);
                }
            
        }
        
    
        
            
            async function associateProgramWithFunding_source() {
            
                const relatedFunding_source0 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const Program0 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Program0?.setFunding_source)
                {
                    await
                    Program0.
                    setFunding_source(relatedFunding_source0);
                }
            
                const relatedFunding_source1 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const Program1 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Program1?.setFunding_source)
                {
                    await
                    Program1.
                    setFunding_source(relatedFunding_source1);
                }
            
                const relatedFunding_source2 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const Program2 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Program2?.setFunding_source)
                {
                    await
                    Program2.
                    setFunding_source(relatedFunding_source2);
                }
            
                const relatedFunding_source3 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const Program3 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Program3?.setFunding_source)
                {
                    await
                    Program3.
                    setFunding_source(relatedFunding_source3);
                }
            
                const relatedFunding_source4 = await FundingSources.findOne({
                    offset: Math.floor(Math.random() * (await FundingSources.count())),
                });
                const Program4 = await Programs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Program4?.setFunding_source)
                {
                    await
                    Program4.
                    setFunding_source(relatedFunding_source4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProjectWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setOrganization)
                {
                    await
                    Project0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setOrganization)
                {
                    await
                    Project1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setOrganization)
                {
                    await
                    Project2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setOrganization)
                {
                    await
                    Project3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Project4 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Project4?.setOrganization)
                {
                    await
                    Project4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateProjectWithProgram() {
            
                const relatedProgram0 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setProgram)
                {
                    await
                    Project0.
                    setProgram(relatedProgram0);
                }
            
                const relatedProgram1 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setProgram)
                {
                    await
                    Project1.
                    setProgram(relatedProgram1);
                }
            
                const relatedProgram2 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setProgram)
                {
                    await
                    Project2.
                    setProgram(relatedProgram2);
                }
            
                const relatedProgram3 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setProgram)
                {
                    await
                    Project3.
                    setProgram(relatedProgram3);
                }
            
                const relatedProgram4 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Project4 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Project4?.setProgram)
                {
                    await
                    Project4.
                    setProgram(relatedProgram4);
                }
            
        }
        
    
        
            
            async function associateProjectWithProvince() {
            
                const relatedProvince0 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setProvince)
                {
                    await
                    Project0.
                    setProvince(relatedProvince0);
                }
            
                const relatedProvince1 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setProvince)
                {
                    await
                    Project1.
                    setProvince(relatedProvince1);
                }
            
                const relatedProvince2 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setProvince)
                {
                    await
                    Project2.
                    setProvince(relatedProvince2);
                }
            
                const relatedProvince3 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setProvince)
                {
                    await
                    Project3.
                    setProvince(relatedProvince3);
                }
            
                const relatedProvince4 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Project4 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Project4?.setProvince)
                {
                    await
                    Project4.
                    setProvince(relatedProvince4);
                }
            
        }
        
    
        
            
            async function associateProjectWithBudget_line() {
            
                const relatedBudget_line0 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setBudget_line)
                {
                    await
                    Project0.
                    setBudget_line(relatedBudget_line0);
                }
            
                const relatedBudget_line1 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setBudget_line)
                {
                    await
                    Project1.
                    setBudget_line(relatedBudget_line1);
                }
            
                const relatedBudget_line2 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setBudget_line)
                {
                    await
                    Project2.
                    setBudget_line(relatedBudget_line2);
                }
            
                const relatedBudget_line3 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setBudget_line)
                {
                    await
                    Project3.
                    setBudget_line(relatedBudget_line3);
                }
            
                const relatedBudget_line4 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Project4 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Project4?.setBudget_line)
                {
                    await
                    Project4.
                    setBudget_line(relatedBudget_line4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProjectMilestoneWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectMilestone0 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProjectMilestone0?.setProject)
                {
                    await
                    ProjectMilestone0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectMilestone1 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProjectMilestone1?.setProject)
                {
                    await
                    ProjectMilestone1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectMilestone2 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProjectMilestone2?.setProject)
                {
                    await
                    ProjectMilestone2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectMilestone3 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProjectMilestone3?.setProject)
                {
                    await
                    ProjectMilestone3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const ProjectMilestone4 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProjectMilestone4?.setProject)
                {
                    await
                    ProjectMilestone4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProjectMilestoneWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectMilestone0 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProjectMilestone0?.setOrganization)
                {
                    await
                    ProjectMilestone0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectMilestone1 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProjectMilestone1?.setOrganization)
                {
                    await
                    ProjectMilestone1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectMilestone2 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProjectMilestone2?.setOrganization)
                {
                    await
                    ProjectMilestone2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectMilestone3 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProjectMilestone3?.setOrganization)
                {
                    await
                    ProjectMilestone3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ProjectMilestone4 = await ProjectMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProjectMilestone4?.setOrganization)
                {
                    await
                    ProjectMilestone4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRiskWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Risk0 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Risk0?.setProject)
                {
                    await
                    Risk0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Risk1 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Risk1?.setProject)
                {
                    await
                    Risk1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Risk2 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Risk2?.setProject)
                {
                    await
                    Risk2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Risk3 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Risk3?.setProject)
                {
                    await
                    Risk3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Risk4 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Risk4?.setProject)
                {
                    await
                    Risk4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRiskWithOwner_user() {
            
                const relatedOwner_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Risk0 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Risk0?.setOwner_user)
                {
                    await
                    Risk0.
                    setOwner_user(relatedOwner_user0);
                }
            
                const relatedOwner_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Risk1 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Risk1?.setOwner_user)
                {
                    await
                    Risk1.
                    setOwner_user(relatedOwner_user1);
                }
            
                const relatedOwner_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Risk2 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Risk2?.setOwner_user)
                {
                    await
                    Risk2.
                    setOwner_user(relatedOwner_user2);
                }
            
                const relatedOwner_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Risk3 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Risk3?.setOwner_user)
                {
                    await
                    Risk3.
                    setOwner_user(relatedOwner_user3);
                }
            
                const relatedOwner_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Risk4 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Risk4?.setOwner_user)
                {
                    await
                    Risk4.
                    setOwner_user(relatedOwner_user4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateRiskWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Risk0 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Risk0?.setOrganization)
                {
                    await
                    Risk0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Risk1 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Risk1?.setOrganization)
                {
                    await
                    Risk1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Risk2 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Risk2?.setOrganization)
                {
                    await
                    Risk2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Risk3 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Risk3?.setOrganization)
                {
                    await
                    Risk3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Risk4 = await Risks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Risk4?.setOrganization)
                {
                    await
                    Risk4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateIssueWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Issue0 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Issue0?.setProject)
                {
                    await
                    Issue0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Issue1 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Issue1?.setProject)
                {
                    await
                    Issue1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Issue2 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Issue2?.setProject)
                {
                    await
                    Issue2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Issue3 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Issue3?.setProject)
                {
                    await
                    Issue3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Issue4 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Issue4?.setProject)
                {
                    await
                    Issue4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateIssueWithAssigned_to_user() {
            
                const relatedAssigned_to_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Issue0 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Issue0?.setAssigned_to_user)
                {
                    await
                    Issue0.
                    setAssigned_to_user(relatedAssigned_to_user0);
                }
            
                const relatedAssigned_to_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Issue1 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Issue1?.setAssigned_to_user)
                {
                    await
                    Issue1.
                    setAssigned_to_user(relatedAssigned_to_user1);
                }
            
                const relatedAssigned_to_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Issue2 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Issue2?.setAssigned_to_user)
                {
                    await
                    Issue2.
                    setAssigned_to_user(relatedAssigned_to_user2);
                }
            
                const relatedAssigned_to_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Issue3 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Issue3?.setAssigned_to_user)
                {
                    await
                    Issue3.
                    setAssigned_to_user(relatedAssigned_to_user3);
                }
            
                const relatedAssigned_to_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Issue4 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Issue4?.setAssigned_to_user)
                {
                    await
                    Issue4.
                    setAssigned_to_user(relatedAssigned_to_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateIssueWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Issue0 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Issue0?.setOrganization)
                {
                    await
                    Issue0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Issue1 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Issue1?.setOrganization)
                {
                    await
                    Issue1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Issue2 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Issue2?.setOrganization)
                {
                    await
                    Issue2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Issue3 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Issue3?.setOrganization)
                {
                    await
                    Issue3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Issue4 = await Issues.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Issue4?.setOrganization)
                {
                    await
                    Issue4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateFieldVerificationWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const FieldVerification0 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FieldVerification0?.setProject)
                {
                    await
                    FieldVerification0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const FieldVerification1 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FieldVerification1?.setProject)
                {
                    await
                    FieldVerification1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const FieldVerification2 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FieldVerification2?.setProject)
                {
                    await
                    FieldVerification2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const FieldVerification3 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FieldVerification3?.setProject)
                {
                    await
                    FieldVerification3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const FieldVerification4 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FieldVerification4?.setProject)
                {
                    await
                    FieldVerification4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
            
            async function associateFieldVerificationWithVerified_by_user() {
            
                const relatedVerified_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FieldVerification0 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FieldVerification0?.setVerified_by_user)
                {
                    await
                    FieldVerification0.
                    setVerified_by_user(relatedVerified_by_user0);
                }
            
                const relatedVerified_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FieldVerification1 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FieldVerification1?.setVerified_by_user)
                {
                    await
                    FieldVerification1.
                    setVerified_by_user(relatedVerified_by_user1);
                }
            
                const relatedVerified_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FieldVerification2 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FieldVerification2?.setVerified_by_user)
                {
                    await
                    FieldVerification2.
                    setVerified_by_user(relatedVerified_by_user2);
                }
            
                const relatedVerified_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FieldVerification3 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FieldVerification3?.setVerified_by_user)
                {
                    await
                    FieldVerification3.
                    setVerified_by_user(relatedVerified_by_user3);
                }
            
                const relatedVerified_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const FieldVerification4 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FieldVerification4?.setVerified_by_user)
                {
                    await
                    FieldVerification4.
                    setVerified_by_user(relatedVerified_by_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFieldVerificationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FieldVerification0 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FieldVerification0?.setOrganization)
                {
                    await
                    FieldVerification0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FieldVerification1 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FieldVerification1?.setOrganization)
                {
                    await
                    FieldVerification1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FieldVerification2 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FieldVerification2?.setOrganization)
                {
                    await
                    FieldVerification2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FieldVerification3 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FieldVerification3?.setOrganization)
                {
                    await
                    FieldVerification3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const FieldVerification4 = await FieldVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FieldVerification4?.setOrganization)
                {
                    await
                    FieldVerification4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContractWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setOrganization)
                {
                    await
                    Contract0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setOrganization)
                {
                    await
                    Contract1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setOrganization)
                {
                    await
                    Contract2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setOrganization)
                {
                    await
                    Contract3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setOrganization)
                {
                    await
                    Contract4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateContractWithVendor() {
            
                const relatedVendor0 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setVendor)
                {
                    await
                    Contract0.
                    setVendor(relatedVendor0);
                }
            
                const relatedVendor1 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setVendor)
                {
                    await
                    Contract1.
                    setVendor(relatedVendor1);
                }
            
                const relatedVendor2 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setVendor)
                {
                    await
                    Contract2.
                    setVendor(relatedVendor2);
                }
            
                const relatedVendor3 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setVendor)
                {
                    await
                    Contract3.
                    setVendor(relatedVendor3);
                }
            
                const relatedVendor4 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setVendor)
                {
                    await
                    Contract4.
                    setVendor(relatedVendor4);
                }
            
        }
        
    
        
            
            async function associateContractWithAward() {
            
                const relatedAward0 = await Awards.findOne({
                    offset: Math.floor(Math.random() * (await Awards.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setAward)
                {
                    await
                    Contract0.
                    setAward(relatedAward0);
                }
            
                const relatedAward1 = await Awards.findOne({
                    offset: Math.floor(Math.random() * (await Awards.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setAward)
                {
                    await
                    Contract1.
                    setAward(relatedAward1);
                }
            
                const relatedAward2 = await Awards.findOne({
                    offset: Math.floor(Math.random() * (await Awards.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setAward)
                {
                    await
                    Contract2.
                    setAward(relatedAward2);
                }
            
                const relatedAward3 = await Awards.findOne({
                    offset: Math.floor(Math.random() * (await Awards.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setAward)
                {
                    await
                    Contract3.
                    setAward(relatedAward3);
                }
            
                const relatedAward4 = await Awards.findOne({
                    offset: Math.floor(Math.random() * (await Awards.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setAward)
                {
                    await
                    Contract4.
                    setAward(relatedAward4);
                }
            
        }
        
    
        
            
            async function associateContractWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setProject)
                {
                    await
                    Contract0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setProject)
                {
                    await
                    Contract1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setProject)
                {
                    await
                    Contract2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setProject)
                {
                    await
                    Contract3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setProject)
                {
                    await
                    Contract4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
            
            async function associateContractWithBudget_line() {
            
                const relatedBudget_line0 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setBudget_line)
                {
                    await
                    Contract0.
                    setBudget_line(relatedBudget_line0);
                }
            
                const relatedBudget_line1 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setBudget_line)
                {
                    await
                    Contract1.
                    setBudget_line(relatedBudget_line1);
                }
            
                const relatedBudget_line2 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setBudget_line)
                {
                    await
                    Contract2.
                    setBudget_line(relatedBudget_line2);
                }
            
                const relatedBudget_line3 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setBudget_line)
                {
                    await
                    Contract3.
                    setBudget_line(relatedBudget_line3);
                }
            
                const relatedBudget_line4 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setBudget_line)
                {
                    await
                    Contract4.
                    setBudget_line(relatedBudget_line4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateContractAmendmentWithContract() {
            
                const relatedContract0 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractAmendment0 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractAmendment0?.setContract)
                {
                    await
                    ContractAmendment0.
                    setContract(relatedContract0);
                }
            
                const relatedContract1 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractAmendment1 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractAmendment1?.setContract)
                {
                    await
                    ContractAmendment1.
                    setContract(relatedContract1);
                }
            
                const relatedContract2 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractAmendment2 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractAmendment2?.setContract)
                {
                    await
                    ContractAmendment2.
                    setContract(relatedContract2);
                }
            
                const relatedContract3 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractAmendment3 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractAmendment3?.setContract)
                {
                    await
                    ContractAmendment3.
                    setContract(relatedContract3);
                }
            
                const relatedContract4 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractAmendment4 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractAmendment4?.setContract)
                {
                    await
                    ContractAmendment4.
                    setContract(relatedContract4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContractAmendmentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractAmendment0 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractAmendment0?.setOrganization)
                {
                    await
                    ContractAmendment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractAmendment1 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractAmendment1?.setOrganization)
                {
                    await
                    ContractAmendment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractAmendment2 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractAmendment2?.setOrganization)
                {
                    await
                    ContractAmendment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractAmendment3 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractAmendment3?.setOrganization)
                {
                    await
                    ContractAmendment3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractAmendment4 = await ContractAmendments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractAmendment4?.setOrganization)
                {
                    await
                    ContractAmendment4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContractMilestoneWithContract() {
            
                const relatedContract0 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractMilestone0 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractMilestone0?.setContract)
                {
                    await
                    ContractMilestone0.
                    setContract(relatedContract0);
                }
            
                const relatedContract1 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractMilestone1 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractMilestone1?.setContract)
                {
                    await
                    ContractMilestone1.
                    setContract(relatedContract1);
                }
            
                const relatedContract2 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractMilestone2 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractMilestone2?.setContract)
                {
                    await
                    ContractMilestone2.
                    setContract(relatedContract2);
                }
            
                const relatedContract3 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractMilestone3 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractMilestone3?.setContract)
                {
                    await
                    ContractMilestone3.
                    setContract(relatedContract3);
                }
            
                const relatedContract4 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const ContractMilestone4 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractMilestone4?.setContract)
                {
                    await
                    ContractMilestone4.
                    setContract(relatedContract4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContractMilestoneWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractMilestone0 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractMilestone0?.setOrganization)
                {
                    await
                    ContractMilestone0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractMilestone1 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractMilestone1?.setOrganization)
                {
                    await
                    ContractMilestone1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractMilestone2 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractMilestone2?.setOrganization)
                {
                    await
                    ContractMilestone2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractMilestone3 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractMilestone3?.setOrganization)
                {
                    await
                    ContractMilestone3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractMilestone4 = await ContractMilestones.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractMilestone4?.setOrganization)
                {
                    await
                    ContractMilestone4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateGrantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Grant0 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Grant0?.setOrganization)
                {
                    await
                    Grant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Grant1 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Grant1?.setOrganization)
                {
                    await
                    Grant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Grant2 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Grant2?.setOrganization)
                {
                    await
                    Grant2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Grant3 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Grant3?.setOrganization)
                {
                    await
                    Grant3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Grant4 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Grant4?.setOrganization)
                {
                    await
                    Grant4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateGrantWithProgram() {
            
                const relatedProgram0 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Grant0 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Grant0?.setProgram)
                {
                    await
                    Grant0.
                    setProgram(relatedProgram0);
                }
            
                const relatedProgram1 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Grant1 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Grant1?.setProgram)
                {
                    await
                    Grant1.
                    setProgram(relatedProgram1);
                }
            
                const relatedProgram2 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Grant2 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Grant2?.setProgram)
                {
                    await
                    Grant2.
                    setProgram(relatedProgram2);
                }
            
                const relatedProgram3 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Grant3 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Grant3?.setProgram)
                {
                    await
                    Grant3.
                    setProgram(relatedProgram3);
                }
            
                const relatedProgram4 = await Programs.findOne({
                    offset: Math.floor(Math.random() * (await Programs.count())),
                });
                const Grant4 = await Grants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Grant4?.setProgram)
                {
                    await
                    Grant4.
                    setProgram(relatedProgram4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBeneficiaryWithGrant() {
            
                const relatedGrant0 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const Beneficiary0 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Beneficiary0?.setGrant)
                {
                    await
                    Beneficiary0.
                    setGrant(relatedGrant0);
                }
            
                const relatedGrant1 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const Beneficiary1 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Beneficiary1?.setGrant)
                {
                    await
                    Beneficiary1.
                    setGrant(relatedGrant1);
                }
            
                const relatedGrant2 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const Beneficiary2 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Beneficiary2?.setGrant)
                {
                    await
                    Beneficiary2.
                    setGrant(relatedGrant2);
                }
            
                const relatedGrant3 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const Beneficiary3 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Beneficiary3?.setGrant)
                {
                    await
                    Beneficiary3.
                    setGrant(relatedGrant3);
                }
            
                const relatedGrant4 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const Beneficiary4 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Beneficiary4?.setGrant)
                {
                    await
                    Beneficiary4.
                    setGrant(relatedGrant4);
                }
            
        }
        
    
        
            
            async function associateBeneficiaryWithProvince() {
            
                const relatedProvince0 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Beneficiary0 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Beneficiary0?.setProvince)
                {
                    await
                    Beneficiary0.
                    setProvince(relatedProvince0);
                }
            
                const relatedProvince1 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Beneficiary1 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Beneficiary1?.setProvince)
                {
                    await
                    Beneficiary1.
                    setProvince(relatedProvince1);
                }
            
                const relatedProvince2 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Beneficiary2 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Beneficiary2?.setProvince)
                {
                    await
                    Beneficiary2.
                    setProvince(relatedProvince2);
                }
            
                const relatedProvince3 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Beneficiary3 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Beneficiary3?.setProvince)
                {
                    await
                    Beneficiary3.
                    setProvince(relatedProvince3);
                }
            
                const relatedProvince4 = await Provinces.findOne({
                    offset: Math.floor(Math.random() * (await Provinces.count())),
                });
                const Beneficiary4 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Beneficiary4?.setProvince)
                {
                    await
                    Beneficiary4.
                    setProvince(relatedProvince4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBeneficiaryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Beneficiary0 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Beneficiary0?.setOrganization)
                {
                    await
                    Beneficiary0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Beneficiary1 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Beneficiary1?.setOrganization)
                {
                    await
                    Beneficiary1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Beneficiary2 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Beneficiary2?.setOrganization)
                {
                    await
                    Beneficiary2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Beneficiary3 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Beneficiary3?.setOrganization)
                {
                    await
                    Beneficiary3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Beneficiary4 = await Beneficiaries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Beneficiary4?.setOrganization)
                {
                    await
                    Beneficiary4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateGrantApplicationWithGrant() {
            
                const relatedGrant0 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const GrantApplication0 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantApplication0?.setGrant)
                {
                    await
                    GrantApplication0.
                    setGrant(relatedGrant0);
                }
            
                const relatedGrant1 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const GrantApplication1 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantApplication1?.setGrant)
                {
                    await
                    GrantApplication1.
                    setGrant(relatedGrant1);
                }
            
                const relatedGrant2 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const GrantApplication2 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantApplication2?.setGrant)
                {
                    await
                    GrantApplication2.
                    setGrant(relatedGrant2);
                }
            
                const relatedGrant3 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const GrantApplication3 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantApplication3?.setGrant)
                {
                    await
                    GrantApplication3.
                    setGrant(relatedGrant3);
                }
            
                const relatedGrant4 = await Grants.findOne({
                    offset: Math.floor(Math.random() * (await Grants.count())),
                });
                const GrantApplication4 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantApplication4?.setGrant)
                {
                    await
                    GrantApplication4.
                    setGrant(relatedGrant4);
                }
            
        }
        
    
        
            
            async function associateGrantApplicationWithBeneficiary() {
            
                const relatedBeneficiary0 = await Beneficiaries.findOne({
                    offset: Math.floor(Math.random() * (await Beneficiaries.count())),
                });
                const GrantApplication0 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantApplication0?.setBeneficiary)
                {
                    await
                    GrantApplication0.
                    setBeneficiary(relatedBeneficiary0);
                }
            
                const relatedBeneficiary1 = await Beneficiaries.findOne({
                    offset: Math.floor(Math.random() * (await Beneficiaries.count())),
                });
                const GrantApplication1 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantApplication1?.setBeneficiary)
                {
                    await
                    GrantApplication1.
                    setBeneficiary(relatedBeneficiary1);
                }
            
                const relatedBeneficiary2 = await Beneficiaries.findOne({
                    offset: Math.floor(Math.random() * (await Beneficiaries.count())),
                });
                const GrantApplication2 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantApplication2?.setBeneficiary)
                {
                    await
                    GrantApplication2.
                    setBeneficiary(relatedBeneficiary2);
                }
            
                const relatedBeneficiary3 = await Beneficiaries.findOne({
                    offset: Math.floor(Math.random() * (await Beneficiaries.count())),
                });
                const GrantApplication3 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantApplication3?.setBeneficiary)
                {
                    await
                    GrantApplication3.
                    setBeneficiary(relatedBeneficiary3);
                }
            
                const relatedBeneficiary4 = await Beneficiaries.findOne({
                    offset: Math.floor(Math.random() * (await Beneficiaries.count())),
                });
                const GrantApplication4 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantApplication4?.setBeneficiary)
                {
                    await
                    GrantApplication4.
                    setBeneficiary(relatedBeneficiary4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateGrantApplicationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantApplication0 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantApplication0?.setOrganization)
                {
                    await
                    GrantApplication0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantApplication1 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantApplication1?.setOrganization)
                {
                    await
                    GrantApplication1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantApplication2 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantApplication2?.setOrganization)
                {
                    await
                    GrantApplication2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantApplication3 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantApplication3?.setOrganization)
                {
                    await
                    GrantApplication3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantApplication4 = await GrantApplications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantApplication4?.setOrganization)
                {
                    await
                    GrantApplication4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateGrantEvaluationWithApplication() {
            
                const relatedApplication0 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantEvaluation0 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantEvaluation0?.setApplication)
                {
                    await
                    GrantEvaluation0.
                    setApplication(relatedApplication0);
                }
            
                const relatedApplication1 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantEvaluation1 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantEvaluation1?.setApplication)
                {
                    await
                    GrantEvaluation1.
                    setApplication(relatedApplication1);
                }
            
                const relatedApplication2 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantEvaluation2 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantEvaluation2?.setApplication)
                {
                    await
                    GrantEvaluation2.
                    setApplication(relatedApplication2);
                }
            
                const relatedApplication3 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantEvaluation3 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantEvaluation3?.setApplication)
                {
                    await
                    GrantEvaluation3.
                    setApplication(relatedApplication3);
                }
            
                const relatedApplication4 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantEvaluation4 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantEvaluation4?.setApplication)
                {
                    await
                    GrantEvaluation4.
                    setApplication(relatedApplication4);
                }
            
        }
        
    
        
            
            async function associateGrantEvaluationWithEvaluator_user() {
            
                const relatedEvaluator_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GrantEvaluation0 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantEvaluation0?.setEvaluator_user)
                {
                    await
                    GrantEvaluation0.
                    setEvaluator_user(relatedEvaluator_user0);
                }
            
                const relatedEvaluator_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GrantEvaluation1 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantEvaluation1?.setEvaluator_user)
                {
                    await
                    GrantEvaluation1.
                    setEvaluator_user(relatedEvaluator_user1);
                }
            
                const relatedEvaluator_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GrantEvaluation2 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantEvaluation2?.setEvaluator_user)
                {
                    await
                    GrantEvaluation2.
                    setEvaluator_user(relatedEvaluator_user2);
                }
            
                const relatedEvaluator_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GrantEvaluation3 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantEvaluation3?.setEvaluator_user)
                {
                    await
                    GrantEvaluation3.
                    setEvaluator_user(relatedEvaluator_user3);
                }
            
                const relatedEvaluator_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const GrantEvaluation4 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantEvaluation4?.setEvaluator_user)
                {
                    await
                    GrantEvaluation4.
                    setEvaluator_user(relatedEvaluator_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateGrantEvaluationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantEvaluation0 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantEvaluation0?.setOrganization)
                {
                    await
                    GrantEvaluation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantEvaluation1 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantEvaluation1?.setOrganization)
                {
                    await
                    GrantEvaluation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantEvaluation2 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantEvaluation2?.setOrganization)
                {
                    await
                    GrantEvaluation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantEvaluation3 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantEvaluation3?.setOrganization)
                {
                    await
                    GrantEvaluation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantEvaluation4 = await GrantEvaluations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantEvaluation4?.setOrganization)
                {
                    await
                    GrantEvaluation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateGrantTrancheWithApplication() {
            
                const relatedApplication0 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantTranche0 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantTranche0?.setApplication)
                {
                    await
                    GrantTranche0.
                    setApplication(relatedApplication0);
                }
            
                const relatedApplication1 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantTranche1 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantTranche1?.setApplication)
                {
                    await
                    GrantTranche1.
                    setApplication(relatedApplication1);
                }
            
                const relatedApplication2 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantTranche2 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantTranche2?.setApplication)
                {
                    await
                    GrantTranche2.
                    setApplication(relatedApplication2);
                }
            
                const relatedApplication3 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantTranche3 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantTranche3?.setApplication)
                {
                    await
                    GrantTranche3.
                    setApplication(relatedApplication3);
                }
            
                const relatedApplication4 = await GrantApplications.findOne({
                    offset: Math.floor(Math.random() * (await GrantApplications.count())),
                });
                const GrantTranche4 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantTranche4?.setApplication)
                {
                    await
                    GrantTranche4.
                    setApplication(relatedApplication4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateGrantTrancheWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantTranche0 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (GrantTranche0?.setOrganization)
                {
                    await
                    GrantTranche0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantTranche1 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (GrantTranche1?.setOrganization)
                {
                    await
                    GrantTranche1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantTranche2 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (GrantTranche2?.setOrganization)
                {
                    await
                    GrantTranche2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantTranche3 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (GrantTranche3?.setOrganization)
                {
                    await
                    GrantTranche3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const GrantTranche4 = await GrantTranches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (GrantTranche4?.setOrganization)
                {
                    await
                    GrantTranche4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateExpenseCategoryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExpenseCategory0 = await ExpenseCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ExpenseCategory0?.setOrganization)
                {
                    await
                    ExpenseCategory0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExpenseCategory1 = await ExpenseCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ExpenseCategory1?.setOrganization)
                {
                    await
                    ExpenseCategory1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExpenseCategory2 = await ExpenseCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ExpenseCategory2?.setOrganization)
                {
                    await
                    ExpenseCategory2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExpenseCategory3 = await ExpenseCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ExpenseCategory3?.setOrganization)
                {
                    await
                    ExpenseCategory3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ExpenseCategory4 = await ExpenseCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ExpenseCategory4?.setOrganization)
                {
                    await
                    ExpenseCategory4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateInvoiceWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setOrganization)
                {
                    await
                    Invoice0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setOrganization)
                {
                    await
                    Invoice1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setOrganization)
                {
                    await
                    Invoice2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setOrganization)
                {
                    await
                    Invoice3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setOrganization)
                {
                    await
                    Invoice4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateInvoiceWithVendor() {
            
                const relatedVendor0 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setVendor)
                {
                    await
                    Invoice0.
                    setVendor(relatedVendor0);
                }
            
                const relatedVendor1 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setVendor)
                {
                    await
                    Invoice1.
                    setVendor(relatedVendor1);
                }
            
                const relatedVendor2 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setVendor)
                {
                    await
                    Invoice2.
                    setVendor(relatedVendor2);
                }
            
                const relatedVendor3 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setVendor)
                {
                    await
                    Invoice3.
                    setVendor(relatedVendor3);
                }
            
                const relatedVendor4 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setVendor)
                {
                    await
                    Invoice4.
                    setVendor(relatedVendor4);
                }
            
        }
        
    
        
            
            async function associateInvoiceWithContract() {
            
                const relatedContract0 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setContract)
                {
                    await
                    Invoice0.
                    setContract(relatedContract0);
                }
            
                const relatedContract1 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setContract)
                {
                    await
                    Invoice1.
                    setContract(relatedContract1);
                }
            
                const relatedContract2 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setContract)
                {
                    await
                    Invoice2.
                    setContract(relatedContract2);
                }
            
                const relatedContract3 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setContract)
                {
                    await
                    Invoice3.
                    setContract(relatedContract3);
                }
            
                const relatedContract4 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setContract)
                {
                    await
                    Invoice4.
                    setContract(relatedContract4);
                }
            
        }
        
    
        
            
            async function associateInvoiceWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setProject)
                {
                    await
                    Invoice0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setProject)
                {
                    await
                    Invoice1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setProject)
                {
                    await
                    Invoice2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setProject)
                {
                    await
                    Invoice3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setProject)
                {
                    await
                    Invoice4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
            
            async function associateInvoiceWithExpense_category() {
            
                const relatedExpense_category0 = await ExpenseCategories.findOne({
                    offset: Math.floor(Math.random() * (await ExpenseCategories.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setExpense_category)
                {
                    await
                    Invoice0.
                    setExpense_category(relatedExpense_category0);
                }
            
                const relatedExpense_category1 = await ExpenseCategories.findOne({
                    offset: Math.floor(Math.random() * (await ExpenseCategories.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setExpense_category)
                {
                    await
                    Invoice1.
                    setExpense_category(relatedExpense_category1);
                }
            
                const relatedExpense_category2 = await ExpenseCategories.findOne({
                    offset: Math.floor(Math.random() * (await ExpenseCategories.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setExpense_category)
                {
                    await
                    Invoice2.
                    setExpense_category(relatedExpense_category2);
                }
            
                const relatedExpense_category3 = await ExpenseCategories.findOne({
                    offset: Math.floor(Math.random() * (await ExpenseCategories.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setExpense_category)
                {
                    await
                    Invoice3.
                    setExpense_category(relatedExpense_category3);
                }
            
                const relatedExpense_category4 = await ExpenseCategories.findOne({
                    offset: Math.floor(Math.random() * (await ExpenseCategories.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setExpense_category)
                {
                    await
                    Invoice4.
                    setExpense_category(relatedExpense_category4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePaymentRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentRequest0 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentRequest0?.setOrganization)
                {
                    await
                    PaymentRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentRequest1 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentRequest1?.setOrganization)
                {
                    await
                    PaymentRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentRequest2 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentRequest2?.setOrganization)
                {
                    await
                    PaymentRequest2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentRequest3 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentRequest3?.setOrganization)
                {
                    await
                    PaymentRequest3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentRequest4 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentRequest4?.setOrganization)
                {
                    await
                    PaymentRequest4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associatePaymentRequestWithInvoice() {
            
                const relatedInvoice0 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const PaymentRequest0 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentRequest0?.setInvoice)
                {
                    await
                    PaymentRequest0.
                    setInvoice(relatedInvoice0);
                }
            
                const relatedInvoice1 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const PaymentRequest1 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentRequest1?.setInvoice)
                {
                    await
                    PaymentRequest1.
                    setInvoice(relatedInvoice1);
                }
            
                const relatedInvoice2 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const PaymentRequest2 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentRequest2?.setInvoice)
                {
                    await
                    PaymentRequest2.
                    setInvoice(relatedInvoice2);
                }
            
                const relatedInvoice3 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const PaymentRequest3 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentRequest3?.setInvoice)
                {
                    await
                    PaymentRequest3.
                    setInvoice(relatedInvoice3);
                }
            
                const relatedInvoice4 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const PaymentRequest4 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentRequest4?.setInvoice)
                {
                    await
                    PaymentRequest4.
                    setInvoice(relatedInvoice4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePaymentRequestWithRequested_by_user() {
            
                const relatedRequested_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentRequest0 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentRequest0?.setRequested_by_user)
                {
                    await
                    PaymentRequest0.
                    setRequested_by_user(relatedRequested_by_user0);
                }
            
                const relatedRequested_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentRequest1 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentRequest1?.setRequested_by_user)
                {
                    await
                    PaymentRequest1.
                    setRequested_by_user(relatedRequested_by_user1);
                }
            
                const relatedRequested_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentRequest2 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentRequest2?.setRequested_by_user)
                {
                    await
                    PaymentRequest2.
                    setRequested_by_user(relatedRequested_by_user2);
                }
            
                const relatedRequested_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentRequest3 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentRequest3?.setRequested_by_user)
                {
                    await
                    PaymentRequest3.
                    setRequested_by_user(relatedRequested_by_user3);
                }
            
                const relatedRequested_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentRequest4 = await PaymentRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentRequest4?.setRequested_by_user)
                {
                    await
                    PaymentRequest4.
                    setRequested_by_user(relatedRequested_by_user4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associatePaymentBatcheWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentBatche0 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentBatche0?.setOrganization)
                {
                    await
                    PaymentBatche0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentBatche1 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentBatche1?.setOrganization)
                {
                    await
                    PaymentBatche1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentBatche2 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentBatche2?.setOrganization)
                {
                    await
                    PaymentBatche2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentBatche3 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentBatche3?.setOrganization)
                {
                    await
                    PaymentBatche3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentBatche4 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentBatche4?.setOrganization)
                {
                    await
                    PaymentBatche4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePaymentBatcheWithPrepared_by_user() {
            
                const relatedPrepared_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentBatche0 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentBatche0?.setPrepared_by_user)
                {
                    await
                    PaymentBatche0.
                    setPrepared_by_user(relatedPrepared_by_user0);
                }
            
                const relatedPrepared_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentBatche1 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentBatche1?.setPrepared_by_user)
                {
                    await
                    PaymentBatche1.
                    setPrepared_by_user(relatedPrepared_by_user1);
                }
            
                const relatedPrepared_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentBatche2 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentBatche2?.setPrepared_by_user)
                {
                    await
                    PaymentBatche2.
                    setPrepared_by_user(relatedPrepared_by_user2);
                }
            
                const relatedPrepared_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentBatche3 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentBatche3?.setPrepared_by_user)
                {
                    await
                    PaymentBatche3.
                    setPrepared_by_user(relatedPrepared_by_user3);
                }
            
                const relatedPrepared_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PaymentBatche4 = await PaymentBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentBatche4?.setPrepared_by_user)
                {
                    await
                    PaymentBatche4.
                    setPrepared_by_user(relatedPrepared_by_user4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePaymentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setOrganization)
                {
                    await
                    Payment0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setOrganization)
                {
                    await
                    Payment1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setOrganization)
                {
                    await
                    Payment2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setOrganization)
                {
                    await
                    Payment3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setOrganization)
                {
                    await
                    Payment4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associatePaymentWithPayment_request() {
            
                const relatedPayment_request0 = await PaymentRequests.findOne({
                    offset: Math.floor(Math.random() * (await PaymentRequests.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setPayment_request)
                {
                    await
                    Payment0.
                    setPayment_request(relatedPayment_request0);
                }
            
                const relatedPayment_request1 = await PaymentRequests.findOne({
                    offset: Math.floor(Math.random() * (await PaymentRequests.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setPayment_request)
                {
                    await
                    Payment1.
                    setPayment_request(relatedPayment_request1);
                }
            
                const relatedPayment_request2 = await PaymentRequests.findOne({
                    offset: Math.floor(Math.random() * (await PaymentRequests.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setPayment_request)
                {
                    await
                    Payment2.
                    setPayment_request(relatedPayment_request2);
                }
            
                const relatedPayment_request3 = await PaymentRequests.findOne({
                    offset: Math.floor(Math.random() * (await PaymentRequests.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setPayment_request)
                {
                    await
                    Payment3.
                    setPayment_request(relatedPayment_request3);
                }
            
                const relatedPayment_request4 = await PaymentRequests.findOne({
                    offset: Math.floor(Math.random() * (await PaymentRequests.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setPayment_request)
                {
                    await
                    Payment4.
                    setPayment_request(relatedPayment_request4);
                }
            
        }
        
    
        
            
            async function associatePaymentWithBatch() {
            
                const relatedBatch0 = await PaymentBatches.findOne({
                    offset: Math.floor(Math.random() * (await PaymentBatches.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setBatch)
                {
                    await
                    Payment0.
                    setBatch(relatedBatch0);
                }
            
                const relatedBatch1 = await PaymentBatches.findOne({
                    offset: Math.floor(Math.random() * (await PaymentBatches.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setBatch)
                {
                    await
                    Payment1.
                    setBatch(relatedBatch1);
                }
            
                const relatedBatch2 = await PaymentBatches.findOne({
                    offset: Math.floor(Math.random() * (await PaymentBatches.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setBatch)
                {
                    await
                    Payment2.
                    setBatch(relatedBatch2);
                }
            
                const relatedBatch3 = await PaymentBatches.findOne({
                    offset: Math.floor(Math.random() * (await PaymentBatches.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setBatch)
                {
                    await
                    Payment3.
                    setBatch(relatedBatch3);
                }
            
                const relatedBatch4 = await PaymentBatches.findOne({
                    offset: Math.floor(Math.random() * (await PaymentBatches.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setBatch)
                {
                    await
                    Payment4.
                    setBatch(relatedBatch4);
                }
            
        }
        
    
        
            
            async function associatePaymentWithVendor() {
            
                const relatedVendor0 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setVendor)
                {
                    await
                    Payment0.
                    setVendor(relatedVendor0);
                }
            
                const relatedVendor1 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setVendor)
                {
                    await
                    Payment1.
                    setVendor(relatedVendor1);
                }
            
                const relatedVendor2 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setVendor)
                {
                    await
                    Payment2.
                    setVendor(relatedVendor2);
                }
            
                const relatedVendor3 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setVendor)
                {
                    await
                    Payment3.
                    setVendor(relatedVendor3);
                }
            
                const relatedVendor4 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setVendor)
                {
                    await
                    Payment4.
                    setVendor(relatedVendor4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateObligationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Obligation0 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Obligation0?.setOrganization)
                {
                    await
                    Obligation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Obligation1 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Obligation1?.setOrganization)
                {
                    await
                    Obligation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Obligation2 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Obligation2?.setOrganization)
                {
                    await
                    Obligation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Obligation3 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Obligation3?.setOrganization)
                {
                    await
                    Obligation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Obligation4 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Obligation4?.setOrganization)
                {
                    await
                    Obligation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateObligationWithBudget_line() {
            
                const relatedBudget_line0 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Obligation0 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Obligation0?.setBudget_line)
                {
                    await
                    Obligation0.
                    setBudget_line(relatedBudget_line0);
                }
            
                const relatedBudget_line1 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Obligation1 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Obligation1?.setBudget_line)
                {
                    await
                    Obligation1.
                    setBudget_line(relatedBudget_line1);
                }
            
                const relatedBudget_line2 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Obligation2 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Obligation2?.setBudget_line)
                {
                    await
                    Obligation2.
                    setBudget_line(relatedBudget_line2);
                }
            
                const relatedBudget_line3 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Obligation3 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Obligation3?.setBudget_line)
                {
                    await
                    Obligation3.
                    setBudget_line(relatedBudget_line3);
                }
            
                const relatedBudget_line4 = await BudgetLines.findOne({
                    offset: Math.floor(Math.random() * (await BudgetLines.count())),
                });
                const Obligation4 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Obligation4?.setBudget_line)
                {
                    await
                    Obligation4.
                    setBudget_line(relatedBudget_line4);
                }
            
        }
        
    
        
            
            async function associateObligationWithContract() {
            
                const relatedContract0 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Obligation0 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Obligation0?.setContract)
                {
                    await
                    Obligation0.
                    setContract(relatedContract0);
                }
            
                const relatedContract1 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Obligation1 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Obligation1?.setContract)
                {
                    await
                    Obligation1.
                    setContract(relatedContract1);
                }
            
                const relatedContract2 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Obligation2 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Obligation2?.setContract)
                {
                    await
                    Obligation2.
                    setContract(relatedContract2);
                }
            
                const relatedContract3 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Obligation3 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Obligation3?.setContract)
                {
                    await
                    Obligation3.
                    setContract(relatedContract3);
                }
            
                const relatedContract4 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const Obligation4 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Obligation4?.setContract)
                {
                    await
                    Obligation4.
                    setContract(relatedContract4);
                }
            
        }
        
    
        
            
            async function associateObligationWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Obligation0 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Obligation0?.setProject)
                {
                    await
                    Obligation0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Obligation1 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Obligation1?.setProject)
                {
                    await
                    Obligation1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Obligation2 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Obligation2?.setProject)
                {
                    await
                    Obligation2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Obligation3 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Obligation3?.setProject)
                {
                    await
                    Obligation3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const Obligation4 = await Obligations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Obligation4?.setProject)
                {
                    await
                    Obligation4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLedgerEntryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LedgerEntry0 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LedgerEntry0?.setOrganization)
                {
                    await
                    LedgerEntry0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LedgerEntry1 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LedgerEntry1?.setOrganization)
                {
                    await
                    LedgerEntry1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LedgerEntry2 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LedgerEntry2?.setOrganization)
                {
                    await
                    LedgerEntry2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LedgerEntry3 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LedgerEntry3?.setOrganization)
                {
                    await
                    LedgerEntry3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const LedgerEntry4 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LedgerEntry4?.setOrganization)
                {
                    await
                    LedgerEntry4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
            
            async function associateLedgerEntryWithFiscal_year() {
            
                const relatedFiscal_year0 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const LedgerEntry0 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LedgerEntry0?.setFiscal_year)
                {
                    await
                    LedgerEntry0.
                    setFiscal_year(relatedFiscal_year0);
                }
            
                const relatedFiscal_year1 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const LedgerEntry1 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LedgerEntry1?.setFiscal_year)
                {
                    await
                    LedgerEntry1.
                    setFiscal_year(relatedFiscal_year1);
                }
            
                const relatedFiscal_year2 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const LedgerEntry2 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LedgerEntry2?.setFiscal_year)
                {
                    await
                    LedgerEntry2.
                    setFiscal_year(relatedFiscal_year2);
                }
            
                const relatedFiscal_year3 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const LedgerEntry3 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LedgerEntry3?.setFiscal_year)
                {
                    await
                    LedgerEntry3.
                    setFiscal_year(relatedFiscal_year3);
                }
            
                const relatedFiscal_year4 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const LedgerEntry4 = await LedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LedgerEntry4?.setFiscal_year)
                {
                    await
                    LedgerEntry4.
                    setFiscal_year(relatedFiscal_year4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDocumentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setOrganization)
                {
                    await
                    Document0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setOrganization)
                {
                    await
                    Document1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setOrganization)
                {
                    await
                    Document2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setOrganization)
                {
                    await
                    Document3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setOrganization)
                {
                    await
                    Document4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentWithUploaded_by_user() {
            
                const relatedUploaded_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setUploaded_by_user)
                {
                    await
                    Document0.
                    setUploaded_by_user(relatedUploaded_by_user0);
                }
            
                const relatedUploaded_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setUploaded_by_user)
                {
                    await
                    Document1.
                    setUploaded_by_user(relatedUploaded_by_user1);
                }
            
                const relatedUploaded_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setUploaded_by_user)
                {
                    await
                    Document2.
                    setUploaded_by_user(relatedUploaded_by_user2);
                }
            
                const relatedUploaded_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setUploaded_by_user)
                {
                    await
                    Document3.
                    setUploaded_by_user(relatedUploaded_by_user3);
                }
            
                const relatedUploaded_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setUploaded_by_user)
                {
                    await
                    Document4.
                    setUploaded_by_user(relatedUploaded_by_user4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateComplianceAlertWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ComplianceAlert0 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ComplianceAlert0?.setOrganization)
                {
                    await
                    ComplianceAlert0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ComplianceAlert1 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ComplianceAlert1?.setOrganization)
                {
                    await
                    ComplianceAlert1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ComplianceAlert2 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ComplianceAlert2?.setOrganization)
                {
                    await
                    ComplianceAlert2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ComplianceAlert3 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ComplianceAlert3?.setOrganization)
                {
                    await
                    ComplianceAlert3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ComplianceAlert4 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ComplianceAlert4?.setOrganization)
                {
                    await
                    ComplianceAlert4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateComplianceAlertWithAssigned_to_user() {
            
                const relatedAssigned_to_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComplianceAlert0 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ComplianceAlert0?.setAssigned_to_user)
                {
                    await
                    ComplianceAlert0.
                    setAssigned_to_user(relatedAssigned_to_user0);
                }
            
                const relatedAssigned_to_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComplianceAlert1 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ComplianceAlert1?.setAssigned_to_user)
                {
                    await
                    ComplianceAlert1.
                    setAssigned_to_user(relatedAssigned_to_user1);
                }
            
                const relatedAssigned_to_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComplianceAlert2 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ComplianceAlert2?.setAssigned_to_user)
                {
                    await
                    ComplianceAlert2.
                    setAssigned_to_user(relatedAssigned_to_user2);
                }
            
                const relatedAssigned_to_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComplianceAlert3 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ComplianceAlert3?.setAssigned_to_user)
                {
                    await
                    ComplianceAlert3.
                    setAssigned_to_user(relatedAssigned_to_user3);
                }
            
                const relatedAssigned_to_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComplianceAlert4 = await ComplianceAlerts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ComplianceAlert4?.setAssigned_to_user)
                {
                    await
                    ComplianceAlert4.
                    setAssigned_to_user(relatedAssigned_to_user4);
                }
            
        }
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await Provinces.bulkCreate(ProvincesData);
                
            
            
                
                await Departments.bulkCreate(DepartmentsData);
                
            
            
                
                await RolePermissions.bulkCreate(RolePermissionsData);
                
            
            
                
                await ApprovalWorkflows.bulkCreate(ApprovalWorkflowsData);
                
            
            
                
                await ApprovalSteps.bulkCreate(ApprovalStepsData);
                
            
            
                
                await Approvals.bulkCreate(ApprovalsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            
                
                await AuditLogs.bulkCreate(AuditLogsData);
                
            
            
                
                await FiscalYears.bulkCreate(FiscalYearsData);
                
            
            
                
                await FundingSources.bulkCreate(FundingSourcesData);
                
            
            
                
                await BudgetPrograms.bulkCreate(BudgetProgramsData);
                
            
            
                
                await BudgetLines.bulkCreate(BudgetLinesData);
                
            
            
                
                await Allocations.bulkCreate(AllocationsData);
                
            
            
                
                await BudgetReallocations.bulkCreate(BudgetReallocationsData);
                
            
            
                
                await ProcurementPlans.bulkCreate(ProcurementPlansData);
                
            
            
                
                await Requisitions.bulkCreate(RequisitionsData);
                
            
            
                
                await Tenders.bulkCreate(TendersData);
                
            
            
                
                await Vendors.bulkCreate(VendorsData);
                
            
            
                
                await VendorComplianceDocuments.bulkCreate(VendorComplianceDocumentsData);
                
            
            
                
                await Bids.bulkCreate(BidsData);
                
            
            
                
                await BidEvaluations.bulkCreate(BidEvaluationsData);
                
            
            
                
                await Awards.bulkCreate(AwardsData);
                
            
            
                
                await Programs.bulkCreate(ProgramsData);
                
            
            
                
                await Projects.bulkCreate(ProjectsData);
                
            
            
                
                await ProjectMilestones.bulkCreate(ProjectMilestonesData);
                
            
            
                
                await Risks.bulkCreate(RisksData);
                
            
            
                
                await Issues.bulkCreate(IssuesData);
                
            
            
                
                await FieldVerifications.bulkCreate(FieldVerificationsData);
                
            
            
                
                await Contracts.bulkCreate(ContractsData);
                
            
            
                
                await ContractAmendments.bulkCreate(ContractAmendmentsData);
                
            
            
                
                await ContractMilestones.bulkCreate(ContractMilestonesData);
                
            
            
                
                await Grants.bulkCreate(GrantsData);
                
            
            
                
                await Beneficiaries.bulkCreate(BeneficiariesData);
                
            
            
                
                await GrantApplications.bulkCreate(GrantApplicationsData);
                
            
            
                
                await GrantEvaluations.bulkCreate(GrantEvaluationsData);
                
            
            
                
                await GrantTranches.bulkCreate(GrantTranchesData);
                
            
            
                
                await ExpenseCategories.bulkCreate(ExpenseCategoriesData);
                
            
            
                
                await Invoices.bulkCreate(InvoicesData);
                
            
            
                
                await PaymentRequests.bulkCreate(PaymentRequestsData);
                
            
            
                
                await PaymentBatches.bulkCreate(PaymentBatchesData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await Obligations.bulkCreate(ObligationsData);
                
            
            
                
                await LedgerEntries.bulkCreate(LedgerEntriesData);
                
            
            
                
                await Documents.bulkCreate(DocumentsData);
                
            
            
                
                await ComplianceAlerts.bulkCreate(ComplianceAlertsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                        
                        await associateProvinceWithOrganization(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDepartmentWithOrganization(),
                    
                
                    
                
                    
                
                    
                        
                        await associateDepartmentWithParent_department(),
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateRolePermissionWithPermission(),
                    
                
                    
                        
                        await associateRolePermissionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateApprovalWorkflowWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateApprovalStepWithWorkflow(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApprovalStepWithApprover_department(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApprovalStepWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateApprovalWithOrganization(),
                    
                
                    
                        
                        await associateApprovalWithWorkflow(),
                    
                
                    
                        
                        await associateApprovalWithStep(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateApprovalWithRequested_by_user(),
                    
                
                    
                        
                        await associateApprovalWithAssigned_to_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNotificationWithOrganization(),
                    
                
                    
                        
                        await associateNotificationWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAuditLogWithOrganization(),
                    
                
                    
                        
                        await associateAuditLogWithActor_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFiscalYearWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFundingSourceWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBudgetProgramWithOrganization(),
                    
                
                    
                        
                        await associateBudgetProgramWithFiscal_year(),
                    
                
                    
                        
                        await associateBudgetProgramWithFunding_source(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBudgetLineWithBudget_program(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBudgetLineWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAllocationWithBudget_line(),
                    
                
                    
                        
                        await associateAllocationWithProvince(),
                    
                
                    
                        
                        await associateAllocationWithDepartment(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAllocationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateBudgetReallocationWithOrganization(),
                    
                
                    
                        
                        await associateBudgetReallocationWithFiscal_year(),
                    
                
                    
                        
                        await associateBudgetReallocationWithFrom_budget_line(),
                    
                
                    
                        
                        await associateBudgetReallocationWithTo_budget_line(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBudgetReallocationWithRequested_by_user(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProcurementPlanWithOrganization(),
                    
                
                    
                        
                        await associateProcurementPlanWithFiscal_year(),
                    
                
                    
                        
                        await associateProcurementPlanWithDepartment(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateRequisitionWithOrganization(),
                    
                
                    
                        
                        await associateRequisitionWithProcurement_plan(),
                    
                
                    
                        
                        await associateRequisitionWithRequesting_department(),
                    
                
                    
                        
                        await associateRequisitionWithBudget_line(),
                    
                
                    
                        
                        await associateRequisitionWithProvince(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRequisitionWithRequested_by_user(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTenderWithOrganization(),
                    
                
                    
                        
                        await associateTenderWithRequisition(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVendorWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVendorComplianceDocumentWithVendor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateVendorComplianceDocumentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateBidWithTender(),
                    
                
                    
                        
                        await associateBidWithVendor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBidWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateBidEvaluationWithBid(),
                    
                
                    
                        
                        await associateBidEvaluationWithLead_evaluator_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBidEvaluationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAwardWithOrganization(),
                    
                
                    
                        
                        await associateAwardWithTender(),
                    
                
                    
                        
                        await associateAwardWithWinning_bid(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProgramWithOrganization(),
                    
                
                    
                        
                        await associateProgramWithFiscal_year(),
                    
                
                    
                        
                        await associateProgramWithFunding_source(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProjectWithOrganization(),
                    
                
                    
                        
                        await associateProjectWithProgram(),
                    
                
                    
                        
                        await associateProjectWithProvince(),
                    
                
                    
                        
                        await associateProjectWithBudget_line(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProjectMilestoneWithProject(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProjectMilestoneWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRiskWithProject(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRiskWithOwner_user(),
                    
                
                    
                
                    
                
                    
                        
                        await associateRiskWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateIssueWithProject(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateIssueWithAssigned_to_user(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateIssueWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateFieldVerificationWithProject(),
                    
                
                    
                        
                        await associateFieldVerificationWithVerified_by_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFieldVerificationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContractWithOrganization(),
                    
                
                    
                        
                        await associateContractWithVendor(),
                    
                
                    
                        
                        await associateContractWithAward(),
                    
                
                    
                        
                        await associateContractWithProject(),
                    
                
                    
                        
                        await associateContractWithBudget_line(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateContractAmendmentWithContract(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContractAmendmentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContractMilestoneWithContract(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContractMilestoneWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateGrantWithOrganization(),
                    
                
                    
                        
                        await associateGrantWithProgram(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBeneficiaryWithGrant(),
                    
                
                    
                        
                        await associateBeneficiaryWithProvince(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBeneficiaryWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateGrantApplicationWithGrant(),
                    
                
                    
                        
                        await associateGrantApplicationWithBeneficiary(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGrantApplicationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateGrantEvaluationWithApplication(),
                    
                
                    
                        
                        await associateGrantEvaluationWithEvaluator_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGrantEvaluationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateGrantTrancheWithApplication(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateGrantTrancheWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateExpenseCategoryWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateInvoiceWithOrganization(),
                    
                
                    
                        
                        await associateInvoiceWithVendor(),
                    
                
                    
                        
                        await associateInvoiceWithContract(),
                    
                
                    
                        
                        await associateInvoiceWithProject(),
                    
                
                    
                        
                        await associateInvoiceWithExpense_category(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePaymentRequestWithOrganization(),
                    
                
                    
                        
                        await associatePaymentRequestWithInvoice(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentRequestWithRequested_by_user(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePaymentBatcheWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentBatcheWithPrepared_by_user(),
                    
                
            
                
                
                    
                        
                        await associatePaymentWithOrganization(),
                    
                
                    
                        
                        await associatePaymentWithPayment_request(),
                    
                
                    
                        
                        await associatePaymentWithBatch(),
                    
                
                    
                        
                        await associatePaymentWithVendor(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateObligationWithOrganization(),
                    
                
                    
                        
                        await associateObligationWithBudget_line(),
                    
                
                    
                        
                        await associateObligationWithContract(),
                    
                
                    
                        
                        await associateObligationWithProject(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLedgerEntryWithOrganization(),
                    
                
                    
                        
                        await associateLedgerEntryWithFiscal_year(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDocumentWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentWithUploaded_by_user(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateComplianceAlertWithOrganization(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateComplianceAlertWithAssigned_to_user(),
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('provinces', null, {});
            
            
            await queryInterface.bulkDelete('departments', null, {});
            
            
            await queryInterface.bulkDelete('role_permissions', null, {});
            
            
            await queryInterface.bulkDelete('approval_workflows', null, {});
            
            
            await queryInterface.bulkDelete('approval_steps', null, {});
            
            
            await queryInterface.bulkDelete('approvals', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
            
            await queryInterface.bulkDelete('audit_logs', null, {});
            
            
            await queryInterface.bulkDelete('fiscal_years', null, {});
            
            
            await queryInterface.bulkDelete('funding_sources', null, {});
            
            
            await queryInterface.bulkDelete('budget_programs', null, {});
            
            
            await queryInterface.bulkDelete('budget_lines', null, {});
            
            
            await queryInterface.bulkDelete('allocations', null, {});
            
            
            await queryInterface.bulkDelete('budget_reallocations', null, {});
            
            
            await queryInterface.bulkDelete('procurement_plans', null, {});
            
            
            await queryInterface.bulkDelete('requisitions', null, {});
            
            
            await queryInterface.bulkDelete('tenders', null, {});
            
            
            await queryInterface.bulkDelete('vendors', null, {});
            
            
            await queryInterface.bulkDelete('vendor_compliance_documents', null, {});
            
            
            await queryInterface.bulkDelete('bids', null, {});
            
            
            await queryInterface.bulkDelete('bid_evaluations', null, {});
            
            
            await queryInterface.bulkDelete('awards', null, {});
            
            
            await queryInterface.bulkDelete('programs', null, {});
            
            
            await queryInterface.bulkDelete('projects', null, {});
            
            
            await queryInterface.bulkDelete('project_milestones', null, {});
            
            
            await queryInterface.bulkDelete('risks', null, {});
            
            
            await queryInterface.bulkDelete('issues', null, {});
            
            
            await queryInterface.bulkDelete('field_verifications', null, {});
            
            
            await queryInterface.bulkDelete('contracts', null, {});
            
            
            await queryInterface.bulkDelete('contract_amendments', null, {});
            
            
            await queryInterface.bulkDelete('contract_milestones', null, {});
            
            
            await queryInterface.bulkDelete('grants', null, {});
            
            
            await queryInterface.bulkDelete('beneficiaries', null, {});
            
            
            await queryInterface.bulkDelete('grant_applications', null, {});
            
            
            await queryInterface.bulkDelete('grant_evaluations', null, {});
            
            
            await queryInterface.bulkDelete('grant_tranches', null, {});
            
            
            await queryInterface.bulkDelete('expense_categories', null, {});
            
            
            await queryInterface.bulkDelete('invoices', null, {});
            
            
            await queryInterface.bulkDelete('payment_requests', null, {});
            
            
            await queryInterface.bulkDelete('payment_batches', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('obligations', null, {});
            
            
            await queryInterface.bulkDelete('ledger_entries', null, {});
            
            
            await queryInterface.bulkDelete('documents', null, {});
            
            
            await queryInterface.bulkDelete('compliance_alerts', null, {});
            
        
    },
};