





















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






const Organizations = db.organizations;

const Tenants = db.tenants;

const TenantMemberships = db.tenant_memberships;

const ServiceTypes = db.service_types;

const AuthenticationMethods = db.authentication_methods;

const ServiceAuthPolicies = db.service_auth_policies;

const DocumentCategories = db.document_categories;

const DocumentTypes = db.document_types;

const DocumentTemplateVariables = db.document_template_variables;

const DocumentTemplates = db.document_templates;

const WorkflowDefinitions = db.workflow_definitions;

const WorkflowSteps = db.workflow_steps;

const PriceLists = db.price_lists;

const PriceRules = db.price_rules;

const Locations = db.locations;

const ContractFolders = db.contract_folders;

const ContractDocuments = db.contract_documents;

const ContractDataFields = db.contract_data_fields;

const ContractParticipants = db.contract_participants;

const ParticipantInvitations = db.participant_invitations;

const Payments = db.payments;

const PaymentShares = db.payment_shares;

const AuthenticationSessions = db.authentication_sessions;

const AuthenticationAttempts = db.authentication_attempts;

const IdVerificationArtifacts = db.id_verification_artifacts;

const BankVerifications = db.bank_verifications;

const NotificationRecords = db.notification_records;

const NotificationRecordItems = db.notification_record_items;

const SigningActions = db.signing_actions;

const DocumentRevisions = db.document_revisions;

const RevisionApprovals = db.revision_approvals;

const RevocationRequests = db.revocation_requests;

const SupportTickets = db.support_tickets;

const SupportTicketMessages = db.support_ticket_messages;

const AiContractClassifications = db.ai_contract_classifications;

const DisallowedContractRules = db.disallowed_contract_rules;

const ServiceSuitabilityRules = db.service_suitability_rules;

const AuditEvents = db.audit_events;







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



const TenantsData = [
    
    {
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "trade_name": "Alan Turing",
            
        
    
        
        
            
                "tax_identifier": "Grace Hopper",
            
        
    
        
        
            
                "country_code": "Grace Hopper",
            
        
    
        
        
            
                "timezone": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Grace Hopper",
            
        
    
        
        
            
                "trade_name": "Ada Lovelace",
            
        
    
        
        
            
                "tax_identifier": "Marie Curie",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "timezone": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Grace Hopper",
            
        
    
        
        
            
                "trade_name": "Alan Turing",
            
        
    
        
        
            
                "tax_identifier": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "timezone": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Ada Lovelace",
            
        
    
        
        
            
                "trade_name": "Alan Turing",
            
        
    
        
        
            
                "tax_identifier": "Grace Hopper",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "timezone": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Alan Turing",
            
        
    
        
        
            
                "trade_name": "Alan Turing",
            
        
    
        
        
            
                "tax_identifier": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Grace Hopper",
            
        
    
        
        
            
                "timezone": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const TenantMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "manager",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "owner",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "legal",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ServiceTypesData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "signature_level": "simple",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "signature_level": "advanced",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "signature_level": "advanced",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "signature_level": "simple",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "signature_level": "simple",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuthenticationMethodsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "method_type": "sms_otp",
            
        
    
        
        
            
                "requires_hardware": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "method_type": "bank_amount_verification",
            
        
    
        
        
            
                "requires_hardware": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "method_type": "bank_amount_verification",
            
        
    
        
        
            
                "requires_hardware": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "method_type": "bank_amount_verification",
            
        
    
        
        
            
                "requires_hardware": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "method_type": "fingerprint",
            
        
    
        
        
            
                "requires_hardware": true,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ServiceAuthPoliciesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "enforcement": "optional",
            
        
    
        
        
            
                "min_methods_required": 3,
            
        
    
        
        
            
                "allow_precheck": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "enforcement": "optional",
            
        
    
        
        
            
                "min_methods_required": 5,
            
        
    
        
        
            
                "allow_precheck": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "enforcement": "required",
            
        
    
        
        
            
                "min_methods_required": 2,
            
        
    
        
        
            
                "allow_precheck": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "enforcement": "optional",
            
        
    
        
        
            
                "min_methods_required": 4,
            
        
    
        
        
            
                "allow_precheck": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "enforcement": "optional",
            
        
    
        
        
            
                "min_methods_required": 7,
            
        
    
        
        
            
                "allow_precheck": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DocumentCategoriesData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



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



const DocumentTemplateVariablesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "data_type": "number",
            
        
    
        
        
            
                "is_required_minimum": true,
            
        
    
        
        
            
                "is_desired": true,
            
        
    
        
        
            
                "help_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "data_type": "currency",
            
        
    
        
        
            
                "is_required_minimum": false,
            
        
    
        
        
            
                "is_desired": false,
            
        
    
        
        
            
                "help_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "data_type": "date",
            
        
    
        
        
            
                "is_required_minimum": false,
            
        
    
        
        
            
                "is_desired": true,
            
        
    
        
        
            
                "help_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "data_type": "boolean",
            
        
    
        
        
            
                "is_required_minimum": true,
            
        
    
        
        
            
                "is_desired": false,
            
        
    
        
        
            
                "help_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "data_type": "boolean",
            
        
    
        
        
            
                "is_required_minimum": true,
            
        
    
        
        
            
                "is_desired": false,
            
        
    
        
        
            
                "help_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DocumentTemplatesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "version_label": "Grace Hopper",
            
        
    
        
        
            
                "template_source": "tenant",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "template_body": "Alan Turing",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "version_label": "Grace Hopper",
            
        
    
        
        
            
                "template_source": "public_user",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "template_body": "Grace Hopper",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "version_label": "Ada Lovelace",
            
        
    
        
        
            
                "template_source": "system",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "template_body": "Ada Lovelace",
            
        
    
        
        
            
                "is_public": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "version_label": "Ada Lovelace",
            
        
    
        
        
            
                "template_source": "tenant",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "template_body": "Grace Hopper",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "version_label": "Ada Lovelace",
            
        
    
        
        
            
                "template_source": "system",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "template_body": "Ada Lovelace",
            
        
    
        
        
            
                "is_public": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WorkflowDefinitionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "default_deadline_hours": 6,
            
        
    
        
        
            
                // 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": "Ada Lovelace",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "default_deadline_hours": 3,
            
        
    
        
        
            
                // 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": "Ada Lovelace",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "default_deadline_hours": 6,
            
        
    
        
        
            
                // 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",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "default_deadline_hours": 1,
            
        
    
        
        
            
                // 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": "Grace Hopper",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "default_deadline_hours": 5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const WorkflowStepsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "step_order": 3,
            
        
    
        
        
            
                "step_type": "prepare",
            
        
    
        
        
            
                "is_blocking": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "step_order": 6,
            
        
    
        
        
            
                "step_type": "participant_auth",
            
        
    
        
        
            
                "is_blocking": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "step_order": 4,
            
        
    
        
        
            
                "step_type": "sign",
            
        
    
        
        
            
                "is_blocking": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "step_order": 2,
            
        
    
        
        
            
                "step_type": "release",
            
        
    
        
        
            
                "is_blocking": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "step_order": 6,
            
        
    
        
        
            
                "step_type": "prepare",
            
        
    
        
        
            
                "is_blocking": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PriceListsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PriceRulesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_participants": 7,
            
        
    
        
        
            
                "max_participants": 9,
            
        
    
        
        
            
                "price_amount": 7.86,
            
        
    
        
        
            
                "is_split_payment_allowed": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_participants": 1,
            
        
    
        
        
            
                "max_participants": 5,
            
        
    
        
        
            
                "price_amount": 4.06,
            
        
    
        
        
            
                "is_split_payment_allowed": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_participants": 6,
            
        
    
        
        
            
                "max_participants": 4,
            
        
    
        
        
            
                "price_amount": 6.94,
            
        
    
        
        
            
                "is_split_payment_allowed": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_participants": 7,
            
        
    
        
        
            
                "max_participants": 4,
            
        
    
        
        
            
                "price_amount": 9.61,
            
        
    
        
        
            
                "is_split_payment_allowed": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "min_participants": 7,
            
        
    
        
        
            
                "max_participants": 8,
            
        
    
        
        
            
                "price_amount": 4.87,
            
        
    
        
        
            
                "is_split_payment_allowed": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const LocationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "location_type": "city",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "location_type": "office",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "location_type": "office",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "location_type": "country",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "location_type": "commune",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContractFoldersData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "deadline_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_notary": true,
            
        
    
        
        
            
                "service_warning": "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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "status": "in_signing",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "deadline_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_notary": true,
            
        
    
        
        
            
                "service_warning": "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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "deadline_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_notary": true,
            
        
    
        
        
            
                "service_warning": "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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "deadline_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_notary": false,
            
        
    
        
        
            
                "service_warning": "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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "deadline_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "requires_notary": false,
            
        
    
        
        
            
                "service_warning": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContractDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "document_source": "uploaded",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Alan Turing",
            
        
    
        
        
            
                "current_revision_number": 2,
            
        
    
        
        
            
                "is_locked": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "document_source": "uploaded",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Grace Hopper",
            
        
    
        
        
            
                "current_revision_number": 5,
            
        
    
        
        
            
                "is_locked": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "document_source": "from_template",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Marie Curie",
            
        
    
        
        
            
                "current_revision_number": 5,
            
        
    
        
        
            
                "is_locked": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "document_source": "from_template",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Marie Curie",
            
        
    
        
        
            
                "current_revision_number": 1,
            
        
    
        
        
            
                "is_locked": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "document_source": "from_template",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Grace Hopper",
            
        
    
        
        
            
                "current_revision_number": 8,
            
        
    
        
        
            
                "is_locked": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContractDataFieldsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "value_text": "Marie Curie",
            
        
    
        
        
            
                "value_number": 8.73,
            
        
    
        
        
            
                "value_datetime": new Date(Date.now()),
            
        
    
        
        
            
                "value_boolean": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "value_text": "Alan Turing",
            
        
    
        
        
            
                "value_number": 4.28,
            
        
    
        
        
            
                "value_datetime": new Date(Date.now()),
            
        
    
        
        
            
                "value_boolean": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "value_text": "Alan Turing",
            
        
    
        
        
            
                "value_number": 4.22,
            
        
    
        
        
            
                "value_datetime": new Date(Date.now()),
            
        
    
        
        
            
                "value_boolean": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "value_text": "Marie Curie",
            
        
    
        
        
            
                "value_number": 0.37,
            
        
    
        
        
            
                "value_datetime": new Date(Date.now()),
            
        
    
        
        
            
                "value_boolean": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "value_text": "Alan Turing",
            
        
    
        
        
            
                "value_number": 3.0,
            
        
    
        
        
            
                "value_datetime": new Date(Date.now()),
            
        
    
        
        
            
                "value_boolean": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ContractParticipantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone_e164": "Grace Hopper",
            
        
    
        
        
            
                "participant_role": "signer",
            
        
    
        
        
            
                "party_side": "third_party",
            
        
    
        
        
            
                "status": "payment_pending",
            
        
    
        
        
            
                "can_edit_before_any_signature": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone_e164": "Ada Lovelace",
            
        
    
        
        
            
                "participant_role": "preparer",
            
        
    
        
        
            
                "party_side": "third_party",
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "can_edit_before_any_signature": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone_e164": "Grace Hopper",
            
        
    
        
        
            
                "participant_role": "signer",
            
        
    
        
        
            
                "party_side": "third_party",
            
        
    
        
        
            
                "status": "signed",
            
        
    
        
        
            
                "can_edit_before_any_signature": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone_e164": "Alan Turing",
            
        
    
        
        
            
                "participant_role": "viewer",
            
        
    
        
        
            
                "party_side": "party_a",
            
        
    
        
        
            
                "status": "signed",
            
        
    
        
        
            
                "can_edit_before_any_signature": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "display_name": "Marie Curie",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone_e164": "Ada Lovelace",
            
        
    
        
        
            
                "participant_role": "preparer",
            
        
    
        
        
            
                "party_side": "third_party",
            
        
    
        
        
            
                "status": "ready_to_sign",
            
        
    
        
        
            
                "can_edit_before_any_signature": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ParticipantInvitationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invite_token": "Grace Hopper",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "send_count": 5,
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invite_token": "Marie Curie",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "send_count": 1,
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invite_token": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "send_count": 8,
            
        
    
        
        
            
                "channel": "sms",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invite_token": "Alan Turing",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "send_count": 8,
            
        
    
        
        
            
                "channel": "sms",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "invite_token": "Ada Lovelace",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "accepted_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "send_count": 2,
            
        
    
        
        
            
                "channel": "email",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "Alan Turing",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "total_amount": 0.11,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "payment_provider": "mercadopago",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "Marie Curie",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "total_amount": 5.64,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "payment_provider": "stripe",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "Grace Hopper",
            
        
    
        
        
            
                "status": "partially_paid",
            
        
    
        
        
            
                "total_amount": 5.79,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "payment_provider": "paypal",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "Ada Lovelace",
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "total_amount": 0.06,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "payment_provider": "paypal",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_reference": "Alan Turing",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "total_amount": 0.7,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "initiated_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "payment_provider": "webpay",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentSharesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount_due": 8.35,
            
        
    
        
        
            
                "amount_paid": 2.82,
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "pay_link_token": "Ada Lovelace",
            
        
    
        
        
            
                "pay_link_expires_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
            
        
    
        
        
            
                "amount_due": 7.15,
            
        
    
        
        
            
                "amount_paid": 9.01,
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "pay_link_token": "Alan Turing",
            
        
    
        
        
            
                "pay_link_expires_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
            
        
    
        
        
            
                "amount_due": 5.43,
            
        
    
        
        
            
                "amount_paid": 0.48,
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "pay_link_token": "Alan Turing",
            
        
    
        
        
            
                "pay_link_expires_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
            
        
    
        
        
            
                "amount_due": 1.6,
            
        
    
        
        
            
                "amount_paid": 2.64,
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "pay_link_token": "Marie Curie",
            
        
    
        
        
            
                "pay_link_expires_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
            
        
    
        
        
            
                "amount_due": 8.56,
            
        
    
        
        
            
                "amount_paid": 3.18,
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "pay_link_token": "Ada Lovelace",
            
        
    
        
        
            
                "pay_link_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuthenticationSessionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_started",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "attempt_count": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_started",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "attempt_count": 5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "not_started",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "attempt_count": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "attempt_count": 7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "attempt_count": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuthenticationAttemptsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                "failure_reason": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "skipped",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_reference": "Marie Curie",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                "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
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "provider_reference": "Marie Curie",
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const IdVerificationArtifactsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "id_document_type": "rut_other",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "quality_status": "pending",
            
        
    
        
        
            
                "quality_notes": "Marie Curie",
            
        
    
        
        
            
                "match_score": 8.88,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "id_document_type": "other",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "quality_status": "pending",
            
        
    
        
        
            
                "quality_notes": "Ada Lovelace",
            
        
    
        
        
            
                "match_score": 2.93,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "id_document_type": "other",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "quality_status": "acceptable",
            
        
    
        
        
            
                "quality_notes": "Grace Hopper",
            
        
    
        
        
            
                "match_score": 2.0,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "id_document_type": "other",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "quality_status": "rejected",
            
        
    
        
        
            
                "quality_notes": "Grace Hopper",
            
        
    
        
        
            
                "match_score": 8.7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "id_document_type": "passport",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "quality_status": "rejected",
            
        
    
        
        
            
                "quality_notes": "Ada Lovelace",
            
        
    
        
        
            
                "match_score": 5.72,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BankVerificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bank_name": "Alan Turing",
            
        
    
        
        
            
                "account_identifier": "Alan Turing",
            
        
    
        
        
            
                "expected_amount": 0.41,
            
        
    
        
        
            
                "reported_amount": 9.87,
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "verified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bank_name": "Marie Curie",
            
        
    
        
        
            
                "account_identifier": "Alan Turing",
            
        
    
        
        
            
                "expected_amount": 6.6,
            
        
    
        
        
            
                "reported_amount": 2.23,
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "verified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bank_name": "Alan Turing",
            
        
    
        
        
            
                "account_identifier": "Grace Hopper",
            
        
    
        
        
            
                "expected_amount": 3.03,
            
        
    
        
        
            
                "reported_amount": 9.22,
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "verified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bank_name": "Grace Hopper",
            
        
    
        
        
            
                "account_identifier": "Grace Hopper",
            
        
    
        
        
            
                "expected_amount": 5.99,
            
        
    
        
        
            
                "reported_amount": 1.14,
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "verified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bank_name": "Ada Lovelace",
            
        
    
        
        
            
                "account_identifier": "Alan Turing",
            
        
    
        
        
            
                "expected_amount": 3.07,
            
        
    
        
        
            
                "reported_amount": 8.91,
            
        
    
        
        
            
                "status": "matched",
            
        
    
        
        
            
                "verified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NotificationRecordsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "locked",
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
        
        
            
                "record_hash": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
        
        
            
                "record_hash": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_test",
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
        
        
            
                "record_hash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_test",
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
        
        
            
                "record_hash": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "in_test",
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
        
        
            
                "record_hash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NotificationRecordItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "tested_at": new Date(Date.now()),
            
        
    
        
        
            
                "evidence_reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "passed",
            
        
    
        
        
            
                "tested_at": new Date(Date.now()),
            
        
    
        
        
            
                "evidence_reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "tested_at": new Date(Date.now()),
            
        
    
        
        
            
                "evidence_reference": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "tested",
            
        
    
        
        
            
                "tested_at": new Date(Date.now()),
            
        
    
        
        
            
                "evidence_reference": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "tested_at": new Date(Date.now()),
            
        
    
        
        
            
                "evidence_reference": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SigningActionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "revision_number": 7,
            
        
    
        
        
            
                "action_type": "sign",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "action_at": new Date(Date.now()),
            
        
    
        
        
            
                "signature_hash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" 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
            
        
    
        
        
            
                "revision_number": 3,
            
        
    
        
        
            
                "action_type": "revoke",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "action_at": new Date(Date.now()),
            
        
    
        
        
            
                "signature_hash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" 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
            
        
    
        
        
            
                "revision_number": 9,
            
        
    
        
        
            
                "action_type": "decline",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "action_at": new Date(Date.now()),
            
        
    
        
        
            
                "signature_hash": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" 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
            
        
    
        
        
            
                "revision_number": 5,
            
        
    
        
        
            
                "action_type": "revoke",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "action_at": new Date(Date.now()),
            
        
    
        
        
            
                "signature_hash": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" 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
            
        
    
        
        
            
                "revision_number": 4,
            
        
    
        
        
            
                "action_type": "accept_change_and_resign",
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "action_at": new Date(Date.now()),
            
        
    
        
        
            
                "signature_hash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DocumentRevisionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "revision_number": 7,
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proposed_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "revision_number": 4,
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proposed_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "revision_number": 1,
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proposed_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "revision_number": 2,
            
        
    
        
        
            
                "status": "superseded",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proposed_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "revision_number": 7,
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "proposed_at": new Date(Date.now()),
            
        
    
        
        
            
                "change_summary": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "content_hash": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RevisionApprovalsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision": "rejected",
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "comment": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision": "pending",
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "comment": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision": "approved",
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "comment": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision": "pending",
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "comment": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision": "approved",
            
        
    
        
        
            
                "decided_at": new Date(Date.now()),
            
        
    
        
        
            
                "comment": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const RevocationRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "requested",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "processed",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "requested",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "accepted",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SupportTicketsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "category": "payment_issue",
            
        
    
        
        
            
                "priority": "urgent",
            
        
    
        
        
            
                "status": "waiting_user",
            
        
    
        
        
            
                "opened_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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "category": "authentication_failure",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                "status": "waiting_user",
            
        
    
        
        
            
                "opened_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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "category": "document_issue",
            
        
    
        
        
            
                "priority": "high",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "opened_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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "category": "general",
            
        
    
        
        
            
                "priority": "normal",
            
        
    
        
        
            
                "status": "resolved",
            
        
    
        
        
            
                "opened_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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "category": "document_issue",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const SupportTicketMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_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
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_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
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_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
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_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
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AiContractClassificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "error",
            
        
    
        
        
            
                "model_name": "Alan Turing",
            
        
    
        
        
            
                "confidence": 0.61,
            
        
    
        
        
            
                "predicted_category": "Alan Turing",
            
        
    
        
        
            
                "predicted_document_type": "Ada Lovelace",
            
        
    
        
        
            
                "is_disallowed": false,
            
        
    
        
        
            
                "disallow_reason": "Alan Turing",
            
        
    
        
        
            
                "classified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "classified",
            
        
    
        
        
            
                "model_name": "Grace Hopper",
            
        
    
        
        
            
                "confidence": 4.45,
            
        
    
        
        
            
                "predicted_category": "Alan Turing",
            
        
    
        
        
            
                "predicted_document_type": "Grace Hopper",
            
        
    
        
        
            
                "is_disallowed": true,
            
        
    
        
        
            
                "disallow_reason": "Ada Lovelace",
            
        
    
        
        
            
                "classified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "blocked",
            
        
    
        
        
            
                "model_name": "Marie Curie",
            
        
    
        
        
            
                "confidence": 1.48,
            
        
    
        
        
            
                "predicted_category": "Marie Curie",
            
        
    
        
        
            
                "predicted_document_type": "Marie Curie",
            
        
    
        
        
            
                "is_disallowed": true,
            
        
    
        
        
            
                "disallow_reason": "Grace Hopper",
            
        
    
        
        
            
                "classified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "model_name": "Grace Hopper",
            
        
    
        
        
            
                "confidence": 7.4,
            
        
    
        
        
            
                "predicted_category": "Ada Lovelace",
            
        
    
        
        
            
                "predicted_document_type": "Ada Lovelace",
            
        
    
        
        
            
                "is_disallowed": false,
            
        
    
        
        
            
                "disallow_reason": "Alan Turing",
            
        
    
        
        
            
                "classified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "needs_review",
            
        
    
        
        
            
                "model_name": "Alan Turing",
            
        
    
        
        
            
                "confidence": 7.4,
            
        
    
        
        
            
                "predicted_category": "Alan Turing",
            
        
    
        
        
            
                "predicted_document_type": "Ada Lovelace",
            
        
    
        
        
            
                "is_disallowed": false,
            
        
    
        
        
            
                "disallow_reason": "Ada Lovelace",
            
        
    
        
        
            
                "classified_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DisallowedContractRulesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "rule_code": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "rule_type": "document_type_block",
            
        
    
        
        
            
                "enforcement": "warn",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "rule_code": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "rule_type": "keyword_block",
            
        
    
        
        
            
                "enforcement": "block",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "rule_code": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "rule_type": "keyword_block",
            
        
    
        
        
            
                "enforcement": "warn",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "rule_code": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "rule_type": "ai_category_block",
            
        
    
        
        
            
                "enforcement": "warn",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "rule_code": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "rule_type": "keyword_block",
            
        
    
        
        
            
                "enforcement": "block",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ServiceSuitabilityRulesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "recommended_signature_level": "advanced",
            
        
    
        
        
            
                "enforcement": "block",
            
        
    
        
        
            
                "condition_text": "Marie Curie",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "recommended_signature_level": "notary_required",
            
        
    
        
        
            
                "enforcement": "warn",
            
        
    
        
        
            
                "condition_text": "Marie Curie",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "recommended_signature_level": "simple",
            
        
    
        
        
            
                "enforcement": "warn",
            
        
    
        
        
            
                "condition_text": "Grace Hopper",
            
        
    
        
        
            
                "message": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "recommended_signature_level": "notary_required",
            
        
    
        
        
            
                "enforcement": "warn",
            
        
    
        
        
            
                "condition_text": "Ada Lovelace",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "recommended_signature_level": "advanced",
            
        
    
        
        
            
                "enforcement": "warn",
            
        
    
        
        
            
                "condition_text": "Alan Turing",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AuditEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "Alan Turing",
            
        
    
        
        
            
                "event_summary": "Marie Curie",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_ip": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "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
            
        
    
        
        
            
                "event_type": "Marie Curie",
            
        
    
        
        
            
                "event_summary": "Grace Hopper",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_ip": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "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
            
        
    
        
        
            
                "event_type": "Ada Lovelace",
            
        
    
        
        
            
                "event_summary": "Ada Lovelace",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_ip": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "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
            
        
    
        
        
            
                "event_type": "Alan Turing",
            
        
    
        
        
            
                "event_summary": "Marie Curie",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_ip": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "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
            
        
    
        
        
            
                "event_type": "Grace Hopper",
            
        
    
        
        
            
                "event_summary": "Alan Turing",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "source_ip": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // 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 associateTenantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant0 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Tenant0?.setOrganization)
                {
                    await
                    Tenant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant1 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Tenant1?.setOrganization)
                {
                    await
                    Tenant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant2 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Tenant2?.setOrganization)
                {
                    await
                    Tenant2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant3 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Tenant3?.setOrganization)
                {
                    await
                    Tenant3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Tenant4 = await Tenants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Tenant4?.setOrganization)
                {
                    await
                    Tenant4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateTenantMembershipWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const TenantMembership0 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TenantMembership0?.setTenant)
                {
                    await
                    TenantMembership0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const TenantMembership1 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TenantMembership1?.setTenant)
                {
                    await
                    TenantMembership1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const TenantMembership2 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TenantMembership2?.setTenant)
                {
                    await
                    TenantMembership2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const TenantMembership3 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TenantMembership3?.setTenant)
                {
                    await
                    TenantMembership3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const TenantMembership4 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TenantMembership4?.setTenant)
                {
                    await
                    TenantMembership4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
            
            async function associateTenantMembershipWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TenantMembership0 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TenantMembership0?.setUser)
                {
                    await
                    TenantMembership0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TenantMembership1 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TenantMembership1?.setUser)
                {
                    await
                    TenantMembership1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TenantMembership2 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TenantMembership2?.setUser)
                {
                    await
                    TenantMembership2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TenantMembership3 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TenantMembership3?.setUser)
                {
                    await
                    TenantMembership3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TenantMembership4 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TenantMembership4?.setUser)
                {
                    await
                    TenantMembership4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateTenantMembershipWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TenantMembership0 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TenantMembership0?.setOrganization)
                {
                    await
                    TenantMembership0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TenantMembership1 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TenantMembership1?.setOrganization)
                {
                    await
                    TenantMembership1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TenantMembership2 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TenantMembership2?.setOrganization)
                {
                    await
                    TenantMembership2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TenantMembership3 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TenantMembership3?.setOrganization)
                {
                    await
                    TenantMembership3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const TenantMembership4 = await TenantMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TenantMembership4?.setOrganization)
                {
                    await
                    TenantMembership4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateServiceTypeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceType0 = await ServiceTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ServiceType0?.setOrganization)
                {
                    await
                    ServiceType0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceType1 = await ServiceTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ServiceType1?.setOrganization)
                {
                    await
                    ServiceType1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceType2 = await ServiceTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ServiceType2?.setOrganization)
                {
                    await
                    ServiceType2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceType3 = await ServiceTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ServiceType3?.setOrganization)
                {
                    await
                    ServiceType3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceType4 = await ServiceTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ServiceType4?.setOrganization)
                {
                    await
                    ServiceType4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAuthenticationMethodWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationMethod0 = await AuthenticationMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthenticationMethod0?.setOrganization)
                {
                    await
                    AuthenticationMethod0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationMethod1 = await AuthenticationMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthenticationMethod1?.setOrganization)
                {
                    await
                    AuthenticationMethod1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationMethod2 = await AuthenticationMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthenticationMethod2?.setOrganization)
                {
                    await
                    AuthenticationMethod2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationMethod3 = await AuthenticationMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthenticationMethod3?.setOrganization)
                {
                    await
                    AuthenticationMethod3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationMethod4 = await AuthenticationMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuthenticationMethod4?.setOrganization)
                {
                    await
                    AuthenticationMethod4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateServiceAuthPolicyWithService_type() {
            
                const relatedService_type0 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ServiceAuthPolicy0 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ServiceAuthPolicy0?.setService_type)
                {
                    await
                    ServiceAuthPolicy0.
                    setService_type(relatedService_type0);
                }
            
                const relatedService_type1 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ServiceAuthPolicy1 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ServiceAuthPolicy1?.setService_type)
                {
                    await
                    ServiceAuthPolicy1.
                    setService_type(relatedService_type1);
                }
            
                const relatedService_type2 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ServiceAuthPolicy2 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ServiceAuthPolicy2?.setService_type)
                {
                    await
                    ServiceAuthPolicy2.
                    setService_type(relatedService_type2);
                }
            
                const relatedService_type3 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ServiceAuthPolicy3 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ServiceAuthPolicy3?.setService_type)
                {
                    await
                    ServiceAuthPolicy3.
                    setService_type(relatedService_type3);
                }
            
                const relatedService_type4 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ServiceAuthPolicy4 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ServiceAuthPolicy4?.setService_type)
                {
                    await
                    ServiceAuthPolicy4.
                    setService_type(relatedService_type4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            
            async function associateServiceAuthPolicyWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceAuthPolicy0 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ServiceAuthPolicy0?.setOrganization)
                {
                    await
                    ServiceAuthPolicy0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceAuthPolicy1 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ServiceAuthPolicy1?.setOrganization)
                {
                    await
                    ServiceAuthPolicy1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceAuthPolicy2 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ServiceAuthPolicy2?.setOrganization)
                {
                    await
                    ServiceAuthPolicy2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceAuthPolicy3 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ServiceAuthPolicy3?.setOrganization)
                {
                    await
                    ServiceAuthPolicy3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceAuthPolicy4 = await ServiceAuthPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ServiceAuthPolicy4?.setOrganization)
                {
                    await
                    ServiceAuthPolicy4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentCategoryWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentCategory0 = await DocumentCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentCategory0?.setOrganization)
                {
                    await
                    DocumentCategory0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentCategory1 = await DocumentCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentCategory1?.setOrganization)
                {
                    await
                    DocumentCategory1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentCategory2 = await DocumentCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentCategory2?.setOrganization)
                {
                    await
                    DocumentCategory2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentCategory3 = await DocumentCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentCategory3?.setOrganization)
                {
                    await
                    DocumentCategory3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentCategory4 = await DocumentCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentCategory4?.setOrganization)
                {
                    await
                    DocumentCategory4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentTypeWithCategory() {
            
                const relatedCategory0 = await DocumentCategories.findOne({
                    offset: Math.floor(Math.random() * (await DocumentCategories.count())),
                });
                const DocumentType0 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentType0?.setCategory)
                {
                    await
                    DocumentType0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await DocumentCategories.findOne({
                    offset: Math.floor(Math.random() * (await DocumentCategories.count())),
                });
                const DocumentType1 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentType1?.setCategory)
                {
                    await
                    DocumentType1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await DocumentCategories.findOne({
                    offset: Math.floor(Math.random() * (await DocumentCategories.count())),
                });
                const DocumentType2 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentType2?.setCategory)
                {
                    await
                    DocumentType2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await DocumentCategories.findOne({
                    offset: Math.floor(Math.random() * (await DocumentCategories.count())),
                });
                const DocumentType3 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentType3?.setCategory)
                {
                    await
                    DocumentType3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await DocumentCategories.findOne({
                    offset: Math.floor(Math.random() * (await DocumentCategories.count())),
                });
                const DocumentType4 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentType4?.setCategory)
                {
                    await
                    DocumentType4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentTypeWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentType0 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentType0?.setOrganization)
                {
                    await
                    DocumentType0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentType1 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentType1?.setOrganization)
                {
                    await
                    DocumentType1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentType2 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentType2?.setOrganization)
                {
                    await
                    DocumentType2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentType3 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentType3?.setOrganization)
                {
                    await
                    DocumentType3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentType4 = await DocumentTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentType4?.setOrganization)
                {
                    await
                    DocumentType4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentTemplateVariableWithDocument_type() {
            
                const relatedDocument_type0 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplateVariable0 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentTemplateVariable0?.setDocument_type)
                {
                    await
                    DocumentTemplateVariable0.
                    setDocument_type(relatedDocument_type0);
                }
            
                const relatedDocument_type1 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplateVariable1 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentTemplateVariable1?.setDocument_type)
                {
                    await
                    DocumentTemplateVariable1.
                    setDocument_type(relatedDocument_type1);
                }
            
                const relatedDocument_type2 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplateVariable2 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentTemplateVariable2?.setDocument_type)
                {
                    await
                    DocumentTemplateVariable2.
                    setDocument_type(relatedDocument_type2);
                }
            
                const relatedDocument_type3 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplateVariable3 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentTemplateVariable3?.setDocument_type)
                {
                    await
                    DocumentTemplateVariable3.
                    setDocument_type(relatedDocument_type3);
                }
            
                const relatedDocument_type4 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplateVariable4 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentTemplateVariable4?.setDocument_type)
                {
                    await
                    DocumentTemplateVariable4.
                    setDocument_type(relatedDocument_type4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentTemplateVariableWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplateVariable0 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentTemplateVariable0?.setOrganization)
                {
                    await
                    DocumentTemplateVariable0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplateVariable1 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentTemplateVariable1?.setOrganization)
                {
                    await
                    DocumentTemplateVariable1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplateVariable2 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentTemplateVariable2?.setOrganization)
                {
                    await
                    DocumentTemplateVariable2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplateVariable3 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentTemplateVariable3?.setOrganization)
                {
                    await
                    DocumentTemplateVariable3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplateVariable4 = await DocumentTemplateVariables.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentTemplateVariable4?.setOrganization)
                {
                    await
                    DocumentTemplateVariable4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentTemplateWithDocument_type() {
            
                const relatedDocument_type0 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplate0 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentTemplate0?.setDocument_type)
                {
                    await
                    DocumentTemplate0.
                    setDocument_type(relatedDocument_type0);
                }
            
                const relatedDocument_type1 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplate1 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentTemplate1?.setDocument_type)
                {
                    await
                    DocumentTemplate1.
                    setDocument_type(relatedDocument_type1);
                }
            
                const relatedDocument_type2 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplate2 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentTemplate2?.setDocument_type)
                {
                    await
                    DocumentTemplate2.
                    setDocument_type(relatedDocument_type2);
                }
            
                const relatedDocument_type3 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplate3 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentTemplate3?.setDocument_type)
                {
                    await
                    DocumentTemplate3.
                    setDocument_type(relatedDocument_type3);
                }
            
                const relatedDocument_type4 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const DocumentTemplate4 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentTemplate4?.setDocument_type)
                {
                    await
                    DocumentTemplate4.
                    setDocument_type(relatedDocument_type4);
                }
            
        }
        
    
        
            
            async function associateDocumentTemplateWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DocumentTemplate0 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentTemplate0?.setTenant)
                {
                    await
                    DocumentTemplate0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DocumentTemplate1 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentTemplate1?.setTenant)
                {
                    await
                    DocumentTemplate1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DocumentTemplate2 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentTemplate2?.setTenant)
                {
                    await
                    DocumentTemplate2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DocumentTemplate3 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentTemplate3?.setTenant)
                {
                    await
                    DocumentTemplate3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const DocumentTemplate4 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentTemplate4?.setTenant)
                {
                    await
                    DocumentTemplate4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
            
            async function associateDocumentTemplateWithOwner_user() {
            
                const relatedOwner_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentTemplate0 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentTemplate0?.setOwner_user)
                {
                    await
                    DocumentTemplate0.
                    setOwner_user(relatedOwner_user0);
                }
            
                const relatedOwner_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentTemplate1 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentTemplate1?.setOwner_user)
                {
                    await
                    DocumentTemplate1.
                    setOwner_user(relatedOwner_user1);
                }
            
                const relatedOwner_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentTemplate2 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentTemplate2?.setOwner_user)
                {
                    await
                    DocumentTemplate2.
                    setOwner_user(relatedOwner_user2);
                }
            
                const relatedOwner_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentTemplate3 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentTemplate3?.setOwner_user)
                {
                    await
                    DocumentTemplate3.
                    setOwner_user(relatedOwner_user3);
                }
            
                const relatedOwner_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DocumentTemplate4 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentTemplate4?.setOwner_user)
                {
                    await
                    DocumentTemplate4.
                    setOwner_user(relatedOwner_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentTemplateWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplate0 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentTemplate0?.setOrganization)
                {
                    await
                    DocumentTemplate0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplate1 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentTemplate1?.setOrganization)
                {
                    await
                    DocumentTemplate1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplate2 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentTemplate2?.setOrganization)
                {
                    await
                    DocumentTemplate2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplate3 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentTemplate3?.setOrganization)
                {
                    await
                    DocumentTemplate3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentTemplate4 = await DocumentTemplates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentTemplate4?.setOrganization)
                {
                    await
                    DocumentTemplate4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWorkflowDefinitionWithService_type() {
            
                const relatedService_type0 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const WorkflowDefinition0 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkflowDefinition0?.setService_type)
                {
                    await
                    WorkflowDefinition0.
                    setService_type(relatedService_type0);
                }
            
                const relatedService_type1 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const WorkflowDefinition1 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkflowDefinition1?.setService_type)
                {
                    await
                    WorkflowDefinition1.
                    setService_type(relatedService_type1);
                }
            
                const relatedService_type2 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const WorkflowDefinition2 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkflowDefinition2?.setService_type)
                {
                    await
                    WorkflowDefinition2.
                    setService_type(relatedService_type2);
                }
            
                const relatedService_type3 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const WorkflowDefinition3 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkflowDefinition3?.setService_type)
                {
                    await
                    WorkflowDefinition3.
                    setService_type(relatedService_type3);
                }
            
                const relatedService_type4 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const WorkflowDefinition4 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WorkflowDefinition4?.setService_type)
                {
                    await
                    WorkflowDefinition4.
                    setService_type(relatedService_type4);
                }
            
        }
        
    
        
            
            async function associateWorkflowDefinitionWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const WorkflowDefinition0 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkflowDefinition0?.setTenant)
                {
                    await
                    WorkflowDefinition0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const WorkflowDefinition1 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkflowDefinition1?.setTenant)
                {
                    await
                    WorkflowDefinition1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const WorkflowDefinition2 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkflowDefinition2?.setTenant)
                {
                    await
                    WorkflowDefinition2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const WorkflowDefinition3 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkflowDefinition3?.setTenant)
                {
                    await
                    WorkflowDefinition3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const WorkflowDefinition4 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WorkflowDefinition4?.setTenant)
                {
                    await
                    WorkflowDefinition4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateWorkflowDefinitionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowDefinition0 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkflowDefinition0?.setOrganization)
                {
                    await
                    WorkflowDefinition0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowDefinition1 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkflowDefinition1?.setOrganization)
                {
                    await
                    WorkflowDefinition1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowDefinition2 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkflowDefinition2?.setOrganization)
                {
                    await
                    WorkflowDefinition2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowDefinition3 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkflowDefinition3?.setOrganization)
                {
                    await
                    WorkflowDefinition3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowDefinition4 = await WorkflowDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WorkflowDefinition4?.setOrganization)
                {
                    await
                    WorkflowDefinition4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateWorkflowStepWithWorkflow_definition() {
            
                const relatedWorkflow_definition0 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const WorkflowStep0 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkflowStep0?.setWorkflow_definition)
                {
                    await
                    WorkflowStep0.
                    setWorkflow_definition(relatedWorkflow_definition0);
                }
            
                const relatedWorkflow_definition1 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const WorkflowStep1 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkflowStep1?.setWorkflow_definition)
                {
                    await
                    WorkflowStep1.
                    setWorkflow_definition(relatedWorkflow_definition1);
                }
            
                const relatedWorkflow_definition2 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const WorkflowStep2 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkflowStep2?.setWorkflow_definition)
                {
                    await
                    WorkflowStep2.
                    setWorkflow_definition(relatedWorkflow_definition2);
                }
            
                const relatedWorkflow_definition3 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const WorkflowStep3 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkflowStep3?.setWorkflow_definition)
                {
                    await
                    WorkflowStep3.
                    setWorkflow_definition(relatedWorkflow_definition3);
                }
            
                const relatedWorkflow_definition4 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const WorkflowStep4 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WorkflowStep4?.setWorkflow_definition)
                {
                    await
                    WorkflowStep4.
                    setWorkflow_definition(relatedWorkflow_definition4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateWorkflowStepWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowStep0 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkflowStep0?.setOrganization)
                {
                    await
                    WorkflowStep0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowStep1 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkflowStep1?.setOrganization)
                {
                    await
                    WorkflowStep1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowStep2 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkflowStep2?.setOrganization)
                {
                    await
                    WorkflowStep2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowStep3 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkflowStep3?.setOrganization)
                {
                    await
                    WorkflowStep3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const WorkflowStep4 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WorkflowStep4?.setOrganization)
                {
                    await
                    WorkflowStep4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePriceListWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PriceList0 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PriceList0?.setTenant)
                {
                    await
                    PriceList0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PriceList1 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PriceList1?.setTenant)
                {
                    await
                    PriceList1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PriceList2 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PriceList2?.setTenant)
                {
                    await
                    PriceList2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PriceList3 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PriceList3?.setTenant)
                {
                    await
                    PriceList3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const PriceList4 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PriceList4?.setTenant)
                {
                    await
                    PriceList4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePriceListWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceList0 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PriceList0?.setOrganization)
                {
                    await
                    PriceList0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceList1 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PriceList1?.setOrganization)
                {
                    await
                    PriceList1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceList2 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PriceList2?.setOrganization)
                {
                    await
                    PriceList2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceList3 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PriceList3?.setOrganization)
                {
                    await
                    PriceList3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceList4 = await PriceLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PriceList4?.setOrganization)
                {
                    await
                    PriceList4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePriceRuleWithPrice_list() {
            
                const relatedPrice_list0 = await PriceLists.findOne({
                    offset: Math.floor(Math.random() * (await PriceLists.count())),
                });
                const PriceRule0 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PriceRule0?.setPrice_list)
                {
                    await
                    PriceRule0.
                    setPrice_list(relatedPrice_list0);
                }
            
                const relatedPrice_list1 = await PriceLists.findOne({
                    offset: Math.floor(Math.random() * (await PriceLists.count())),
                });
                const PriceRule1 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PriceRule1?.setPrice_list)
                {
                    await
                    PriceRule1.
                    setPrice_list(relatedPrice_list1);
                }
            
                const relatedPrice_list2 = await PriceLists.findOne({
                    offset: Math.floor(Math.random() * (await PriceLists.count())),
                });
                const PriceRule2 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PriceRule2?.setPrice_list)
                {
                    await
                    PriceRule2.
                    setPrice_list(relatedPrice_list2);
                }
            
                const relatedPrice_list3 = await PriceLists.findOne({
                    offset: Math.floor(Math.random() * (await PriceLists.count())),
                });
                const PriceRule3 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PriceRule3?.setPrice_list)
                {
                    await
                    PriceRule3.
                    setPrice_list(relatedPrice_list3);
                }
            
                const relatedPrice_list4 = await PriceLists.findOne({
                    offset: Math.floor(Math.random() * (await PriceLists.count())),
                });
                const PriceRule4 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PriceRule4?.setPrice_list)
                {
                    await
                    PriceRule4.
                    setPrice_list(relatedPrice_list4);
                }
            
        }
        
    
        
            
            async function associatePriceRuleWithService_type() {
            
                const relatedService_type0 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const PriceRule0 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PriceRule0?.setService_type)
                {
                    await
                    PriceRule0.
                    setService_type(relatedService_type0);
                }
            
                const relatedService_type1 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const PriceRule1 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PriceRule1?.setService_type)
                {
                    await
                    PriceRule1.
                    setService_type(relatedService_type1);
                }
            
                const relatedService_type2 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const PriceRule2 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PriceRule2?.setService_type)
                {
                    await
                    PriceRule2.
                    setService_type(relatedService_type2);
                }
            
                const relatedService_type3 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const PriceRule3 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PriceRule3?.setService_type)
                {
                    await
                    PriceRule3.
                    setService_type(relatedService_type3);
                }
            
                const relatedService_type4 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const PriceRule4 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PriceRule4?.setService_type)
                {
                    await
                    PriceRule4.
                    setService_type(relatedService_type4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePriceRuleWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceRule0 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PriceRule0?.setOrganization)
                {
                    await
                    PriceRule0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceRule1 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PriceRule1?.setOrganization)
                {
                    await
                    PriceRule1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceRule2 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PriceRule2?.setOrganization)
                {
                    await
                    PriceRule2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceRule3 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PriceRule3?.setOrganization)
                {
                    await
                    PriceRule3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PriceRule4 = await PriceRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PriceRule4?.setOrganization)
                {
                    await
                    PriceRule4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateLocationWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Location0 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Location0?.setTenant)
                {
                    await
                    Location0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Location1 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Location1?.setTenant)
                {
                    await
                    Location1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Location2 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Location2?.setTenant)
                {
                    await
                    Location2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Location3 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Location3?.setTenant)
                {
                    await
                    Location3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const Location4 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Location4?.setTenant)
                {
                    await
                    Location4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateLocationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Location0 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Location0?.setOrganization)
                {
                    await
                    Location0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Location1 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Location1?.setOrganization)
                {
                    await
                    Location1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Location2 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Location2?.setOrganization)
                {
                    await
                    Location2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Location3 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Location3?.setOrganization)
                {
                    await
                    Location3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const Location4 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Location4?.setOrganization)
                {
                    await
                    Location4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContractFolderWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ContractFolder0 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractFolder0?.setTenant)
                {
                    await
                    ContractFolder0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ContractFolder1 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractFolder1?.setTenant)
                {
                    await
                    ContractFolder1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ContractFolder2 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractFolder2?.setTenant)
                {
                    await
                    ContractFolder2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ContractFolder3 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractFolder3?.setTenant)
                {
                    await
                    ContractFolder3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const ContractFolder4 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractFolder4?.setTenant)
                {
                    await
                    ContractFolder4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
            
            async function associateContractFolderWithCreated_by_user() {
            
                const relatedCreated_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractFolder0 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractFolder0?.setCreated_by_user)
                {
                    await
                    ContractFolder0.
                    setCreated_by_user(relatedCreated_by_user0);
                }
            
                const relatedCreated_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractFolder1 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractFolder1?.setCreated_by_user)
                {
                    await
                    ContractFolder1.
                    setCreated_by_user(relatedCreated_by_user1);
                }
            
                const relatedCreated_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractFolder2 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractFolder2?.setCreated_by_user)
                {
                    await
                    ContractFolder2.
                    setCreated_by_user(relatedCreated_by_user2);
                }
            
                const relatedCreated_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractFolder3 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractFolder3?.setCreated_by_user)
                {
                    await
                    ContractFolder3.
                    setCreated_by_user(relatedCreated_by_user3);
                }
            
                const relatedCreated_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractFolder4 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractFolder4?.setCreated_by_user)
                {
                    await
                    ContractFolder4.
                    setCreated_by_user(relatedCreated_by_user4);
                }
            
        }
        
    
        
            
            async function associateContractFolderWithService_type() {
            
                const relatedService_type0 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ContractFolder0 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractFolder0?.setService_type)
                {
                    await
                    ContractFolder0.
                    setService_type(relatedService_type0);
                }
            
                const relatedService_type1 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ContractFolder1 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractFolder1?.setService_type)
                {
                    await
                    ContractFolder1.
                    setService_type(relatedService_type1);
                }
            
                const relatedService_type2 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ContractFolder2 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractFolder2?.setService_type)
                {
                    await
                    ContractFolder2.
                    setService_type(relatedService_type2);
                }
            
                const relatedService_type3 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ContractFolder3 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractFolder3?.setService_type)
                {
                    await
                    ContractFolder3.
                    setService_type(relatedService_type3);
                }
            
                const relatedService_type4 = await ServiceTypes.findOne({
                    offset: Math.floor(Math.random() * (await ServiceTypes.count())),
                });
                const ContractFolder4 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractFolder4?.setService_type)
                {
                    await
                    ContractFolder4.
                    setService_type(relatedService_type4);
                }
            
        }
        
    
        
            
            async function associateContractFolderWithWorkflow_definition() {
            
                const relatedWorkflow_definition0 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const ContractFolder0 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractFolder0?.setWorkflow_definition)
                {
                    await
                    ContractFolder0.
                    setWorkflow_definition(relatedWorkflow_definition0);
                }
            
                const relatedWorkflow_definition1 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const ContractFolder1 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractFolder1?.setWorkflow_definition)
                {
                    await
                    ContractFolder1.
                    setWorkflow_definition(relatedWorkflow_definition1);
                }
            
                const relatedWorkflow_definition2 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const ContractFolder2 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractFolder2?.setWorkflow_definition)
                {
                    await
                    ContractFolder2.
                    setWorkflow_definition(relatedWorkflow_definition2);
                }
            
                const relatedWorkflow_definition3 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const ContractFolder3 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractFolder3?.setWorkflow_definition)
                {
                    await
                    ContractFolder3.
                    setWorkflow_definition(relatedWorkflow_definition3);
                }
            
                const relatedWorkflow_definition4 = await WorkflowDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowDefinitions.count())),
                });
                const ContractFolder4 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractFolder4?.setWorkflow_definition)
                {
                    await
                    ContractFolder4.
                    setWorkflow_definition(relatedWorkflow_definition4);
                }
            
        }
        
    
        
            
            async function associateContractFolderWithDocument_template() {
            
                const relatedDocument_template0 = await DocumentTemplates.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTemplates.count())),
                });
                const ContractFolder0 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractFolder0?.setDocument_template)
                {
                    await
                    ContractFolder0.
                    setDocument_template(relatedDocument_template0);
                }
            
                const relatedDocument_template1 = await DocumentTemplates.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTemplates.count())),
                });
                const ContractFolder1 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractFolder1?.setDocument_template)
                {
                    await
                    ContractFolder1.
                    setDocument_template(relatedDocument_template1);
                }
            
                const relatedDocument_template2 = await DocumentTemplates.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTemplates.count())),
                });
                const ContractFolder2 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractFolder2?.setDocument_template)
                {
                    await
                    ContractFolder2.
                    setDocument_template(relatedDocument_template2);
                }
            
                const relatedDocument_template3 = await DocumentTemplates.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTemplates.count())),
                });
                const ContractFolder3 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractFolder3?.setDocument_template)
                {
                    await
                    ContractFolder3.
                    setDocument_template(relatedDocument_template3);
                }
            
                const relatedDocument_template4 = await DocumentTemplates.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTemplates.count())),
                });
                const ContractFolder4 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractFolder4?.setDocument_template)
                {
                    await
                    ContractFolder4.
                    setDocument_template(relatedDocument_template4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContractFolderWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const ContractFolder0 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractFolder0?.setLocation)
                {
                    await
                    ContractFolder0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const ContractFolder1 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractFolder1?.setLocation)
                {
                    await
                    ContractFolder1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const ContractFolder2 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractFolder2?.setLocation)
                {
                    await
                    ContractFolder2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const ContractFolder3 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractFolder3?.setLocation)
                {
                    await
                    ContractFolder3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const ContractFolder4 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractFolder4?.setLocation)
                {
                    await
                    ContractFolder4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
            
            async function associateContractFolderWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractFolder0 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractFolder0?.setOrganization)
                {
                    await
                    ContractFolder0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractFolder1 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractFolder1?.setOrganization)
                {
                    await
                    ContractFolder1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractFolder2 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractFolder2?.setOrganization)
                {
                    await
                    ContractFolder2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractFolder3 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractFolder3?.setOrganization)
                {
                    await
                    ContractFolder3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractFolder4 = await ContractFolders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractFolder4?.setOrganization)
                {
                    await
                    ContractFolder4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContractDocumentWithContract_folder() {
            
                const relatedContract_folder0 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractDocument0 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractDocument0?.setContract_folder)
                {
                    await
                    ContractDocument0.
                    setContract_folder(relatedContract_folder0);
                }
            
                const relatedContract_folder1 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractDocument1 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractDocument1?.setContract_folder)
                {
                    await
                    ContractDocument1.
                    setContract_folder(relatedContract_folder1);
                }
            
                const relatedContract_folder2 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractDocument2 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractDocument2?.setContract_folder)
                {
                    await
                    ContractDocument2.
                    setContract_folder(relatedContract_folder2);
                }
            
                const relatedContract_folder3 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractDocument3 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractDocument3?.setContract_folder)
                {
                    await
                    ContractDocument3.
                    setContract_folder(relatedContract_folder3);
                }
            
                const relatedContract_folder4 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractDocument4 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractDocument4?.setContract_folder)
                {
                    await
                    ContractDocument4.
                    setContract_folder(relatedContract_folder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContractDocumentWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDocument0 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractDocument0?.setOrganization)
                {
                    await
                    ContractDocument0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDocument1 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractDocument1?.setOrganization)
                {
                    await
                    ContractDocument1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDocument2 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractDocument2?.setOrganization)
                {
                    await
                    ContractDocument2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDocument3 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractDocument3?.setOrganization)
                {
                    await
                    ContractDocument3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDocument4 = await ContractDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractDocument4?.setOrganization)
                {
                    await
                    ContractDocument4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContractDataFieldWithContract_document() {
            
                const relatedContract_document0 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const ContractDataField0 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractDataField0?.setContract_document)
                {
                    await
                    ContractDataField0.
                    setContract_document(relatedContract_document0);
                }
            
                const relatedContract_document1 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const ContractDataField1 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractDataField1?.setContract_document)
                {
                    await
                    ContractDataField1.
                    setContract_document(relatedContract_document1);
                }
            
                const relatedContract_document2 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const ContractDataField2 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractDataField2?.setContract_document)
                {
                    await
                    ContractDataField2.
                    setContract_document(relatedContract_document2);
                }
            
                const relatedContract_document3 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const ContractDataField3 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractDataField3?.setContract_document)
                {
                    await
                    ContractDataField3.
                    setContract_document(relatedContract_document3);
                }
            
                const relatedContract_document4 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const ContractDataField4 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractDataField4?.setContract_document)
                {
                    await
                    ContractDataField4.
                    setContract_document(relatedContract_document4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContractDataFieldWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDataField0 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractDataField0?.setOrganization)
                {
                    await
                    ContractDataField0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDataField1 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractDataField1?.setOrganization)
                {
                    await
                    ContractDataField1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDataField2 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractDataField2?.setOrganization)
                {
                    await
                    ContractDataField2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDataField3 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractDataField3?.setOrganization)
                {
                    await
                    ContractDataField3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractDataField4 = await ContractDataFields.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractDataField4?.setOrganization)
                {
                    await
                    ContractDataField4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateContractParticipantWithContract_folder() {
            
                const relatedContract_folder0 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractParticipant0 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractParticipant0?.setContract_folder)
                {
                    await
                    ContractParticipant0.
                    setContract_folder(relatedContract_folder0);
                }
            
                const relatedContract_folder1 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractParticipant1 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractParticipant1?.setContract_folder)
                {
                    await
                    ContractParticipant1.
                    setContract_folder(relatedContract_folder1);
                }
            
                const relatedContract_folder2 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractParticipant2 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractParticipant2?.setContract_folder)
                {
                    await
                    ContractParticipant2.
                    setContract_folder(relatedContract_folder2);
                }
            
                const relatedContract_folder3 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractParticipant3 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractParticipant3?.setContract_folder)
                {
                    await
                    ContractParticipant3.
                    setContract_folder(relatedContract_folder3);
                }
            
                const relatedContract_folder4 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const ContractParticipant4 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractParticipant4?.setContract_folder)
                {
                    await
                    ContractParticipant4.
                    setContract_folder(relatedContract_folder4);
                }
            
        }
        
    
        
            
            async function associateContractParticipantWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractParticipant0 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractParticipant0?.setUser)
                {
                    await
                    ContractParticipant0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractParticipant1 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractParticipant1?.setUser)
                {
                    await
                    ContractParticipant1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractParticipant2 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractParticipant2?.setUser)
                {
                    await
                    ContractParticipant2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractParticipant3 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractParticipant3?.setUser)
                {
                    await
                    ContractParticipant3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ContractParticipant4 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractParticipant4?.setUser)
                {
                    await
                    ContractParticipant4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContractParticipantWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractParticipant0 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ContractParticipant0?.setOrganization)
                {
                    await
                    ContractParticipant0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractParticipant1 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ContractParticipant1?.setOrganization)
                {
                    await
                    ContractParticipant1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractParticipant2 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ContractParticipant2?.setOrganization)
                {
                    await
                    ContractParticipant2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractParticipant3 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ContractParticipant3?.setOrganization)
                {
                    await
                    ContractParticipant3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ContractParticipant4 = await ContractParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ContractParticipant4?.setOrganization)
                {
                    await
                    ContractParticipant4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateParticipantInvitationWithContract_participant() {
            
                const relatedContract_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const ParticipantInvitation0 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ParticipantInvitation0?.setContract_participant)
                {
                    await
                    ParticipantInvitation0.
                    setContract_participant(relatedContract_participant0);
                }
            
                const relatedContract_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const ParticipantInvitation1 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ParticipantInvitation1?.setContract_participant)
                {
                    await
                    ParticipantInvitation1.
                    setContract_participant(relatedContract_participant1);
                }
            
                const relatedContract_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const ParticipantInvitation2 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ParticipantInvitation2?.setContract_participant)
                {
                    await
                    ParticipantInvitation2.
                    setContract_participant(relatedContract_participant2);
                }
            
                const relatedContract_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const ParticipantInvitation3 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ParticipantInvitation3?.setContract_participant)
                {
                    await
                    ParticipantInvitation3.
                    setContract_participant(relatedContract_participant3);
                }
            
                const relatedContract_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const ParticipantInvitation4 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ParticipantInvitation4?.setContract_participant)
                {
                    await
                    ParticipantInvitation4.
                    setContract_participant(relatedContract_participant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateParticipantInvitationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ParticipantInvitation0 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ParticipantInvitation0?.setOrganization)
                {
                    await
                    ParticipantInvitation0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ParticipantInvitation1 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ParticipantInvitation1?.setOrganization)
                {
                    await
                    ParticipantInvitation1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ParticipantInvitation2 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ParticipantInvitation2?.setOrganization)
                {
                    await
                    ParticipantInvitation2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ParticipantInvitation3 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ParticipantInvitation3?.setOrganization)
                {
                    await
                    ParticipantInvitation3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ParticipantInvitation4 = await ParticipantInvitations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ParticipantInvitation4?.setOrganization)
                {
                    await
                    ParticipantInvitation4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePaymentWithContract_folder() {
            
                const relatedContract_folder0 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setContract_folder)
                {
                    await
                    Payment0.
                    setContract_folder(relatedContract_folder0);
                }
            
                const relatedContract_folder1 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setContract_folder)
                {
                    await
                    Payment1.
                    setContract_folder(relatedContract_folder1);
                }
            
                const relatedContract_folder2 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setContract_folder)
                {
                    await
                    Payment2.
                    setContract_folder(relatedContract_folder2);
                }
            
                const relatedContract_folder3 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setContract_folder)
                {
                    await
                    Payment3.
                    setContract_folder(relatedContract_folder3);
                }
            
                const relatedContract_folder4 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setContract_folder)
                {
                    await
                    Payment4.
                    setContract_folder(relatedContract_folder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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 associatePaymentShareWithPayment() {
            
                const relatedPayment0 = await Payments.findOne({
                    offset: Math.floor(Math.random() * (await Payments.count())),
                });
                const PaymentShare0 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentShare0?.setPayment)
                {
                    await
                    PaymentShare0.
                    setPayment(relatedPayment0);
                }
            
                const relatedPayment1 = await Payments.findOne({
                    offset: Math.floor(Math.random() * (await Payments.count())),
                });
                const PaymentShare1 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentShare1?.setPayment)
                {
                    await
                    PaymentShare1.
                    setPayment(relatedPayment1);
                }
            
                const relatedPayment2 = await Payments.findOne({
                    offset: Math.floor(Math.random() * (await Payments.count())),
                });
                const PaymentShare2 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentShare2?.setPayment)
                {
                    await
                    PaymentShare2.
                    setPayment(relatedPayment2);
                }
            
                const relatedPayment3 = await Payments.findOne({
                    offset: Math.floor(Math.random() * (await Payments.count())),
                });
                const PaymentShare3 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentShare3?.setPayment)
                {
                    await
                    PaymentShare3.
                    setPayment(relatedPayment3);
                }
            
                const relatedPayment4 = await Payments.findOne({
                    offset: Math.floor(Math.random() * (await Payments.count())),
                });
                const PaymentShare4 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentShare4?.setPayment)
                {
                    await
                    PaymentShare4.
                    setPayment(relatedPayment4);
                }
            
        }
        
    
        
            
            async function associatePaymentShareWithContract_participant() {
            
                const relatedContract_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const PaymentShare0 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentShare0?.setContract_participant)
                {
                    await
                    PaymentShare0.
                    setContract_participant(relatedContract_participant0);
                }
            
                const relatedContract_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const PaymentShare1 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentShare1?.setContract_participant)
                {
                    await
                    PaymentShare1.
                    setContract_participant(relatedContract_participant1);
                }
            
                const relatedContract_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const PaymentShare2 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentShare2?.setContract_participant)
                {
                    await
                    PaymentShare2.
                    setContract_participant(relatedContract_participant2);
                }
            
                const relatedContract_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const PaymentShare3 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentShare3?.setContract_participant)
                {
                    await
                    PaymentShare3.
                    setContract_participant(relatedContract_participant3);
                }
            
                const relatedContract_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const PaymentShare4 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentShare4?.setContract_participant)
                {
                    await
                    PaymentShare4.
                    setContract_participant(relatedContract_participant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePaymentShareWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentShare0 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentShare0?.setOrganization)
                {
                    await
                    PaymentShare0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentShare1 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentShare1?.setOrganization)
                {
                    await
                    PaymentShare1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentShare2 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentShare2?.setOrganization)
                {
                    await
                    PaymentShare2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentShare3 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentShare3?.setOrganization)
                {
                    await
                    PaymentShare3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const PaymentShare4 = await PaymentShares.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentShare4?.setOrganization)
                {
                    await
                    PaymentShare4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAuthenticationSessionWithContract_participant() {
            
                const relatedContract_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const AuthenticationSession0 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthenticationSession0?.setContract_participant)
                {
                    await
                    AuthenticationSession0.
                    setContract_participant(relatedContract_participant0);
                }
            
                const relatedContract_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const AuthenticationSession1 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthenticationSession1?.setContract_participant)
                {
                    await
                    AuthenticationSession1.
                    setContract_participant(relatedContract_participant1);
                }
            
                const relatedContract_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const AuthenticationSession2 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthenticationSession2?.setContract_participant)
                {
                    await
                    AuthenticationSession2.
                    setContract_participant(relatedContract_participant2);
                }
            
                const relatedContract_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const AuthenticationSession3 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthenticationSession3?.setContract_participant)
                {
                    await
                    AuthenticationSession3.
                    setContract_participant(relatedContract_participant3);
                }
            
                const relatedContract_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const AuthenticationSession4 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuthenticationSession4?.setContract_participant)
                {
                    await
                    AuthenticationSession4.
                    setContract_participant(relatedContract_participant4);
                }
            
        }
        
    
        
            
            async function associateAuthenticationSessionWithService_auth_policy() {
            
                const relatedService_auth_policy0 = await ServiceAuthPolicies.findOne({
                    offset: Math.floor(Math.random() * (await ServiceAuthPolicies.count())),
                });
                const AuthenticationSession0 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthenticationSession0?.setService_auth_policy)
                {
                    await
                    AuthenticationSession0.
                    setService_auth_policy(relatedService_auth_policy0);
                }
            
                const relatedService_auth_policy1 = await ServiceAuthPolicies.findOne({
                    offset: Math.floor(Math.random() * (await ServiceAuthPolicies.count())),
                });
                const AuthenticationSession1 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthenticationSession1?.setService_auth_policy)
                {
                    await
                    AuthenticationSession1.
                    setService_auth_policy(relatedService_auth_policy1);
                }
            
                const relatedService_auth_policy2 = await ServiceAuthPolicies.findOne({
                    offset: Math.floor(Math.random() * (await ServiceAuthPolicies.count())),
                });
                const AuthenticationSession2 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthenticationSession2?.setService_auth_policy)
                {
                    await
                    AuthenticationSession2.
                    setService_auth_policy(relatedService_auth_policy2);
                }
            
                const relatedService_auth_policy3 = await ServiceAuthPolicies.findOne({
                    offset: Math.floor(Math.random() * (await ServiceAuthPolicies.count())),
                });
                const AuthenticationSession3 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthenticationSession3?.setService_auth_policy)
                {
                    await
                    AuthenticationSession3.
                    setService_auth_policy(relatedService_auth_policy3);
                }
            
                const relatedService_auth_policy4 = await ServiceAuthPolicies.findOne({
                    offset: Math.floor(Math.random() * (await ServiceAuthPolicies.count())),
                });
                const AuthenticationSession4 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuthenticationSession4?.setService_auth_policy)
                {
                    await
                    AuthenticationSession4.
                    setService_auth_policy(relatedService_auth_policy4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAuthenticationSessionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationSession0 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthenticationSession0?.setOrganization)
                {
                    await
                    AuthenticationSession0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationSession1 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthenticationSession1?.setOrganization)
                {
                    await
                    AuthenticationSession1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationSession2 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthenticationSession2?.setOrganization)
                {
                    await
                    AuthenticationSession2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationSession3 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthenticationSession3?.setOrganization)
                {
                    await
                    AuthenticationSession3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationSession4 = await AuthenticationSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuthenticationSession4?.setOrganization)
                {
                    await
                    AuthenticationSession4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAuthenticationAttemptWithAuthentication_session() {
            
                const relatedAuthentication_session0 = await AuthenticationSessions.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationSessions.count())),
                });
                const AuthenticationAttempt0 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthenticationAttempt0?.setAuthentication_session)
                {
                    await
                    AuthenticationAttempt0.
                    setAuthentication_session(relatedAuthentication_session0);
                }
            
                const relatedAuthentication_session1 = await AuthenticationSessions.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationSessions.count())),
                });
                const AuthenticationAttempt1 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthenticationAttempt1?.setAuthentication_session)
                {
                    await
                    AuthenticationAttempt1.
                    setAuthentication_session(relatedAuthentication_session1);
                }
            
                const relatedAuthentication_session2 = await AuthenticationSessions.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationSessions.count())),
                });
                const AuthenticationAttempt2 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthenticationAttempt2?.setAuthentication_session)
                {
                    await
                    AuthenticationAttempt2.
                    setAuthentication_session(relatedAuthentication_session2);
                }
            
                const relatedAuthentication_session3 = await AuthenticationSessions.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationSessions.count())),
                });
                const AuthenticationAttempt3 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthenticationAttempt3?.setAuthentication_session)
                {
                    await
                    AuthenticationAttempt3.
                    setAuthentication_session(relatedAuthentication_session3);
                }
            
                const relatedAuthentication_session4 = await AuthenticationSessions.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationSessions.count())),
                });
                const AuthenticationAttempt4 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuthenticationAttempt4?.setAuthentication_session)
                {
                    await
                    AuthenticationAttempt4.
                    setAuthentication_session(relatedAuthentication_session4);
                }
            
        }
        
    
        
            
            async function associateAuthenticationAttemptWithAuthentication_method() {
            
                const relatedAuthentication_method0 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const AuthenticationAttempt0 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthenticationAttempt0?.setAuthentication_method)
                {
                    await
                    AuthenticationAttempt0.
                    setAuthentication_method(relatedAuthentication_method0);
                }
            
                const relatedAuthentication_method1 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const AuthenticationAttempt1 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthenticationAttempt1?.setAuthentication_method)
                {
                    await
                    AuthenticationAttempt1.
                    setAuthentication_method(relatedAuthentication_method1);
                }
            
                const relatedAuthentication_method2 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const AuthenticationAttempt2 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthenticationAttempt2?.setAuthentication_method)
                {
                    await
                    AuthenticationAttempt2.
                    setAuthentication_method(relatedAuthentication_method2);
                }
            
                const relatedAuthentication_method3 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const AuthenticationAttempt3 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthenticationAttempt3?.setAuthentication_method)
                {
                    await
                    AuthenticationAttempt3.
                    setAuthentication_method(relatedAuthentication_method3);
                }
            
                const relatedAuthentication_method4 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const AuthenticationAttempt4 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuthenticationAttempt4?.setAuthentication_method)
                {
                    await
                    AuthenticationAttempt4.
                    setAuthentication_method(relatedAuthentication_method4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAuthenticationAttemptWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationAttempt0 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthenticationAttempt0?.setOrganization)
                {
                    await
                    AuthenticationAttempt0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationAttempt1 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthenticationAttempt1?.setOrganization)
                {
                    await
                    AuthenticationAttempt1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationAttempt2 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthenticationAttempt2?.setOrganization)
                {
                    await
                    AuthenticationAttempt2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationAttempt3 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthenticationAttempt3?.setOrganization)
                {
                    await
                    AuthenticationAttempt3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuthenticationAttempt4 = await AuthenticationAttempts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuthenticationAttempt4?.setOrganization)
                {
                    await
                    AuthenticationAttempt4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateIdVerificationArtifactWithAuthentication_attempt() {
            
                const relatedAuthentication_attempt0 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const IdVerificationArtifact0 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (IdVerificationArtifact0?.setAuthentication_attempt)
                {
                    await
                    IdVerificationArtifact0.
                    setAuthentication_attempt(relatedAuthentication_attempt0);
                }
            
                const relatedAuthentication_attempt1 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const IdVerificationArtifact1 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (IdVerificationArtifact1?.setAuthentication_attempt)
                {
                    await
                    IdVerificationArtifact1.
                    setAuthentication_attempt(relatedAuthentication_attempt1);
                }
            
                const relatedAuthentication_attempt2 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const IdVerificationArtifact2 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (IdVerificationArtifact2?.setAuthentication_attempt)
                {
                    await
                    IdVerificationArtifact2.
                    setAuthentication_attempt(relatedAuthentication_attempt2);
                }
            
                const relatedAuthentication_attempt3 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const IdVerificationArtifact3 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (IdVerificationArtifact3?.setAuthentication_attempt)
                {
                    await
                    IdVerificationArtifact3.
                    setAuthentication_attempt(relatedAuthentication_attempt3);
                }
            
                const relatedAuthentication_attempt4 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const IdVerificationArtifact4 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (IdVerificationArtifact4?.setAuthentication_attempt)
                {
                    await
                    IdVerificationArtifact4.
                    setAuthentication_attempt(relatedAuthentication_attempt4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateIdVerificationArtifactWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdVerificationArtifact0 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (IdVerificationArtifact0?.setOrganization)
                {
                    await
                    IdVerificationArtifact0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdVerificationArtifact1 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (IdVerificationArtifact1?.setOrganization)
                {
                    await
                    IdVerificationArtifact1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdVerificationArtifact2 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (IdVerificationArtifact2?.setOrganization)
                {
                    await
                    IdVerificationArtifact2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdVerificationArtifact3 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (IdVerificationArtifact3?.setOrganization)
                {
                    await
                    IdVerificationArtifact3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const IdVerificationArtifact4 = await IdVerificationArtifacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (IdVerificationArtifact4?.setOrganization)
                {
                    await
                    IdVerificationArtifact4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateBankVerificationWithAuthentication_attempt() {
            
                const relatedAuthentication_attempt0 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const BankVerification0 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankVerification0?.setAuthentication_attempt)
                {
                    await
                    BankVerification0.
                    setAuthentication_attempt(relatedAuthentication_attempt0);
                }
            
                const relatedAuthentication_attempt1 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const BankVerification1 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankVerification1?.setAuthentication_attempt)
                {
                    await
                    BankVerification1.
                    setAuthentication_attempt(relatedAuthentication_attempt1);
                }
            
                const relatedAuthentication_attempt2 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const BankVerification2 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankVerification2?.setAuthentication_attempt)
                {
                    await
                    BankVerification2.
                    setAuthentication_attempt(relatedAuthentication_attempt2);
                }
            
                const relatedAuthentication_attempt3 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const BankVerification3 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankVerification3?.setAuthentication_attempt)
                {
                    await
                    BankVerification3.
                    setAuthentication_attempt(relatedAuthentication_attempt3);
                }
            
                const relatedAuthentication_attempt4 = await AuthenticationAttempts.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationAttempts.count())),
                });
                const BankVerification4 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankVerification4?.setAuthentication_attempt)
                {
                    await
                    BankVerification4.
                    setAuthentication_attempt(relatedAuthentication_attempt4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBankVerificationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BankVerification0 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankVerification0?.setOrganization)
                {
                    await
                    BankVerification0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BankVerification1 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankVerification1?.setOrganization)
                {
                    await
                    BankVerification1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BankVerification2 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankVerification2?.setOrganization)
                {
                    await
                    BankVerification2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BankVerification3 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankVerification3?.setOrganization)
                {
                    await
                    BankVerification3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const BankVerification4 = await BankVerifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankVerification4?.setOrganization)
                {
                    await
                    BankVerification4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateNotificationRecordWithContract_folder() {
            
                const relatedContract_folder0 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const NotificationRecord0 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationRecord0?.setContract_folder)
                {
                    await
                    NotificationRecord0.
                    setContract_folder(relatedContract_folder0);
                }
            
                const relatedContract_folder1 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const NotificationRecord1 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationRecord1?.setContract_folder)
                {
                    await
                    NotificationRecord1.
                    setContract_folder(relatedContract_folder1);
                }
            
                const relatedContract_folder2 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const NotificationRecord2 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationRecord2?.setContract_folder)
                {
                    await
                    NotificationRecord2.
                    setContract_folder(relatedContract_folder2);
                }
            
                const relatedContract_folder3 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const NotificationRecord3 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationRecord3?.setContract_folder)
                {
                    await
                    NotificationRecord3.
                    setContract_folder(relatedContract_folder3);
                }
            
                const relatedContract_folder4 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const NotificationRecord4 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NotificationRecord4?.setContract_folder)
                {
                    await
                    NotificationRecord4.
                    setContract_folder(relatedContract_folder4);
                }
            
        }
        
    
        
            
            async function associateNotificationRecordWithContract_participant() {
            
                const relatedContract_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const NotificationRecord0 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationRecord0?.setContract_participant)
                {
                    await
                    NotificationRecord0.
                    setContract_participant(relatedContract_participant0);
                }
            
                const relatedContract_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const NotificationRecord1 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationRecord1?.setContract_participant)
                {
                    await
                    NotificationRecord1.
                    setContract_participant(relatedContract_participant1);
                }
            
                const relatedContract_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const NotificationRecord2 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationRecord2?.setContract_participant)
                {
                    await
                    NotificationRecord2.
                    setContract_participant(relatedContract_participant2);
                }
            
                const relatedContract_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const NotificationRecord3 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationRecord3?.setContract_participant)
                {
                    await
                    NotificationRecord3.
                    setContract_participant(relatedContract_participant3);
                }
            
                const relatedContract_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const NotificationRecord4 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NotificationRecord4?.setContract_participant)
                {
                    await
                    NotificationRecord4.
                    setContract_participant(relatedContract_participant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateNotificationRecordWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecord0 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationRecord0?.setOrganization)
                {
                    await
                    NotificationRecord0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecord1 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationRecord1?.setOrganization)
                {
                    await
                    NotificationRecord1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecord2 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationRecord2?.setOrganization)
                {
                    await
                    NotificationRecord2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecord3 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationRecord3?.setOrganization)
                {
                    await
                    NotificationRecord3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecord4 = await NotificationRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NotificationRecord4?.setOrganization)
                {
                    await
                    NotificationRecord4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateNotificationRecordItemWithNotification_record() {
            
                const relatedNotification_record0 = await NotificationRecords.findOne({
                    offset: Math.floor(Math.random() * (await NotificationRecords.count())),
                });
                const NotificationRecordItem0 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationRecordItem0?.setNotification_record)
                {
                    await
                    NotificationRecordItem0.
                    setNotification_record(relatedNotification_record0);
                }
            
                const relatedNotification_record1 = await NotificationRecords.findOne({
                    offset: Math.floor(Math.random() * (await NotificationRecords.count())),
                });
                const NotificationRecordItem1 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationRecordItem1?.setNotification_record)
                {
                    await
                    NotificationRecordItem1.
                    setNotification_record(relatedNotification_record1);
                }
            
                const relatedNotification_record2 = await NotificationRecords.findOne({
                    offset: Math.floor(Math.random() * (await NotificationRecords.count())),
                });
                const NotificationRecordItem2 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationRecordItem2?.setNotification_record)
                {
                    await
                    NotificationRecordItem2.
                    setNotification_record(relatedNotification_record2);
                }
            
                const relatedNotification_record3 = await NotificationRecords.findOne({
                    offset: Math.floor(Math.random() * (await NotificationRecords.count())),
                });
                const NotificationRecordItem3 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationRecordItem3?.setNotification_record)
                {
                    await
                    NotificationRecordItem3.
                    setNotification_record(relatedNotification_record3);
                }
            
                const relatedNotification_record4 = await NotificationRecords.findOne({
                    offset: Math.floor(Math.random() * (await NotificationRecords.count())),
                });
                const NotificationRecordItem4 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NotificationRecordItem4?.setNotification_record)
                {
                    await
                    NotificationRecordItem4.
                    setNotification_record(relatedNotification_record4);
                }
            
        }
        
    
        
            
            async function associateNotificationRecordItemWithAuthentication_method() {
            
                const relatedAuthentication_method0 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const NotificationRecordItem0 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationRecordItem0?.setAuthentication_method)
                {
                    await
                    NotificationRecordItem0.
                    setAuthentication_method(relatedAuthentication_method0);
                }
            
                const relatedAuthentication_method1 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const NotificationRecordItem1 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationRecordItem1?.setAuthentication_method)
                {
                    await
                    NotificationRecordItem1.
                    setAuthentication_method(relatedAuthentication_method1);
                }
            
                const relatedAuthentication_method2 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const NotificationRecordItem2 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationRecordItem2?.setAuthentication_method)
                {
                    await
                    NotificationRecordItem2.
                    setAuthentication_method(relatedAuthentication_method2);
                }
            
                const relatedAuthentication_method3 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const NotificationRecordItem3 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationRecordItem3?.setAuthentication_method)
                {
                    await
                    NotificationRecordItem3.
                    setAuthentication_method(relatedAuthentication_method3);
                }
            
                const relatedAuthentication_method4 = await AuthenticationMethods.findOne({
                    offset: Math.floor(Math.random() * (await AuthenticationMethods.count())),
                });
                const NotificationRecordItem4 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NotificationRecordItem4?.setAuthentication_method)
                {
                    await
                    NotificationRecordItem4.
                    setAuthentication_method(relatedAuthentication_method4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateNotificationRecordItemWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecordItem0 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NotificationRecordItem0?.setOrganization)
                {
                    await
                    NotificationRecordItem0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecordItem1 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NotificationRecordItem1?.setOrganization)
                {
                    await
                    NotificationRecordItem1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecordItem2 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NotificationRecordItem2?.setOrganization)
                {
                    await
                    NotificationRecordItem2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecordItem3 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NotificationRecordItem3?.setOrganization)
                {
                    await
                    NotificationRecordItem3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const NotificationRecordItem4 = await NotificationRecordItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NotificationRecordItem4?.setOrganization)
                {
                    await
                    NotificationRecordItem4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSigningActionWithContract_folder() {
            
                const relatedContract_folder0 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SigningAction0 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SigningAction0?.setContract_folder)
                {
                    await
                    SigningAction0.
                    setContract_folder(relatedContract_folder0);
                }
            
                const relatedContract_folder1 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SigningAction1 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SigningAction1?.setContract_folder)
                {
                    await
                    SigningAction1.
                    setContract_folder(relatedContract_folder1);
                }
            
                const relatedContract_folder2 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SigningAction2 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SigningAction2?.setContract_folder)
                {
                    await
                    SigningAction2.
                    setContract_folder(relatedContract_folder2);
                }
            
                const relatedContract_folder3 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SigningAction3 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SigningAction3?.setContract_folder)
                {
                    await
                    SigningAction3.
                    setContract_folder(relatedContract_folder3);
                }
            
                const relatedContract_folder4 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SigningAction4 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SigningAction4?.setContract_folder)
                {
                    await
                    SigningAction4.
                    setContract_folder(relatedContract_folder4);
                }
            
        }
        
    
        
            
            async function associateSigningActionWithContract_participant() {
            
                const relatedContract_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const SigningAction0 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SigningAction0?.setContract_participant)
                {
                    await
                    SigningAction0.
                    setContract_participant(relatedContract_participant0);
                }
            
                const relatedContract_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const SigningAction1 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SigningAction1?.setContract_participant)
                {
                    await
                    SigningAction1.
                    setContract_participant(relatedContract_participant1);
                }
            
                const relatedContract_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const SigningAction2 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SigningAction2?.setContract_participant)
                {
                    await
                    SigningAction2.
                    setContract_participant(relatedContract_participant2);
                }
            
                const relatedContract_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const SigningAction3 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SigningAction3?.setContract_participant)
                {
                    await
                    SigningAction3.
                    setContract_participant(relatedContract_participant3);
                }
            
                const relatedContract_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const SigningAction4 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SigningAction4?.setContract_participant)
                {
                    await
                    SigningAction4.
                    setContract_participant(relatedContract_participant4);
                }
            
        }
        
    
        
            
            async function associateSigningActionWithContract_document() {
            
                const relatedContract_document0 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const SigningAction0 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SigningAction0?.setContract_document)
                {
                    await
                    SigningAction0.
                    setContract_document(relatedContract_document0);
                }
            
                const relatedContract_document1 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const SigningAction1 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SigningAction1?.setContract_document)
                {
                    await
                    SigningAction1.
                    setContract_document(relatedContract_document1);
                }
            
                const relatedContract_document2 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const SigningAction2 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SigningAction2?.setContract_document)
                {
                    await
                    SigningAction2.
                    setContract_document(relatedContract_document2);
                }
            
                const relatedContract_document3 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const SigningAction3 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SigningAction3?.setContract_document)
                {
                    await
                    SigningAction3.
                    setContract_document(relatedContract_document3);
                }
            
                const relatedContract_document4 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const SigningAction4 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SigningAction4?.setContract_document)
                {
                    await
                    SigningAction4.
                    setContract_document(relatedContract_document4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSigningActionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SigningAction0 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SigningAction0?.setOrganization)
                {
                    await
                    SigningAction0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SigningAction1 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SigningAction1?.setOrganization)
                {
                    await
                    SigningAction1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SigningAction2 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SigningAction2?.setOrganization)
                {
                    await
                    SigningAction2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SigningAction3 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SigningAction3?.setOrganization)
                {
                    await
                    SigningAction3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SigningAction4 = await SigningActions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SigningAction4?.setOrganization)
                {
                    await
                    SigningAction4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentRevisionWithContract_document() {
            
                const relatedContract_document0 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const DocumentRevision0 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentRevision0?.setContract_document)
                {
                    await
                    DocumentRevision0.
                    setContract_document(relatedContract_document0);
                }
            
                const relatedContract_document1 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const DocumentRevision1 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentRevision1?.setContract_document)
                {
                    await
                    DocumentRevision1.
                    setContract_document(relatedContract_document1);
                }
            
                const relatedContract_document2 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const DocumentRevision2 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentRevision2?.setContract_document)
                {
                    await
                    DocumentRevision2.
                    setContract_document(relatedContract_document2);
                }
            
                const relatedContract_document3 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const DocumentRevision3 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentRevision3?.setContract_document)
                {
                    await
                    DocumentRevision3.
                    setContract_document(relatedContract_document3);
                }
            
                const relatedContract_document4 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const DocumentRevision4 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentRevision4?.setContract_document)
                {
                    await
                    DocumentRevision4.
                    setContract_document(relatedContract_document4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateDocumentRevisionWithProposed_by_participant() {
            
                const relatedProposed_by_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const DocumentRevision0 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentRevision0?.setProposed_by_participant)
                {
                    await
                    DocumentRevision0.
                    setProposed_by_participant(relatedProposed_by_participant0);
                }
            
                const relatedProposed_by_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const DocumentRevision1 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentRevision1?.setProposed_by_participant)
                {
                    await
                    DocumentRevision1.
                    setProposed_by_participant(relatedProposed_by_participant1);
                }
            
                const relatedProposed_by_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const DocumentRevision2 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentRevision2?.setProposed_by_participant)
                {
                    await
                    DocumentRevision2.
                    setProposed_by_participant(relatedProposed_by_participant2);
                }
            
                const relatedProposed_by_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const DocumentRevision3 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentRevision3?.setProposed_by_participant)
                {
                    await
                    DocumentRevision3.
                    setProposed_by_participant(relatedProposed_by_participant3);
                }
            
                const relatedProposed_by_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const DocumentRevision4 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentRevision4?.setProposed_by_participant)
                {
                    await
                    DocumentRevision4.
                    setProposed_by_participant(relatedProposed_by_participant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentRevisionWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentRevision0 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentRevision0?.setOrganization)
                {
                    await
                    DocumentRevision0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentRevision1 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentRevision1?.setOrganization)
                {
                    await
                    DocumentRevision1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentRevision2 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentRevision2?.setOrganization)
                {
                    await
                    DocumentRevision2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentRevision3 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentRevision3?.setOrganization)
                {
                    await
                    DocumentRevision3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DocumentRevision4 = await DocumentRevisions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentRevision4?.setOrganization)
                {
                    await
                    DocumentRevision4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRevisionApprovalWithDocument_revision() {
            
                const relatedDocument_revision0 = await DocumentRevisions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentRevisions.count())),
                });
                const RevisionApproval0 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RevisionApproval0?.setDocument_revision)
                {
                    await
                    RevisionApproval0.
                    setDocument_revision(relatedDocument_revision0);
                }
            
                const relatedDocument_revision1 = await DocumentRevisions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentRevisions.count())),
                });
                const RevisionApproval1 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RevisionApproval1?.setDocument_revision)
                {
                    await
                    RevisionApproval1.
                    setDocument_revision(relatedDocument_revision1);
                }
            
                const relatedDocument_revision2 = await DocumentRevisions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentRevisions.count())),
                });
                const RevisionApproval2 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RevisionApproval2?.setDocument_revision)
                {
                    await
                    RevisionApproval2.
                    setDocument_revision(relatedDocument_revision2);
                }
            
                const relatedDocument_revision3 = await DocumentRevisions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentRevisions.count())),
                });
                const RevisionApproval3 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RevisionApproval3?.setDocument_revision)
                {
                    await
                    RevisionApproval3.
                    setDocument_revision(relatedDocument_revision3);
                }
            
                const relatedDocument_revision4 = await DocumentRevisions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentRevisions.count())),
                });
                const RevisionApproval4 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RevisionApproval4?.setDocument_revision)
                {
                    await
                    RevisionApproval4.
                    setDocument_revision(relatedDocument_revision4);
                }
            
        }
        
    
        
            
            async function associateRevisionApprovalWithContract_participant() {
            
                const relatedContract_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevisionApproval0 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RevisionApproval0?.setContract_participant)
                {
                    await
                    RevisionApproval0.
                    setContract_participant(relatedContract_participant0);
                }
            
                const relatedContract_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevisionApproval1 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RevisionApproval1?.setContract_participant)
                {
                    await
                    RevisionApproval1.
                    setContract_participant(relatedContract_participant1);
                }
            
                const relatedContract_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevisionApproval2 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RevisionApproval2?.setContract_participant)
                {
                    await
                    RevisionApproval2.
                    setContract_participant(relatedContract_participant2);
                }
            
                const relatedContract_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevisionApproval3 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RevisionApproval3?.setContract_participant)
                {
                    await
                    RevisionApproval3.
                    setContract_participant(relatedContract_participant3);
                }
            
                const relatedContract_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevisionApproval4 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RevisionApproval4?.setContract_participant)
                {
                    await
                    RevisionApproval4.
                    setContract_participant(relatedContract_participant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateRevisionApprovalWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevisionApproval0 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RevisionApproval0?.setOrganization)
                {
                    await
                    RevisionApproval0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevisionApproval1 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RevisionApproval1?.setOrganization)
                {
                    await
                    RevisionApproval1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevisionApproval2 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RevisionApproval2?.setOrganization)
                {
                    await
                    RevisionApproval2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevisionApproval3 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RevisionApproval3?.setOrganization)
                {
                    await
                    RevisionApproval3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevisionApproval4 = await RevisionApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RevisionApproval4?.setOrganization)
                {
                    await
                    RevisionApproval4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateRevocationRequestWithSigning_action() {
            
                const relatedSigning_action0 = await SigningActions.findOne({
                    offset: Math.floor(Math.random() * (await SigningActions.count())),
                });
                const RevocationRequest0 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RevocationRequest0?.setSigning_action)
                {
                    await
                    RevocationRequest0.
                    setSigning_action(relatedSigning_action0);
                }
            
                const relatedSigning_action1 = await SigningActions.findOne({
                    offset: Math.floor(Math.random() * (await SigningActions.count())),
                });
                const RevocationRequest1 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RevocationRequest1?.setSigning_action)
                {
                    await
                    RevocationRequest1.
                    setSigning_action(relatedSigning_action1);
                }
            
                const relatedSigning_action2 = await SigningActions.findOne({
                    offset: Math.floor(Math.random() * (await SigningActions.count())),
                });
                const RevocationRequest2 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RevocationRequest2?.setSigning_action)
                {
                    await
                    RevocationRequest2.
                    setSigning_action(relatedSigning_action2);
                }
            
                const relatedSigning_action3 = await SigningActions.findOne({
                    offset: Math.floor(Math.random() * (await SigningActions.count())),
                });
                const RevocationRequest3 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RevocationRequest3?.setSigning_action)
                {
                    await
                    RevocationRequest3.
                    setSigning_action(relatedSigning_action3);
                }
            
                const relatedSigning_action4 = await SigningActions.findOne({
                    offset: Math.floor(Math.random() * (await SigningActions.count())),
                });
                const RevocationRequest4 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RevocationRequest4?.setSigning_action)
                {
                    await
                    RevocationRequest4.
                    setSigning_action(relatedSigning_action4);
                }
            
        }
        
    
        
            
            async function associateRevocationRequestWithRequested_by_participant() {
            
                const relatedRequested_by_participant0 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevocationRequest0 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RevocationRequest0?.setRequested_by_participant)
                {
                    await
                    RevocationRequest0.
                    setRequested_by_participant(relatedRequested_by_participant0);
                }
            
                const relatedRequested_by_participant1 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevocationRequest1 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RevocationRequest1?.setRequested_by_participant)
                {
                    await
                    RevocationRequest1.
                    setRequested_by_participant(relatedRequested_by_participant1);
                }
            
                const relatedRequested_by_participant2 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevocationRequest2 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RevocationRequest2?.setRequested_by_participant)
                {
                    await
                    RevocationRequest2.
                    setRequested_by_participant(relatedRequested_by_participant2);
                }
            
                const relatedRequested_by_participant3 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevocationRequest3 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RevocationRequest3?.setRequested_by_participant)
                {
                    await
                    RevocationRequest3.
                    setRequested_by_participant(relatedRequested_by_participant3);
                }
            
                const relatedRequested_by_participant4 = await ContractParticipants.findOne({
                    offset: Math.floor(Math.random() * (await ContractParticipants.count())),
                });
                const RevocationRequest4 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RevocationRequest4?.setRequested_by_participant)
                {
                    await
                    RevocationRequest4.
                    setRequested_by_participant(relatedRequested_by_participant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateRevocationRequestWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevocationRequest0 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RevocationRequest0?.setOrganization)
                {
                    await
                    RevocationRequest0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevocationRequest1 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RevocationRequest1?.setOrganization)
                {
                    await
                    RevocationRequest1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevocationRequest2 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RevocationRequest2?.setOrganization)
                {
                    await
                    RevocationRequest2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevocationRequest3 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RevocationRequest3?.setOrganization)
                {
                    await
                    RevocationRequest3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const RevocationRequest4 = await RevocationRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RevocationRequest4?.setOrganization)
                {
                    await
                    RevocationRequest4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSupportTicketWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const SupportTicket0 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicket0?.setTenant)
                {
                    await
                    SupportTicket0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const SupportTicket1 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicket1?.setTenant)
                {
                    await
                    SupportTicket1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const SupportTicket2 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicket2?.setTenant)
                {
                    await
                    SupportTicket2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const SupportTicket3 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicket3?.setTenant)
                {
                    await
                    SupportTicket3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const SupportTicket4 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicket4?.setTenant)
                {
                    await
                    SupportTicket4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
            
            async function associateSupportTicketWithRequester_user() {
            
                const relatedRequester_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket0 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicket0?.setRequester_user)
                {
                    await
                    SupportTicket0.
                    setRequester_user(relatedRequester_user0);
                }
            
                const relatedRequester_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket1 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicket1?.setRequester_user)
                {
                    await
                    SupportTicket1.
                    setRequester_user(relatedRequester_user1);
                }
            
                const relatedRequester_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket2 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicket2?.setRequester_user)
                {
                    await
                    SupportTicket2.
                    setRequester_user(relatedRequester_user2);
                }
            
                const relatedRequester_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket3 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicket3?.setRequester_user)
                {
                    await
                    SupportTicket3.
                    setRequester_user(relatedRequester_user3);
                }
            
                const relatedRequester_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket4 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicket4?.setRequester_user)
                {
                    await
                    SupportTicket4.
                    setRequester_user(relatedRequester_user4);
                }
            
        }
        
    
        
            
            async function associateSupportTicketWithContract_folder() {
            
                const relatedContract_folder0 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SupportTicket0 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicket0?.setContract_folder)
                {
                    await
                    SupportTicket0.
                    setContract_folder(relatedContract_folder0);
                }
            
                const relatedContract_folder1 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SupportTicket1 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicket1?.setContract_folder)
                {
                    await
                    SupportTicket1.
                    setContract_folder(relatedContract_folder1);
                }
            
                const relatedContract_folder2 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SupportTicket2 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicket2?.setContract_folder)
                {
                    await
                    SupportTicket2.
                    setContract_folder(relatedContract_folder2);
                }
            
                const relatedContract_folder3 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SupportTicket3 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicket3?.setContract_folder)
                {
                    await
                    SupportTicket3.
                    setContract_folder(relatedContract_folder3);
                }
            
                const relatedContract_folder4 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const SupportTicket4 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicket4?.setContract_folder)
                {
                    await
                    SupportTicket4.
                    setContract_folder(relatedContract_folder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSupportTicketWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicket0 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicket0?.setOrganization)
                {
                    await
                    SupportTicket0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicket1 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicket1?.setOrganization)
                {
                    await
                    SupportTicket1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicket2 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicket2?.setOrganization)
                {
                    await
                    SupportTicket2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicket3 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicket3?.setOrganization)
                {
                    await
                    SupportTicket3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicket4 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicket4?.setOrganization)
                {
                    await
                    SupportTicket4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateSupportTicketMessageWithSupport_ticket() {
            
                const relatedSupport_ticket0 = await SupportTickets.findOne({
                    offset: Math.floor(Math.random() * (await SupportTickets.count())),
                });
                const SupportTicketMessage0 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicketMessage0?.setSupport_ticket)
                {
                    await
                    SupportTicketMessage0.
                    setSupport_ticket(relatedSupport_ticket0);
                }
            
                const relatedSupport_ticket1 = await SupportTickets.findOne({
                    offset: Math.floor(Math.random() * (await SupportTickets.count())),
                });
                const SupportTicketMessage1 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicketMessage1?.setSupport_ticket)
                {
                    await
                    SupportTicketMessage1.
                    setSupport_ticket(relatedSupport_ticket1);
                }
            
                const relatedSupport_ticket2 = await SupportTickets.findOne({
                    offset: Math.floor(Math.random() * (await SupportTickets.count())),
                });
                const SupportTicketMessage2 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicketMessage2?.setSupport_ticket)
                {
                    await
                    SupportTicketMessage2.
                    setSupport_ticket(relatedSupport_ticket2);
                }
            
                const relatedSupport_ticket3 = await SupportTickets.findOne({
                    offset: Math.floor(Math.random() * (await SupportTickets.count())),
                });
                const SupportTicketMessage3 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicketMessage3?.setSupport_ticket)
                {
                    await
                    SupportTicketMessage3.
                    setSupport_ticket(relatedSupport_ticket3);
                }
            
                const relatedSupport_ticket4 = await SupportTickets.findOne({
                    offset: Math.floor(Math.random() * (await SupportTickets.count())),
                });
                const SupportTicketMessage4 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicketMessage4?.setSupport_ticket)
                {
                    await
                    SupportTicketMessage4.
                    setSupport_ticket(relatedSupport_ticket4);
                }
            
        }
        
    
        
            
            async function associateSupportTicketMessageWithAuthor_user() {
            
                const relatedAuthor_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicketMessage0 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicketMessage0?.setAuthor_user)
                {
                    await
                    SupportTicketMessage0.
                    setAuthor_user(relatedAuthor_user0);
                }
            
                const relatedAuthor_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicketMessage1 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicketMessage1?.setAuthor_user)
                {
                    await
                    SupportTicketMessage1.
                    setAuthor_user(relatedAuthor_user1);
                }
            
                const relatedAuthor_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicketMessage2 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicketMessage2?.setAuthor_user)
                {
                    await
                    SupportTicketMessage2.
                    setAuthor_user(relatedAuthor_user2);
                }
            
                const relatedAuthor_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicketMessage3 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicketMessage3?.setAuthor_user)
                {
                    await
                    SupportTicketMessage3.
                    setAuthor_user(relatedAuthor_user3);
                }
            
                const relatedAuthor_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicketMessage4 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicketMessage4?.setAuthor_user)
                {
                    await
                    SupportTicketMessage4.
                    setAuthor_user(relatedAuthor_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateSupportTicketMessageWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicketMessage0 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicketMessage0?.setOrganization)
                {
                    await
                    SupportTicketMessage0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicketMessage1 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicketMessage1?.setOrganization)
                {
                    await
                    SupportTicketMessage1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicketMessage2 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicketMessage2?.setOrganization)
                {
                    await
                    SupportTicketMessage2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicketMessage3 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicketMessage3?.setOrganization)
                {
                    await
                    SupportTicketMessage3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const SupportTicketMessage4 = await SupportTicketMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicketMessage4?.setOrganization)
                {
                    await
                    SupportTicketMessage4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAiContractClassificationWithContract_document() {
            
                const relatedContract_document0 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const AiContractClassification0 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiContractClassification0?.setContract_document)
                {
                    await
                    AiContractClassification0.
                    setContract_document(relatedContract_document0);
                }
            
                const relatedContract_document1 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const AiContractClassification1 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiContractClassification1?.setContract_document)
                {
                    await
                    AiContractClassification1.
                    setContract_document(relatedContract_document1);
                }
            
                const relatedContract_document2 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const AiContractClassification2 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiContractClassification2?.setContract_document)
                {
                    await
                    AiContractClassification2.
                    setContract_document(relatedContract_document2);
                }
            
                const relatedContract_document3 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const AiContractClassification3 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiContractClassification3?.setContract_document)
                {
                    await
                    AiContractClassification3.
                    setContract_document(relatedContract_document3);
                }
            
                const relatedContract_document4 = await ContractDocuments.findOne({
                    offset: Math.floor(Math.random() * (await ContractDocuments.count())),
                });
                const AiContractClassification4 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AiContractClassification4?.setContract_document)
                {
                    await
                    AiContractClassification4.
                    setContract_document(relatedContract_document4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAiContractClassificationWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContractClassification0 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiContractClassification0?.setOrganization)
                {
                    await
                    AiContractClassification0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContractClassification1 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiContractClassification1?.setOrganization)
                {
                    await
                    AiContractClassification1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContractClassification2 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiContractClassification2?.setOrganization)
                {
                    await
                    AiContractClassification2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContractClassification3 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiContractClassification3?.setOrganization)
                {
                    await
                    AiContractClassification3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AiContractClassification4 = await AiContractClassifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AiContractClassification4?.setOrganization)
                {
                    await
                    AiContractClassification4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDisallowedContractRuleWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DisallowedContractRule0 = await DisallowedContractRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DisallowedContractRule0?.setOrganization)
                {
                    await
                    DisallowedContractRule0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DisallowedContractRule1 = await DisallowedContractRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DisallowedContractRule1?.setOrganization)
                {
                    await
                    DisallowedContractRule1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DisallowedContractRule2 = await DisallowedContractRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DisallowedContractRule2?.setOrganization)
                {
                    await
                    DisallowedContractRule2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DisallowedContractRule3 = await DisallowedContractRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DisallowedContractRule3?.setOrganization)
                {
                    await
                    DisallowedContractRule3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const DisallowedContractRule4 = await DisallowedContractRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DisallowedContractRule4?.setOrganization)
                {
                    await
                    DisallowedContractRule4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateServiceSuitabilityRuleWithDocument_type() {
            
                const relatedDocument_type0 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const ServiceSuitabilityRule0 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ServiceSuitabilityRule0?.setDocument_type)
                {
                    await
                    ServiceSuitabilityRule0.
                    setDocument_type(relatedDocument_type0);
                }
            
                const relatedDocument_type1 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const ServiceSuitabilityRule1 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ServiceSuitabilityRule1?.setDocument_type)
                {
                    await
                    ServiceSuitabilityRule1.
                    setDocument_type(relatedDocument_type1);
                }
            
                const relatedDocument_type2 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const ServiceSuitabilityRule2 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ServiceSuitabilityRule2?.setDocument_type)
                {
                    await
                    ServiceSuitabilityRule2.
                    setDocument_type(relatedDocument_type2);
                }
            
                const relatedDocument_type3 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const ServiceSuitabilityRule3 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ServiceSuitabilityRule3?.setDocument_type)
                {
                    await
                    ServiceSuitabilityRule3.
                    setDocument_type(relatedDocument_type3);
                }
            
                const relatedDocument_type4 = await DocumentTypes.findOne({
                    offset: Math.floor(Math.random() * (await DocumentTypes.count())),
                });
                const ServiceSuitabilityRule4 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ServiceSuitabilityRule4?.setDocument_type)
                {
                    await
                    ServiceSuitabilityRule4.
                    setDocument_type(relatedDocument_type4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateServiceSuitabilityRuleWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceSuitabilityRule0 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ServiceSuitabilityRule0?.setOrganization)
                {
                    await
                    ServiceSuitabilityRule0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceSuitabilityRule1 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ServiceSuitabilityRule1?.setOrganization)
                {
                    await
                    ServiceSuitabilityRule1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceSuitabilityRule2 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ServiceSuitabilityRule2?.setOrganization)
                {
                    await
                    ServiceSuitabilityRule2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceSuitabilityRule3 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ServiceSuitabilityRule3?.setOrganization)
                {
                    await
                    ServiceSuitabilityRule3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const ServiceSuitabilityRule4 = await ServiceSuitabilityRules.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ServiceSuitabilityRule4?.setOrganization)
                {
                    await
                    ServiceSuitabilityRule4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAuditEventWithTenant() {
            
                const relatedTenant0 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setTenant)
                {
                    await
                    AuditEvent0.
                    setTenant(relatedTenant0);
                }
            
                const relatedTenant1 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setTenant)
                {
                    await
                    AuditEvent1.
                    setTenant(relatedTenant1);
                }
            
                const relatedTenant2 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setTenant)
                {
                    await
                    AuditEvent2.
                    setTenant(relatedTenant2);
                }
            
                const relatedTenant3 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setTenant)
                {
                    await
                    AuditEvent3.
                    setTenant(relatedTenant3);
                }
            
                const relatedTenant4 = await Tenants.findOne({
                    offset: Math.floor(Math.random() * (await Tenants.count())),
                });
                const AuditEvent4 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditEvent4?.setTenant)
                {
                    await
                    AuditEvent4.
                    setTenant(relatedTenant4);
                }
            
        }
        
    
        
            
            async function associateAuditEventWithActor_user() {
            
                const relatedActor_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setActor_user)
                {
                    await
                    AuditEvent0.
                    setActor_user(relatedActor_user0);
                }
            
                const relatedActor_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setActor_user)
                {
                    await
                    AuditEvent1.
                    setActor_user(relatedActor_user1);
                }
            
                const relatedActor_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setActor_user)
                {
                    await
                    AuditEvent2.
                    setActor_user(relatedActor_user2);
                }
            
                const relatedActor_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setActor_user)
                {
                    await
                    AuditEvent3.
                    setActor_user(relatedActor_user3);
                }
            
                const relatedActor_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditEvent4 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditEvent4?.setActor_user)
                {
                    await
                    AuditEvent4.
                    setActor_user(relatedActor_user4);
                }
            
        }
        
    
        
            
            async function associateAuditEventWithContract_folder() {
            
                const relatedContract_folder0 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setContract_folder)
                {
                    await
                    AuditEvent0.
                    setContract_folder(relatedContract_folder0);
                }
            
                const relatedContract_folder1 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setContract_folder)
                {
                    await
                    AuditEvent1.
                    setContract_folder(relatedContract_folder1);
                }
            
                const relatedContract_folder2 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setContract_folder)
                {
                    await
                    AuditEvent2.
                    setContract_folder(relatedContract_folder2);
                }
            
                const relatedContract_folder3 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setContract_folder)
                {
                    await
                    AuditEvent3.
                    setContract_folder(relatedContract_folder3);
                }
            
                const relatedContract_folder4 = await ContractFolders.findOne({
                    offset: Math.floor(Math.random() * (await ContractFolders.count())),
                });
                const AuditEvent4 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditEvent4?.setContract_folder)
                {
                    await
                    AuditEvent4.
                    setContract_folder(relatedContract_folder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateAuditEventWithOrganization() {
            
                const relatedOrganization0 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent0 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditEvent0?.setOrganization)
                {
                    await
                    AuditEvent0.
                    setOrganization(relatedOrganization0);
                }
            
                const relatedOrganization1 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent1 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditEvent1?.setOrganization)
                {
                    await
                    AuditEvent1.
                    setOrganization(relatedOrganization1);
                }
            
                const relatedOrganization2 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent2 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditEvent2?.setOrganization)
                {
                    await
                    AuditEvent2.
                    setOrganization(relatedOrganization2);
                }
            
                const relatedOrganization3 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent3 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditEvent3?.setOrganization)
                {
                    await
                    AuditEvent3.
                    setOrganization(relatedOrganization3);
                }
            
                const relatedOrganization4 = await Organizations.findOne({
                    offset: Math.floor(Math.random() * (await Organizations.count())),
                });
                const AuditEvent4 = await AuditEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AuditEvent4?.setOrganization)
                {
                    await
                    AuditEvent4.
                    setOrganization(relatedOrganization4);
                }
            
        }
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Organizations.bulkCreate(OrganizationsData);
                
            
            
                
                await Tenants.bulkCreate(TenantsData);
                
            
            
                
                await TenantMemberships.bulkCreate(TenantMembershipsData);
                
            
            
                
                await ServiceTypes.bulkCreate(ServiceTypesData);
                
            
            
                
                await AuthenticationMethods.bulkCreate(AuthenticationMethodsData);
                
            
            
                
                await ServiceAuthPolicies.bulkCreate(ServiceAuthPoliciesData);
                
            
            
                
                await DocumentCategories.bulkCreate(DocumentCategoriesData);
                
            
            
                
                await DocumentTypes.bulkCreate(DocumentTypesData);
                
            
            
                
                await DocumentTemplateVariables.bulkCreate(DocumentTemplateVariablesData);
                
            
            
                
                await DocumentTemplates.bulkCreate(DocumentTemplatesData);
                
            
            
                
                await WorkflowDefinitions.bulkCreate(WorkflowDefinitionsData);
                
            
            
                
                await WorkflowSteps.bulkCreate(WorkflowStepsData);
                
            
            
                
                await PriceLists.bulkCreate(PriceListsData);
                
            
            
                
                await PriceRules.bulkCreate(PriceRulesData);
                
            
            
                
                await Locations.bulkCreate(LocationsData);
                
            
            
                
                await ContractFolders.bulkCreate(ContractFoldersData);
                
            
            
                
                await ContractDocuments.bulkCreate(ContractDocumentsData);
                
            
            
                
                await ContractDataFields.bulkCreate(ContractDataFieldsData);
                
            
            
                
                await ContractParticipants.bulkCreate(ContractParticipantsData);
                
            
            
                
                await ParticipantInvitations.bulkCreate(ParticipantInvitationsData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await PaymentShares.bulkCreate(PaymentSharesData);
                
            
            
                
                await AuthenticationSessions.bulkCreate(AuthenticationSessionsData);
                
            
            
                
                await AuthenticationAttempts.bulkCreate(AuthenticationAttemptsData);
                
            
            
                
                await IdVerificationArtifacts.bulkCreate(IdVerificationArtifactsData);
                
            
            
                
                await BankVerifications.bulkCreate(BankVerificationsData);
                
            
            
                
                await NotificationRecords.bulkCreate(NotificationRecordsData);
                
            
            
                
                await NotificationRecordItems.bulkCreate(NotificationRecordItemsData);
                
            
            
                
                await SigningActions.bulkCreate(SigningActionsData);
                
            
            
                
                await DocumentRevisions.bulkCreate(DocumentRevisionsData);
                
            
            
                
                await RevisionApprovals.bulkCreate(RevisionApprovalsData);
                
            
            
                
                await RevocationRequests.bulkCreate(RevocationRequestsData);
                
            
            
                
                await SupportTickets.bulkCreate(SupportTicketsData);
                
            
            
                
                await SupportTicketMessages.bulkCreate(SupportTicketMessagesData);
                
            
            
                
                await AiContractClassifications.bulkCreate(AiContractClassificationsData);
                
            
            
                
                await DisallowedContractRules.bulkCreate(DisallowedContractRulesData);
                
            
            
                
                await ServiceSuitabilityRules.bulkCreate(ServiceSuitabilityRulesData);
                
            
            
                
                await AuditEvents.bulkCreate(AuditEventsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateUserWithOrganization(),
                    
                
            
                
                
                
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateTenantWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateTenantMembershipWithTenant(),
                    
                
                    
                        
                        await associateTenantMembershipWithUser(),
                    
                
                    
                
                    
                
                    
                        
                        await associateTenantMembershipWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateServiceTypeWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuthenticationMethodWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateServiceAuthPolicyWithService_type(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        
                        await associateServiceAuthPolicyWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentCategoryWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDocumentTypeWithCategory(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentTypeWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDocumentTemplateVariableWithDocument_type(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentTemplateVariableWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDocumentTemplateWithDocument_type(),
                    
                
                    
                        
                        await associateDocumentTemplateWithTenant(),
                    
                
                    
                        
                        await associateDocumentTemplateWithOwner_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentTemplateWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWorkflowDefinitionWithService_type(),
                    
                
                    
                        
                        await associateWorkflowDefinitionWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWorkflowDefinitionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateWorkflowStepWithWorkflow_definition(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWorkflowStepWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePriceListWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePriceListWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePriceRuleWithPrice_list(),
                    
                
                    
                        
                        await associatePriceRuleWithService_type(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePriceRuleWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateLocationWithTenant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLocationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContractFolderWithTenant(),
                    
                
                    
                        
                        await associateContractFolderWithCreated_by_user(),
                    
                
                    
                        
                        await associateContractFolderWithService_type(),
                    
                
                    
                        
                        await associateContractFolderWithWorkflow_definition(),
                    
                
                    
                        
                        await associateContractFolderWithDocument_template(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContractFolderWithLocation(),
                    
                
                    
                        
                        await associateContractFolderWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContractDocumentWithContract_folder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContractDocumentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContractDataFieldWithContract_document(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContractDataFieldWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateContractParticipantWithContract_folder(),
                    
                
                    
                        
                        await associateContractParticipantWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContractParticipantWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateParticipantInvitationWithContract_participant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateParticipantInvitationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePaymentWithContract_folder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associatePaymentShareWithPayment(),
                    
                
                    
                        
                        await associatePaymentShareWithContract_participant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentShareWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAuthenticationSessionWithContract_participant(),
                    
                
                    
                        
                        await associateAuthenticationSessionWithService_auth_policy(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuthenticationSessionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAuthenticationAttemptWithAuthentication_session(),
                    
                
                    
                        
                        await associateAuthenticationAttemptWithAuthentication_method(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuthenticationAttemptWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateIdVerificationArtifactWithAuthentication_attempt(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateIdVerificationArtifactWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateBankVerificationWithAuthentication_attempt(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBankVerificationWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateNotificationRecordWithContract_folder(),
                    
                
                    
                        
                        await associateNotificationRecordWithContract_participant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNotificationRecordWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateNotificationRecordItemWithNotification_record(),
                    
                
                    
                        
                        await associateNotificationRecordItemWithAuthentication_method(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNotificationRecordItemWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSigningActionWithContract_folder(),
                    
                
                    
                        
                        await associateSigningActionWithContract_participant(),
                    
                
                    
                        
                        await associateSigningActionWithContract_document(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSigningActionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateDocumentRevisionWithContract_document(),
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentRevisionWithProposed_by_participant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentRevisionWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRevisionApprovalWithDocument_revision(),
                    
                
                    
                        
                        await associateRevisionApprovalWithContract_participant(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRevisionApprovalWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateRevocationRequestWithSigning_action(),
                    
                
                    
                        
                        await associateRevocationRequestWithRequested_by_participant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRevocationRequestWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSupportTicketWithTenant(),
                    
                
                    
                        
                        await associateSupportTicketWithRequester_user(),
                    
                
                    
                        
                        await associateSupportTicketWithContract_folder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSupportTicketWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateSupportTicketMessageWithSupport_ticket(),
                    
                
                    
                        
                        await associateSupportTicketMessageWithAuthor_user(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSupportTicketMessageWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAiContractClassificationWithContract_document(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAiContractClassificationWithOrganization(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDisallowedContractRuleWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateServiceSuitabilityRuleWithDocument_type(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateServiceSuitabilityRuleWithOrganization(),
                    
                
            
                
                
                    
                        
                        await associateAuditEventWithTenant(),
                    
                
                    
                        
                        await associateAuditEventWithActor_user(),
                    
                
                    
                        
                        await associateAuditEventWithContract_folder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateAuditEventWithOrganization(),
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('organizations', null, {});
            
            
            await queryInterface.bulkDelete('tenants', null, {});
            
            
            await queryInterface.bulkDelete('tenant_memberships', null, {});
            
            
            await queryInterface.bulkDelete('service_types', null, {});
            
            
            await queryInterface.bulkDelete('authentication_methods', null, {});
            
            
            await queryInterface.bulkDelete('service_auth_policies', null, {});
            
            
            await queryInterface.bulkDelete('document_categories', null, {});
            
            
            await queryInterface.bulkDelete('document_types', null, {});
            
            
            await queryInterface.bulkDelete('document_template_variables', null, {});
            
            
            await queryInterface.bulkDelete('document_templates', null, {});
            
            
            await queryInterface.bulkDelete('workflow_definitions', null, {});
            
            
            await queryInterface.bulkDelete('workflow_steps', null, {});
            
            
            await queryInterface.bulkDelete('price_lists', null, {});
            
            
            await queryInterface.bulkDelete('price_rules', null, {});
            
            
            await queryInterface.bulkDelete('locations', null, {});
            
            
            await queryInterface.bulkDelete('contract_folders', null, {});
            
            
            await queryInterface.bulkDelete('contract_documents', null, {});
            
            
            await queryInterface.bulkDelete('contract_data_fields', null, {});
            
            
            await queryInterface.bulkDelete('contract_participants', null, {});
            
            
            await queryInterface.bulkDelete('participant_invitations', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('payment_shares', null, {});
            
            
            await queryInterface.bulkDelete('authentication_sessions', null, {});
            
            
            await queryInterface.bulkDelete('authentication_attempts', null, {});
            
            
            await queryInterface.bulkDelete('id_verification_artifacts', null, {});
            
            
            await queryInterface.bulkDelete('bank_verifications', null, {});
            
            
            await queryInterface.bulkDelete('notification_records', null, {});
            
            
            await queryInterface.bulkDelete('notification_record_items', null, {});
            
            
            await queryInterface.bulkDelete('signing_actions', null, {});
            
            
            await queryInterface.bulkDelete('document_revisions', null, {});
            
            
            await queryInterface.bulkDelete('revision_approvals', null, {});
            
            
            await queryInterface.bulkDelete('revocation_requests', null, {});
            
            
            await queryInterface.bulkDelete('support_tickets', null, {});
            
            
            await queryInterface.bulkDelete('support_ticket_messages', null, {});
            
            
            await queryInterface.bulkDelete('ai_contract_classifications', null, {});
            
            
            await queryInterface.bulkDelete('disallowed_contract_rules', null, {});
            
            
            await queryInterface.bulkDelete('service_suitability_rules', null, {});
            
            
            await queryInterface.bulkDelete('audit_events', null, {});
            
        
    },
};