





















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






const Businesses = db.businesses;

const Branches = db.branches;

const FiscalYears = db.fiscal_years;

const UserRoleAssignments = db.user_role_assignments;

const AppMenus = db.app_menus;

const RolePermissions = db.role_permissions;

const AppSettings = db.app_settings;

const Currencies = db.currencies;

const CurrencyRates = db.currency_rates;

const NumberingProfiles = db.numbering_profiles;

const Widgets = db.widgets;

const LicenseCustomers = db.license_customers;

const LicenseProducts = db.license_products;

const LicenseKeys = db.license_keys;

const LicenseActivations = db.license_activations;

const Counterparties = db.counterparties;

const CostCenters = db.cost_centers;

const Projects = db.projects;

const Contracts = db.contracts;

const CashBoxes = db.cash_boxes;

const Banks = db.banks;

const BankAccounts = db.bank_accounts;

const LettersOfCredit = db.letters_of_credit;

const PosTerminals = db.pos_terminals;

const SalesItemGroups = db.sales_item_groups;

const WarehouseItemGroups = db.warehouse_item_groups;

const CustomerGroups = db.customer_groups;

const AnalyticDimensions = db.analytic_dimensions;

const Accounts = db.accounts;

const JournalVoucherTypes = db.journal_voucher_types;

const JournalVouchers = db.journal_vouchers;

const JournalLines = db.journal_lines;

const ApprovalWorkflows = db.approval_workflows;

const WorkflowSteps = db.workflow_steps;

const VoucherApprovals = db.voucher_approvals;

const YearEndOperations = db.year_end_operations;

const ReportDefinitions = db.report_definitions;

const ReportRuns = db.report_runs;

const ChatConversations = db.chat_conversations;

const ChatParticipants = db.chat_participants;

const ChatMessages = db.chat_messages;

const FormAlarms = db.form_alarms;

const DataExportJobs = db.data_export_jobs;







const BusinessesData = [
    
    {
    
        
        
            
                "legal_name": "Ada Lovelace",
            
        
    
        
        
            
                "trade_name": "Alan Turing",
            
        
    
        
        
            
                "national_id": "Marie Curie",
            
        
    
        
        
            
                "economic_code": "Marie Curie",
            
        
    
        
        
            
                "registration_number": "Alan Turing",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Alan Turing",
            
        
    
        
        
            
                "trade_name": "Grace Hopper",
            
        
    
        
        
            
                "national_id": "Grace Hopper",
            
        
    
        
        
            
                "economic_code": "Ada Lovelace",
            
        
    
        
        
            
                "registration_number": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Alan Turing",
            
        
    
        
        
            
                "trade_name": "Marie Curie",
            
        
    
        
        
            
                "national_id": "Ada Lovelace",
            
        
    
        
        
            
                "economic_code": "Ada Lovelace",
            
        
    
        
        
            
                "registration_number": "Marie Curie",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "trade_name": "Marie Curie",
            
        
    
        
        
            
                "national_id": "Grace Hopper",
            
        
    
        
        
            
                "economic_code": "Alan Turing",
            
        
    
        
        
            
                "registration_number": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "trade_name": "Ada Lovelace",
            
        
    
        
        
            
                "national_id": "Marie Curie",
            
        
    
        
        
            
                "economic_code": "Marie Curie",
            
        
    
        
        
            
                "registration_number": "Marie Curie",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



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



const FiscalYearsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_closed": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_closed": true,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_closed": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_closed": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_closed": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const UserRoleAssignmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const AppMenusData = [
    
    {
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "route": "Ada Lovelace",
            
        
    
        
        
            
                "parent_key": "Ada Lovelace",
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                "is_visible": false,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "route": "Alan Turing",
            
        
    
        
        
            
                "parent_key": "Ada Lovelace",
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "is_visible": true,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "route": "Alan Turing",
            
        
    
        
        
            
                "parent_key": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "is_visible": false,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Alan Turing",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "route": "Alan Turing",
            
        
    
        
        
            
                "parent_key": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                "is_visible": true,
            
        
    
    },
    
    {
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "route": "Ada Lovelace",
            
        
    
        
        
            
                "parent_key": "Marie Curie",
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
        
        
            
                "is_visible": false,
            
        
    
    },
    
];



const RolePermissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Marie Curie",
            
        
    
        
        
            
                "field_key": "Marie Curie",
            
        
    
        
        
            
                "action": "create",
            
        
    
        
        
            
                "is_allowed": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Grace Hopper",
            
        
    
        
        
            
                "field_key": "Ada Lovelace",
            
        
    
        
        
            
                "action": "approve",
            
        
    
        
        
            
                "is_allowed": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Marie Curie",
            
        
    
        
        
            
                "field_key": "Ada Lovelace",
            
        
    
        
        
            
                "action": "approve",
            
        
    
        
        
            
                "is_allowed": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Ada Lovelace",
            
        
    
        
        
            
                "field_key": "Ada Lovelace",
            
        
    
        
        
            
                "action": "post",
            
        
    
        
        
            
                "is_allowed": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Grace Hopper",
            
        
    
        
        
            
                "field_key": "Alan Turing",
            
        
    
        
        
            
                "action": "delete",
            
        
    
        
        
            
                "is_allowed": false,
            
        
    
    },
    
];



const AppSettingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "accounting_coding_mode": "private",
            
        
    
        
        
            
                "analytic_levels_count": 1,
            
        
    
        
        
            
                "enable_branching": true,
            
        
    
        
        
            
                "enable_multi_currency": false,
            
        
    
        
        
            
                "enable_document_workflow": true,
            
        
    
        
        
            
                "enable_network_dongle": true,
            
        
    
        
        
            
                "default_currency_code": "Ada Lovelace",
            
        
    
        
        
            
                "numbering_profile_code": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "accounting_coding_mode": "government",
            
        
    
        
        
            
                "analytic_levels_count": 4,
            
        
    
        
        
            
                "enable_branching": true,
            
        
    
        
        
            
                "enable_multi_currency": false,
            
        
    
        
        
            
                "enable_document_workflow": false,
            
        
    
        
        
            
                "enable_network_dongle": false,
            
        
    
        
        
            
                "default_currency_code": "Marie Curie",
            
        
    
        
        
            
                "numbering_profile_code": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "accounting_coding_mode": "private",
            
        
    
        
        
            
                "analytic_levels_count": 4,
            
        
    
        
        
            
                "enable_branching": true,
            
        
    
        
        
            
                "enable_multi_currency": false,
            
        
    
        
        
            
                "enable_document_workflow": false,
            
        
    
        
        
            
                "enable_network_dongle": false,
            
        
    
        
        
            
                "default_currency_code": "Ada Lovelace",
            
        
    
        
        
            
                "numbering_profile_code": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "accounting_coding_mode": "private",
            
        
    
        
        
            
                "analytic_levels_count": 5,
            
        
    
        
        
            
                "enable_branching": true,
            
        
    
        
        
            
                "enable_multi_currency": true,
            
        
    
        
        
            
                "enable_document_workflow": true,
            
        
    
        
        
            
                "enable_network_dongle": false,
            
        
    
        
        
            
                "default_currency_code": "Ada Lovelace",
            
        
    
        
        
            
                "numbering_profile_code": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "accounting_coding_mode": "private",
            
        
    
        
        
            
                "analytic_levels_count": 7,
            
        
    
        
        
            
                "enable_branching": false,
            
        
    
        
        
            
                "enable_multi_currency": true,
            
        
    
        
        
            
                "enable_document_workflow": true,
            
        
    
        
        
            
                "enable_network_dongle": true,
            
        
    
        
        
            
                "default_currency_code": "Ada Lovelace",
            
        
    
        
        
            
                "numbering_profile_code": "Grace Hopper",
            
        
    
    },
    
];



const CurrenciesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "symbol": "Grace Hopper",
            
        
    
        
        
            
                "minor_unit": 5,
            
        
    
        
        
            
                "is_base": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "symbol": "Grace Hopper",
            
        
    
        
        
            
                "minor_unit": 1,
            
        
    
        
        
            
                "is_base": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "symbol": "Grace Hopper",
            
        
    
        
        
            
                "minor_unit": 2,
            
        
    
        
        
            
                "is_base": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "symbol": "Marie Curie",
            
        
    
        
        
            
                "minor_unit": 5,
            
        
    
        
        
            
                "is_base": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "symbol": "Alan Turing",
            
        
    
        
        
            
                "minor_unit": 2,
            
        
    
        
        
            
                "is_base": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const CurrencyRatesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rate_date": new Date(Date.now()),
            
        
    
        
        
            
                "rate": 4.44,
            
        
    
        
        
            
                "source": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rate_date": new Date(Date.now()),
            
        
    
        
        
            
                "rate": 2.14,
            
        
    
        
        
            
                "source": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rate_date": new Date(Date.now()),
            
        
    
        
        
            
                "rate": 0.66,
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rate_date": new Date(Date.now()),
            
        
    
        
        
            
                "rate": 2.89,
            
        
    
        
        
            
                "source": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rate_date": new Date(Date.now()),
            
        
    
        
        
            
                "rate": 4.32,
            
        
    
        
        
            
                "source": "Marie Curie",
            
        
    
    },
    
];



const NumberingProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "prefix": "Grace Hopper",
            
        
    
        
        
            
                "next_number": 7,
            
        
    
        
        
            
                "padding": 6,
            
        
    
        
        
            
                "reset_policy": "yearly",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "prefix": "Grace Hopper",
            
        
    
        
        
            
                "next_number": 4,
            
        
    
        
        
            
                "padding": 7,
            
        
    
        
        
            
                "reset_policy": "daily",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "prefix": "Alan Turing",
            
        
    
        
        
            
                "next_number": 3,
            
        
    
        
        
            
                "padding": 8,
            
        
    
        
        
            
                "reset_policy": "yearly",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "prefix": "Marie Curie",
            
        
    
        
        
            
                "next_number": 2,
            
        
    
        
        
            
                "padding": 1,
            
        
    
        
        
            
                "reset_policy": "yearly",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "prefix": "Grace Hopper",
            
        
    
        
        
            
                "next_number": 5,
            
        
    
        
        
            
                "padding": 1,
            
        
    
        
        
            
                "reset_policy": "yearly",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const WidgetsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "placement": "reports",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "placement": "dashboard",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "placement": "dashboard",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key": "Grace Hopper",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "placement": "sidebar",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "placement": "sidebar",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
    },
    
];



const LicenseCustomersData = [
    
    {
    
        
        
            
                "customer_name": "Ada Lovelace",
            
        
    
        
        
            
                "contact_name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "mobile": "Marie Curie",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "customer_name": "Alan Turing",
            
        
    
        
        
            
                "contact_name": "Marie Curie",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "mobile": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "customer_name": "Ada Lovelace",
            
        
    
        
        
            
                "contact_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "mobile": "Marie Curie",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "customer_name": "Alan Turing",
            
        
    
        
        
            
                "contact_name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "mobile": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "customer_name": "Alan Turing",
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "mobile": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const LicenseProductsData = [
    
    {
    
        
        
            
                "product_code": "Alan Turing",
            
        
    
        
        
            
                "product_name": "Grace Hopper",
            
        
    
        
        
            
                "version": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "product_code": "Ada Lovelace",
            
        
    
        
        
            
                "product_name": "Alan Turing",
            
        
    
        
        
            
                "version": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "product_code": "Ada Lovelace",
            
        
    
        
        
            
                "product_name": "Alan Turing",
            
        
    
        
        
            
                "version": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "product_code": "Alan Turing",
            
        
    
        
        
            
                "product_name": "Alan Turing",
            
        
    
        
        
            
                "version": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "product_code": "Marie Curie",
            
        
    
        
        
            
                "product_name": "Alan Turing",
            
        
    
        
        
            
                "version": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const LicenseKeysData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_code": "Grace Hopper",
            
        
    
        
        
            
                "license_type": "network_dongle",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "hardware_fingerprint": "Ada Lovelace",
            
        
    
        
        
            
                "server_fingerprint": "Ada Lovelace",
            
        
    
        
        
            
                "db_fingerprint": "Marie Curie",
            
        
    
        
        
            
                "allowed_clients": 8,
            
        
    
        
        
            
                "allow_updates": true,
            
        
    
        
        
            
                "last_error_message": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_code": "Marie Curie",
            
        
    
        
        
            
                "license_type": "software_lock",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "hardware_fingerprint": "Grace Hopper",
            
        
    
        
        
            
                "server_fingerprint": "Marie Curie",
            
        
    
        
        
            
                "db_fingerprint": "Marie Curie",
            
        
    
        
        
            
                "allowed_clients": 9,
            
        
    
        
        
            
                "allow_updates": true,
            
        
    
        
        
            
                "last_error_message": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_code": "Marie Curie",
            
        
    
        
        
            
                "license_type": "software_lock",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "revoked",
            
        
    
        
        
            
                "hardware_fingerprint": "Marie Curie",
            
        
    
        
        
            
                "server_fingerprint": "Grace Hopper",
            
        
    
        
        
            
                "db_fingerprint": "Alan Turing",
            
        
    
        
        
            
                "allowed_clients": 3,
            
        
    
        
        
            
                "allow_updates": false,
            
        
    
        
        
            
                "last_error_message": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_code": "Grace Hopper",
            
        
    
        
        
            
                "license_type": "network_dongle",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "hardware_fingerprint": "Ada Lovelace",
            
        
    
        
        
            
                "server_fingerprint": "Alan Turing",
            
        
    
        
        
            
                "db_fingerprint": "Alan Turing",
            
        
    
        
        
            
                "allowed_clients": 6,
            
        
    
        
        
            
                "allow_updates": true,
            
        
    
        
        
            
                "last_error_message": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_code": "Grace Hopper",
            
        
    
        
        
            
                "license_type": "software_lock",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "expired",
            
        
    
        
        
            
                "hardware_fingerprint": "Alan Turing",
            
        
    
        
        
            
                "server_fingerprint": "Grace Hopper",
            
        
    
        
        
            
                "db_fingerprint": "Marie Curie",
            
        
    
        
        
            
                "allowed_clients": 5,
            
        
    
        
        
            
                "allow_updates": true,
            
        
    
        
        
            
                "last_error_message": "Alan Turing",
            
        
    
    },
    
];



const LicenseActivationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "activated_by": "Ada Lovelace",
            
        
    
        
        
            
                "client_info": "Ada Lovelace",
            
        
    
        
        
            
                "activation_token": "Grace Hopper",
            
        
    
        
        
            
                "result": "success",
            
        
    
        
        
            
                "failure_reason": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "activated_by": "Grace Hopper",
            
        
    
        
        
            
                "client_info": "Marie Curie",
            
        
    
        
        
            
                "activation_token": "Alan Turing",
            
        
    
        
        
            
                "result": "success",
            
        
    
        
        
            
                "failure_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "activated_by": "Grace Hopper",
            
        
    
        
        
            
                "client_info": "Grace Hopper",
            
        
    
        
        
            
                "activation_token": "Alan Turing",
            
        
    
        
        
            
                "result": "success",
            
        
    
        
        
            
                "failure_reason": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "activated_by": "Ada Lovelace",
            
        
    
        
        
            
                "client_info": "Grace Hopper",
            
        
    
        
        
            
                "activation_token": "Alan Turing",
            
        
    
        
        
            
                "result": "failed",
            
        
    
        
        
            
                "failure_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "activated_at": new Date(Date.now()),
            
        
    
        
        
            
                "activated_by": "Marie Curie",
            
        
    
        
        
            
                "client_info": "Grace Hopper",
            
        
    
        
        
            
                "activation_token": "Grace Hopper",
            
        
    
        
        
            
                "result": "failed",
            
        
    
        
        
            
                "failure_reason": "Grace Hopper",
            
        
    
    },
    
];



const CounterpartiesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "other",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "national_id": "Marie Curie",
            
        
    
        
        
            
                "economic_code": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "customer",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "national_id": "Alan Turing",
            
        
    
        
        
            
                "economic_code": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "other",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "national_id": "Alan Turing",
            
        
    
        
        
            
                "economic_code": "Alan Turing",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "vendor",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "national_id": "Alan Turing",
            
        
    
        
        
            
                "economic_code": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "other",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "national_id": "Alan Turing",
            
        
    
        
        
            
                "economic_code": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



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



const ProjectsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const ContractsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Ada Lovelace",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 6.6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Marie Curie",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 4.46,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Grace Hopper",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 3.94,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 9.34,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Alan Turing",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "start_date": new Date(Date.now()),
            
        
    
        
        
            
                "end_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 6.1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const CashBoxesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 3.86,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 6.2,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 7.43,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 7.96,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 5.78,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



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



const BankAccountsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "account_title": "Grace Hopper",
            
        
    
        
        
            
                "account_number": "Marie Curie",
            
        
    
        
        
            
                "iban": "Grace Hopper",
            
        
    
        
        
            
                "card_number": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 2.8,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "account_title": "Grace Hopper",
            
        
    
        
        
            
                "account_number": "Alan Turing",
            
        
    
        
        
            
                "iban": "Alan Turing",
            
        
    
        
        
            
                "card_number": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 0.3,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "account_title": "Grace Hopper",
            
        
    
        
        
            
                "account_number": "Marie Curie",
            
        
    
        
        
            
                "iban": "Grace Hopper",
            
        
    
        
        
            
                "card_number": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 1.12,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "account_title": "Alan Turing",
            
        
    
        
        
            
                "account_number": "Grace Hopper",
            
        
    
        
        
            
                "iban": "Alan Turing",
            
        
    
        
        
            
                "card_number": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 3.27,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "account_title": "Alan Turing",
            
        
    
        
        
            
                "account_number": "Marie Curie",
            
        
    
        
        
            
                "iban": "Grace Hopper",
            
        
    
        
        
            
                "card_number": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "opening_balance": 7.01,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const LettersOfCreditData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lc_number": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "issue_date": new Date(Date.now()),
            
        
    
        
        
            
                "expiry_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 8.96,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "utilized",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lc_number": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "issue_date": new Date(Date.now()),
            
        
    
        
        
            
                "expiry_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 1.76,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "utilized",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lc_number": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "issue_date": new Date(Date.now()),
            
        
    
        
        
            
                "expiry_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 5.77,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "opened",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lc_number": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "issue_date": new Date(Date.now()),
            
        
    
        
        
            
                "expiry_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 6.79,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "utilized",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "lc_number": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "issue_date": new Date(Date.now()),
            
        
    
        
        
            
                "expiry_date": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 4.08,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "opened",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



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



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



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



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



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



const AccountsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coding_mode": "private",
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "level": "group",
            
        
    
        
        
            
                "nature": "mixed",
            
        
    
        
        
            
                "is_leaf": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "parent_code": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coding_mode": "government",
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "level": "general_ledger",
            
        
    
        
        
            
                "nature": "debit",
            
        
    
        
        
            
                "is_leaf": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "parent_code": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coding_mode": "government",
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "level": "group",
            
        
    
        
        
            
                "nature": "mixed",
            
        
    
        
        
            
                "is_leaf": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "parent_code": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coding_mode": "private",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "level": "detail",
            
        
    
        
        
            
                "nature": "mixed",
            
        
    
        
        
            
                "is_leaf": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "parent_code": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "coding_mode": "private",
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "level": "detail",
            
        
    
        
        
            
                "nature": "credit",
            
        
    
        
        
            
                "is_leaf": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "parent_code": "Alan Turing",
            
        
    
    },
    
];



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



const JournalVouchersData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "voucher_number": "Alan Turing",
            
        
    
        
        
            
                "voucher_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "total_debit": 9.12,
            
        
    
        
        
            
                "total_credit": 4.07,
            
        
    
        
        
            
                "is_balanced": false,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "voucher_number": "Grace Hopper",
            
        
    
        
        
            
                "voucher_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "total_debit": 1.32,
            
        
    
        
        
            
                "total_credit": 7.08,
            
        
    
        
        
            
                "is_balanced": true,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "voucher_number": "Grace Hopper",
            
        
    
        
        
            
                "voucher_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "rejected",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "total_debit": 2.39,
            
        
    
        
        
            
                "total_credit": 8.39,
            
        
    
        
        
            
                "is_balanced": false,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "voucher_number": "Alan Turing",
            
        
    
        
        
            
                "voucher_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "approved",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "total_debit": 4.05,
            
        
    
        
        
            
                "total_credit": 4.76,
            
        
    
        
        
            
                "is_balanced": false,
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                "voucher_number": "Alan Turing",
            
        
    
        
        
            
                "voucher_date": new Date(Date.now()),
            
        
    
        
        
            
                "status": "temporary",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "total_debit": 3.1,
            
        
    
        
        
            
                "total_credit": 9.31,
            
        
    
        
        
            
                "is_balanced": false,
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const JournalLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_no": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "debit": 2.16,
            
        
    
        
        
            
                "credit": 5.55,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency_amount": 7.56,
            
        
    
        
        
            
                "exchange_rate": 6.33,
            
        
    
        
        
            
                "line_description": "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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_no": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "debit": 7.87,
            
        
    
        
        
            
                "credit": 6.04,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency_amount": 8.47,
            
        
    
        
        
            
                "exchange_rate": 2.7,
            
        
    
        
        
            
                "line_description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_no": 8,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "debit": 5.99,
            
        
    
        
        
            
                "credit": 4.74,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency_amount": 5.18,
            
        
    
        
        
            
                "exchange_rate": 4.96,
            
        
    
        
        
            
                "line_description": "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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_no": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "debit": 8.45,
            
        
    
        
        
            
                "credit": 6.33,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency_amount": 0.15,
            
        
    
        
        
            
                "exchange_rate": 8.66,
            
        
    
        
        
            
                "line_description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_no": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "debit": 7.71,
            
        
    
        
        
            
                "credit": 0.32,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "currency_amount": 2.7,
            
        
    
        
        
            
                "exchange_rate": 2.68,
            
        
    
        
        
            
                "line_description": "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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



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



const WorkflowStepsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_no": 6,
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision_type": "review",
            
        
    
        
        
            
                "is_mandatory": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_no": 3,
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision_type": "post",
            
        
    
        
        
            
                "is_mandatory": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_no": 8,
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision_type": "approve",
            
        
    
        
        
            
                "is_mandatory": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_no": 5,
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision_type": "review",
            
        
    
        
        
            
                "is_mandatory": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "step_no": 7,
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "decision_type": "post",
            
        
    
        
        
            
                "is_mandatory": true,
            
        
    
    },
    
];



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



const YearEndOperationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "operation_type": "closing_voucher",
            
        
    
        
        
            
                "operation_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "posted",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "operation_type": "currency_revaluation",
            
        
    
        
        
            
                "operation_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "canceled",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "operation_type": "currency_revaluation",
            
        
    
        
        
            
                "operation_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "posted",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "operation_type": "adjust_nature",
            
        
    
        
        
            
                "operation_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "operation_type": "opening_voucher",
            
        
    
        
        
            
                "operation_date": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
];



const ReportDefinitionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "engine": "ssrs",
            
        
    
        
        
            
                "path_or_name": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "engine": "stimulsoft",
            
        
    
        
        
            
                "path_or_name": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "engine": "crystal_reports",
            
        
    
        
        
            
                "path_or_name": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "engine": "stimulsoft",
            
        
    
        
        
            
                "path_or_name": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "engine": "ssrs",
            
        
    
        
        
            
                "path_or_name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const ReportRunsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_format": "pdf",
            
        
    
        
        
            
                "filters_json": "Marie Curie",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_format": "excel",
            
        
    
        
        
            
                "filters_json": "Alan Turing",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_format": "screen",
            
        
    
        
        
            
                "filters_json": "Alan Turing",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_format": "pdf",
            
        
    
        
        
            
                "filters_json": "Grace Hopper",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "output_format": "screen",
            
        
    
        
        
            
                "filters_json": "Grace Hopper",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Grace Hopper",
            
        
    
    },
    
];



const ChatConversationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "group",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "is_archived": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "direct",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "is_archived": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "group",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "is_archived": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "direct",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "is_archived": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "direct",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "is_archived": false,
            
        
    
    },
    
];



const ChatParticipantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "admin",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "member",
            
        
    
        
        
            
                "joined_at": new Date(Date.now()),
            
        
    
        
        
            
                "is_muted": false,
            
        
    
    },
    
];



const ChatMessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "message_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": false,
            
        
    
        
        
            
                "is_deleted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "message_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": true,
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "message_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": false,
            
        
    
        
        
            
                "is_deleted": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "message_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": true,
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "message_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "is_edited": false,
            
        
    
        
        
            
                "is_deleted": false,
            
        
    
    },
    
];



const FormAlarmsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Alan Turing",
            
        
    
        
        
            
                "action": "delete",
            
        
    
        
        
            
                "severity": "warning",
            
        
    
        
        
            
                "message_template": "Grace Hopper",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Grace Hopper",
            
        
    
        
        
            
                "action": "create",
            
        
    
        
        
            
                "severity": "warning",
            
        
    
        
        
            
                "message_template": "Ada Lovelace",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Marie Curie",
            
        
    
        
        
            
                "action": "create",
            
        
    
        
        
            
                "severity": "info",
            
        
    
        
        
            
                "message_template": "Alan Turing",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Alan Turing",
            
        
    
        
        
            
                "action": "delete",
            
        
    
        
        
            
                "severity": "warning",
            
        
    
        
        
            
                "message_template": "Grace Hopper",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "form_key": "Marie Curie",
            
        
    
        
        
            
                "action": "delete",
            
        
    
        
        
            
                "severity": "info",
            
        
    
        
        
            
                "message_template": "Marie Curie",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
];



const DataExportJobsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "export_type": "accounts_and_analytics",
            
        
    
        
        
            
                "source_connection_name": "Grace Hopper",
            
        
    
        
        
            
                "target_connection_name": "Alan Turing",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "export_type": "accounts_and_analytics",
            
        
    
        
        
            
                "source_connection_name": "Grace Hopper",
            
        
    
        
        
            
                "target_connection_name": "Grace Hopper",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "export_type": "journal_vouchers",
            
        
    
        
        
            
                "source_connection_name": "Alan Turing",
            
        
    
        
        
            
                "target_connection_name": "Alan Turing",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "export_type": "journal_vouchers",
            
        
    
        
        
            
                "source_connection_name": "Marie Curie",
            
        
    
        
        
            
                "target_connection_name": "Alan Turing",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "running",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "export_type": "journal_vouchers",
            
        
    
        
        
            
                "source_connection_name": "Alan Turing",
            
        
    
        
        
            
                "target_connection_name": "Ada Lovelace",
            
        
    
        
        
            
                "requested_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "error_message": "Alan Turing",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBrancheWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Branche0 = await Branches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Branche0?.setBusines)
                {
                    await
                    Branche0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Branche1 = await Branches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Branche1?.setBusines)
                {
                    await
                    Branche1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Branche2 = await Branches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Branche2?.setBusines)
                {
                    await
                    Branche2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Branche3 = await Branches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Branche3?.setBusines)
                {
                    await
                    Branche3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Branche4 = await Branches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Branche4?.setBusines)
                {
                    await
                    Branche4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFiscalYearWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FiscalYear0 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FiscalYear0?.setBusines)
                {
                    await
                    FiscalYear0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FiscalYear1 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FiscalYear1?.setBusines)
                {
                    await
                    FiscalYear1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FiscalYear2 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FiscalYear2?.setBusines)
                {
                    await
                    FiscalYear2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FiscalYear3 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FiscalYear3?.setBusines)
                {
                    await
                    FiscalYear3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FiscalYear4 = await FiscalYears.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FiscalYear4?.setBusines)
                {
                    await
                    FiscalYear4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserRoleAssignmentWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const UserRoleAssignment0 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserRoleAssignment0?.setBusines)
                {
                    await
                    UserRoleAssignment0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const UserRoleAssignment1 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserRoleAssignment1?.setBusines)
                {
                    await
                    UserRoleAssignment1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const UserRoleAssignment2 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserRoleAssignment2?.setBusines)
                {
                    await
                    UserRoleAssignment2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const UserRoleAssignment3 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserRoleAssignment3?.setBusines)
                {
                    await
                    UserRoleAssignment3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const UserRoleAssignment4 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserRoleAssignment4?.setBusines)
                {
                    await
                    UserRoleAssignment4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateUserRoleAssignmentWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRoleAssignment0 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserRoleAssignment0?.setUser)
                {
                    await
                    UserRoleAssignment0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRoleAssignment1 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserRoleAssignment1?.setUser)
                {
                    await
                    UserRoleAssignment1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRoleAssignment2 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserRoleAssignment2?.setUser)
                {
                    await
                    UserRoleAssignment2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRoleAssignment3 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserRoleAssignment3?.setUser)
                {
                    await
                    UserRoleAssignment3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRoleAssignment4 = await UserRoleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (UserRoleAssignment4?.setUser)
                {
                    await
                    UserRoleAssignment4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateRolePermissionWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const RolePermission0 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RolePermission0?.setBusines)
                {
                    await
                    RolePermission0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const RolePermission1 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RolePermission1?.setBusines)
                {
                    await
                    RolePermission1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const RolePermission2 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RolePermission2?.setBusines)
                {
                    await
                    RolePermission2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const RolePermission3 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RolePermission3?.setBusines)
                {
                    await
                    RolePermission3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const RolePermission4 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RolePermission4?.setBusines)
                {
                    await
                    RolePermission4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
            
            async function associateRolePermissionWithMenu() {
            
                const relatedMenu0 = await AppMenus.findOne({
                    offset: Math.floor(Math.random() * (await AppMenus.count())),
                });
                const RolePermission0 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RolePermission0?.setMenu)
                {
                    await
                    RolePermission0.
                    setMenu(relatedMenu0);
                }
            
                const relatedMenu1 = await AppMenus.findOne({
                    offset: Math.floor(Math.random() * (await AppMenus.count())),
                });
                const RolePermission1 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RolePermission1?.setMenu)
                {
                    await
                    RolePermission1.
                    setMenu(relatedMenu1);
                }
            
                const relatedMenu2 = await AppMenus.findOne({
                    offset: Math.floor(Math.random() * (await AppMenus.count())),
                });
                const RolePermission2 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RolePermission2?.setMenu)
                {
                    await
                    RolePermission2.
                    setMenu(relatedMenu2);
                }
            
                const relatedMenu3 = await AppMenus.findOne({
                    offset: Math.floor(Math.random() * (await AppMenus.count())),
                });
                const RolePermission3 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RolePermission3?.setMenu)
                {
                    await
                    RolePermission3.
                    setMenu(relatedMenu3);
                }
            
                const relatedMenu4 = await AppMenus.findOne({
                    offset: Math.floor(Math.random() * (await AppMenus.count())),
                });
                const RolePermission4 = await RolePermissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RolePermission4?.setMenu)
                {
                    await
                    RolePermission4.
                    setMenu(relatedMenu4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAppSettingWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AppSetting0 = await AppSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AppSetting0?.setBusines)
                {
                    await
                    AppSetting0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AppSetting1 = await AppSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AppSetting1?.setBusines)
                {
                    await
                    AppSetting1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AppSetting2 = await AppSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AppSetting2?.setBusines)
                {
                    await
                    AppSetting2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AppSetting3 = await AppSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AppSetting3?.setBusines)
                {
                    await
                    AppSetting3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AppSetting4 = await AppSettings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AppSetting4?.setBusines)
                {
                    await
                    AppSetting4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCurrencyWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Currency0 = await Currencies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Currency0?.setBusines)
                {
                    await
                    Currency0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Currency1 = await Currencies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Currency1?.setBusines)
                {
                    await
                    Currency1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Currency2 = await Currencies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Currency2?.setBusines)
                {
                    await
                    Currency2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Currency3 = await Currencies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Currency3?.setBusines)
                {
                    await
                    Currency3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Currency4 = await Currencies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Currency4?.setBusines)
                {
                    await
                    Currency4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCurrencyRateWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CurrencyRate0 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CurrencyRate0?.setBusines)
                {
                    await
                    CurrencyRate0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CurrencyRate1 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CurrencyRate1?.setBusines)
                {
                    await
                    CurrencyRate1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CurrencyRate2 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CurrencyRate2?.setBusines)
                {
                    await
                    CurrencyRate2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CurrencyRate3 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CurrencyRate3?.setBusines)
                {
                    await
                    CurrencyRate3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CurrencyRate4 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CurrencyRate4?.setBusines)
                {
                    await
                    CurrencyRate4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateCurrencyRateWithFrom_currency() {
            
                const relatedFrom_currency0 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate0 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CurrencyRate0?.setFrom_currency)
                {
                    await
                    CurrencyRate0.
                    setFrom_currency(relatedFrom_currency0);
                }
            
                const relatedFrom_currency1 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate1 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CurrencyRate1?.setFrom_currency)
                {
                    await
                    CurrencyRate1.
                    setFrom_currency(relatedFrom_currency1);
                }
            
                const relatedFrom_currency2 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate2 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CurrencyRate2?.setFrom_currency)
                {
                    await
                    CurrencyRate2.
                    setFrom_currency(relatedFrom_currency2);
                }
            
                const relatedFrom_currency3 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate3 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CurrencyRate3?.setFrom_currency)
                {
                    await
                    CurrencyRate3.
                    setFrom_currency(relatedFrom_currency3);
                }
            
                const relatedFrom_currency4 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate4 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CurrencyRate4?.setFrom_currency)
                {
                    await
                    CurrencyRate4.
                    setFrom_currency(relatedFrom_currency4);
                }
            
        }
        
    
        
            
            async function associateCurrencyRateWithTo_currency() {
            
                const relatedTo_currency0 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate0 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CurrencyRate0?.setTo_currency)
                {
                    await
                    CurrencyRate0.
                    setTo_currency(relatedTo_currency0);
                }
            
                const relatedTo_currency1 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate1 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CurrencyRate1?.setTo_currency)
                {
                    await
                    CurrencyRate1.
                    setTo_currency(relatedTo_currency1);
                }
            
                const relatedTo_currency2 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate2 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CurrencyRate2?.setTo_currency)
                {
                    await
                    CurrencyRate2.
                    setTo_currency(relatedTo_currency2);
                }
            
                const relatedTo_currency3 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate3 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CurrencyRate3?.setTo_currency)
                {
                    await
                    CurrencyRate3.
                    setTo_currency(relatedTo_currency3);
                }
            
                const relatedTo_currency4 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CurrencyRate4 = await CurrencyRates.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CurrencyRate4?.setTo_currency)
                {
                    await
                    CurrencyRate4.
                    setTo_currency(relatedTo_currency4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNumberingProfileWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const NumberingProfile0 = await NumberingProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NumberingProfile0?.setBusines)
                {
                    await
                    NumberingProfile0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const NumberingProfile1 = await NumberingProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NumberingProfile1?.setBusines)
                {
                    await
                    NumberingProfile1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const NumberingProfile2 = await NumberingProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NumberingProfile2?.setBusines)
                {
                    await
                    NumberingProfile2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const NumberingProfile3 = await NumberingProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NumberingProfile3?.setBusines)
                {
                    await
                    NumberingProfile3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const NumberingProfile4 = await NumberingProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NumberingProfile4?.setBusines)
                {
                    await
                    NumberingProfile4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateWidgetWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Widget0 = await Widgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Widget0?.setBusines)
                {
                    await
                    Widget0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Widget1 = await Widgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Widget1?.setBusines)
                {
                    await
                    Widget1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Widget2 = await Widgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Widget2?.setBusines)
                {
                    await
                    Widget2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Widget3 = await Widgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Widget3?.setBusines)
                {
                    await
                    Widget3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Widget4 = await Widgets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Widget4?.setBusines)
                {
                    await
                    Widget4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLicenseKeyWithLicense_customer() {
            
                const relatedLicense_customer0 = await LicenseCustomers.findOne({
                    offset: Math.floor(Math.random() * (await LicenseCustomers.count())),
                });
                const LicenseKey0 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LicenseKey0?.setLicense_customer)
                {
                    await
                    LicenseKey0.
                    setLicense_customer(relatedLicense_customer0);
                }
            
                const relatedLicense_customer1 = await LicenseCustomers.findOne({
                    offset: Math.floor(Math.random() * (await LicenseCustomers.count())),
                });
                const LicenseKey1 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LicenseKey1?.setLicense_customer)
                {
                    await
                    LicenseKey1.
                    setLicense_customer(relatedLicense_customer1);
                }
            
                const relatedLicense_customer2 = await LicenseCustomers.findOne({
                    offset: Math.floor(Math.random() * (await LicenseCustomers.count())),
                });
                const LicenseKey2 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LicenseKey2?.setLicense_customer)
                {
                    await
                    LicenseKey2.
                    setLicense_customer(relatedLicense_customer2);
                }
            
                const relatedLicense_customer3 = await LicenseCustomers.findOne({
                    offset: Math.floor(Math.random() * (await LicenseCustomers.count())),
                });
                const LicenseKey3 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LicenseKey3?.setLicense_customer)
                {
                    await
                    LicenseKey3.
                    setLicense_customer(relatedLicense_customer3);
                }
            
                const relatedLicense_customer4 = await LicenseCustomers.findOne({
                    offset: Math.floor(Math.random() * (await LicenseCustomers.count())),
                });
                const LicenseKey4 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LicenseKey4?.setLicense_customer)
                {
                    await
                    LicenseKey4.
                    setLicense_customer(relatedLicense_customer4);
                }
            
        }
        
    
        
            
            async function associateLicenseKeyWithProduct() {
            
                const relatedProduct0 = await LicenseProducts.findOne({
                    offset: Math.floor(Math.random() * (await LicenseProducts.count())),
                });
                const LicenseKey0 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LicenseKey0?.setProduct)
                {
                    await
                    LicenseKey0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await LicenseProducts.findOne({
                    offset: Math.floor(Math.random() * (await LicenseProducts.count())),
                });
                const LicenseKey1 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LicenseKey1?.setProduct)
                {
                    await
                    LicenseKey1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await LicenseProducts.findOne({
                    offset: Math.floor(Math.random() * (await LicenseProducts.count())),
                });
                const LicenseKey2 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LicenseKey2?.setProduct)
                {
                    await
                    LicenseKey2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await LicenseProducts.findOne({
                    offset: Math.floor(Math.random() * (await LicenseProducts.count())),
                });
                const LicenseKey3 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LicenseKey3?.setProduct)
                {
                    await
                    LicenseKey3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await LicenseProducts.findOne({
                    offset: Math.floor(Math.random() * (await LicenseProducts.count())),
                });
                const LicenseKey4 = await LicenseKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LicenseKey4?.setProduct)
                {
                    await
                    LicenseKey4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLicenseActivationWithLicense_key() {
            
                const relatedLicense_key0 = await LicenseKeys.findOne({
                    offset: Math.floor(Math.random() * (await LicenseKeys.count())),
                });
                const LicenseActivation0 = await LicenseActivations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LicenseActivation0?.setLicense_key)
                {
                    await
                    LicenseActivation0.
                    setLicense_key(relatedLicense_key0);
                }
            
                const relatedLicense_key1 = await LicenseKeys.findOne({
                    offset: Math.floor(Math.random() * (await LicenseKeys.count())),
                });
                const LicenseActivation1 = await LicenseActivations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LicenseActivation1?.setLicense_key)
                {
                    await
                    LicenseActivation1.
                    setLicense_key(relatedLicense_key1);
                }
            
                const relatedLicense_key2 = await LicenseKeys.findOne({
                    offset: Math.floor(Math.random() * (await LicenseKeys.count())),
                });
                const LicenseActivation2 = await LicenseActivations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LicenseActivation2?.setLicense_key)
                {
                    await
                    LicenseActivation2.
                    setLicense_key(relatedLicense_key2);
                }
            
                const relatedLicense_key3 = await LicenseKeys.findOne({
                    offset: Math.floor(Math.random() * (await LicenseKeys.count())),
                });
                const LicenseActivation3 = await LicenseActivations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LicenseActivation3?.setLicense_key)
                {
                    await
                    LicenseActivation3.
                    setLicense_key(relatedLicense_key3);
                }
            
                const relatedLicense_key4 = await LicenseKeys.findOne({
                    offset: Math.floor(Math.random() * (await LicenseKeys.count())),
                });
                const LicenseActivation4 = await LicenseActivations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LicenseActivation4?.setLicense_key)
                {
                    await
                    LicenseActivation4.
                    setLicense_key(relatedLicense_key4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCounterpartyWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Counterparty0 = await Counterparties.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Counterparty0?.setBusines)
                {
                    await
                    Counterparty0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Counterparty1 = await Counterparties.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Counterparty1?.setBusines)
                {
                    await
                    Counterparty1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Counterparty2 = await Counterparties.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Counterparty2?.setBusines)
                {
                    await
                    Counterparty2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Counterparty3 = await Counterparties.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Counterparty3?.setBusines)
                {
                    await
                    Counterparty3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Counterparty4 = await Counterparties.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Counterparty4?.setBusines)
                {
                    await
                    Counterparty4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCostCenterWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CostCenter0 = await CostCenters.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostCenter0?.setBusines)
                {
                    await
                    CostCenter0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CostCenter1 = await CostCenters.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostCenter1?.setBusines)
                {
                    await
                    CostCenter1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CostCenter2 = await CostCenters.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostCenter2?.setBusines)
                {
                    await
                    CostCenter2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CostCenter3 = await CostCenters.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostCenter3?.setBusines)
                {
                    await
                    CostCenter3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CostCenter4 = await CostCenters.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostCenter4?.setBusines)
                {
                    await
                    CostCenter4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProjectWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Project0 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Project0?.setBusines)
                {
                    await
                    Project0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Project1 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Project1?.setBusines)
                {
                    await
                    Project1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Project2 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Project2?.setBusines)
                {
                    await
                    Project2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Project3 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Project3?.setBusines)
                {
                    await
                    Project3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Project4 = await Projects.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Project4?.setBusines)
                {
                    await
                    Project4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateContractWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setBusines)
                {
                    await
                    Contract0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setBusines)
                {
                    await
                    Contract1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setBusines)
                {
                    await
                    Contract2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setBusines)
                {
                    await
                    Contract3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setBusines)
                {
                    await
                    Contract4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateContractWithCounterparty() {
            
                const relatedCounterparty0 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setCounterparty)
                {
                    await
                    Contract0.
                    setCounterparty(relatedCounterparty0);
                }
            
                const relatedCounterparty1 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setCounterparty)
                {
                    await
                    Contract1.
                    setCounterparty(relatedCounterparty1);
                }
            
                const relatedCounterparty2 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setCounterparty)
                {
                    await
                    Contract2.
                    setCounterparty(relatedCounterparty2);
                }
            
                const relatedCounterparty3 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setCounterparty)
                {
                    await
                    Contract3.
                    setCounterparty(relatedCounterparty3);
                }
            
                const relatedCounterparty4 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setCounterparty)
                {
                    await
                    Contract4.
                    setCounterparty(relatedCounterparty4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateContractWithCurrency() {
            
                const relatedCurrency0 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const Contract0 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Contract0?.setCurrency)
                {
                    await
                    Contract0.
                    setCurrency(relatedCurrency0);
                }
            
                const relatedCurrency1 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const Contract1 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Contract1?.setCurrency)
                {
                    await
                    Contract1.
                    setCurrency(relatedCurrency1);
                }
            
                const relatedCurrency2 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const Contract2 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Contract2?.setCurrency)
                {
                    await
                    Contract2.
                    setCurrency(relatedCurrency2);
                }
            
                const relatedCurrency3 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const Contract3 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Contract3?.setCurrency)
                {
                    await
                    Contract3.
                    setCurrency(relatedCurrency3);
                }
            
                const relatedCurrency4 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const Contract4 = await Contracts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Contract4?.setCurrency)
                {
                    await
                    Contract4.
                    setCurrency(relatedCurrency4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCashBoxeWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CashBoxe0 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CashBoxe0?.setBusines)
                {
                    await
                    CashBoxe0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CashBoxe1 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CashBoxe1?.setBusines)
                {
                    await
                    CashBoxe1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CashBoxe2 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CashBoxe2?.setBusines)
                {
                    await
                    CashBoxe2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CashBoxe3 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CashBoxe3?.setBusines)
                {
                    await
                    CashBoxe3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CashBoxe4 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CashBoxe4?.setBusines)
                {
                    await
                    CashBoxe4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateCashBoxeWithBranch() {
            
                const relatedBranch0 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const CashBoxe0 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CashBoxe0?.setBranch)
                {
                    await
                    CashBoxe0.
                    setBranch(relatedBranch0);
                }
            
                const relatedBranch1 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const CashBoxe1 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CashBoxe1?.setBranch)
                {
                    await
                    CashBoxe1.
                    setBranch(relatedBranch1);
                }
            
                const relatedBranch2 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const CashBoxe2 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CashBoxe2?.setBranch)
                {
                    await
                    CashBoxe2.
                    setBranch(relatedBranch2);
                }
            
                const relatedBranch3 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const CashBoxe3 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CashBoxe3?.setBranch)
                {
                    await
                    CashBoxe3.
                    setBranch(relatedBranch3);
                }
            
                const relatedBranch4 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const CashBoxe4 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CashBoxe4?.setBranch)
                {
                    await
                    CashBoxe4.
                    setBranch(relatedBranch4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateCashBoxeWithCurrency() {
            
                const relatedCurrency0 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CashBoxe0 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CashBoxe0?.setCurrency)
                {
                    await
                    CashBoxe0.
                    setCurrency(relatedCurrency0);
                }
            
                const relatedCurrency1 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CashBoxe1 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CashBoxe1?.setCurrency)
                {
                    await
                    CashBoxe1.
                    setCurrency(relatedCurrency1);
                }
            
                const relatedCurrency2 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CashBoxe2 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CashBoxe2?.setCurrency)
                {
                    await
                    CashBoxe2.
                    setCurrency(relatedCurrency2);
                }
            
                const relatedCurrency3 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CashBoxe3 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CashBoxe3?.setCurrency)
                {
                    await
                    CashBoxe3.
                    setCurrency(relatedCurrency3);
                }
            
                const relatedCurrency4 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const CashBoxe4 = await CashBoxes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CashBoxe4?.setCurrency)
                {
                    await
                    CashBoxe4.
                    setCurrency(relatedCurrency4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateBankWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Bank0 = await Banks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Bank0?.setBusines)
                {
                    await
                    Bank0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Bank1 = await Banks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Bank1?.setBusines)
                {
                    await
                    Bank1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Bank2 = await Banks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Bank2?.setBusines)
                {
                    await
                    Bank2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Bank3 = await Banks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Bank3?.setBusines)
                {
                    await
                    Bank3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Bank4 = await Banks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Bank4?.setBusines)
                {
                    await
                    Bank4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBankAccountWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BankAccount0 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankAccount0?.setBusines)
                {
                    await
                    BankAccount0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BankAccount1 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankAccount1?.setBusines)
                {
                    await
                    BankAccount1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BankAccount2 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankAccount2?.setBusines)
                {
                    await
                    BankAccount2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BankAccount3 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankAccount3?.setBusines)
                {
                    await
                    BankAccount3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BankAccount4 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankAccount4?.setBusines)
                {
                    await
                    BankAccount4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateBankAccountWithBank() {
            
                const relatedBank0 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const BankAccount0 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankAccount0?.setBank)
                {
                    await
                    BankAccount0.
                    setBank(relatedBank0);
                }
            
                const relatedBank1 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const BankAccount1 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankAccount1?.setBank)
                {
                    await
                    BankAccount1.
                    setBank(relatedBank1);
                }
            
                const relatedBank2 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const BankAccount2 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankAccount2?.setBank)
                {
                    await
                    BankAccount2.
                    setBank(relatedBank2);
                }
            
                const relatedBank3 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const BankAccount3 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankAccount3?.setBank)
                {
                    await
                    BankAccount3.
                    setBank(relatedBank3);
                }
            
                const relatedBank4 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const BankAccount4 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankAccount4?.setBank)
                {
                    await
                    BankAccount4.
                    setBank(relatedBank4);
                }
            
        }
        
    
        
            
            async function associateBankAccountWithBranch() {
            
                const relatedBranch0 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const BankAccount0 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankAccount0?.setBranch)
                {
                    await
                    BankAccount0.
                    setBranch(relatedBranch0);
                }
            
                const relatedBranch1 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const BankAccount1 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankAccount1?.setBranch)
                {
                    await
                    BankAccount1.
                    setBranch(relatedBranch1);
                }
            
                const relatedBranch2 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const BankAccount2 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankAccount2?.setBranch)
                {
                    await
                    BankAccount2.
                    setBranch(relatedBranch2);
                }
            
                const relatedBranch3 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const BankAccount3 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankAccount3?.setBranch)
                {
                    await
                    BankAccount3.
                    setBranch(relatedBranch3);
                }
            
                const relatedBranch4 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const BankAccount4 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankAccount4?.setBranch)
                {
                    await
                    BankAccount4.
                    setBranch(relatedBranch4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateBankAccountWithCurrency() {
            
                const relatedCurrency0 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const BankAccount0 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BankAccount0?.setCurrency)
                {
                    await
                    BankAccount0.
                    setCurrency(relatedCurrency0);
                }
            
                const relatedCurrency1 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const BankAccount1 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BankAccount1?.setCurrency)
                {
                    await
                    BankAccount1.
                    setCurrency(relatedCurrency1);
                }
            
                const relatedCurrency2 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const BankAccount2 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BankAccount2?.setCurrency)
                {
                    await
                    BankAccount2.
                    setCurrency(relatedCurrency2);
                }
            
                const relatedCurrency3 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const BankAccount3 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BankAccount3?.setCurrency)
                {
                    await
                    BankAccount3.
                    setCurrency(relatedCurrency3);
                }
            
                const relatedCurrency4 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const BankAccount4 = await BankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (BankAccount4?.setCurrency)
                {
                    await
                    BankAccount4.
                    setCurrency(relatedCurrency4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateLettersOfCreditWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LettersOfCredit0 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LettersOfCredit0?.setBusines)
                {
                    await
                    LettersOfCredit0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LettersOfCredit1 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LettersOfCredit1?.setBusines)
                {
                    await
                    LettersOfCredit1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LettersOfCredit2 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LettersOfCredit2?.setBusines)
                {
                    await
                    LettersOfCredit2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LettersOfCredit3 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LettersOfCredit3?.setBusines)
                {
                    await
                    LettersOfCredit3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LettersOfCredit4 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LettersOfCredit4?.setBusines)
                {
                    await
                    LettersOfCredit4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
            
            async function associateLettersOfCreditWithBank() {
            
                const relatedBank0 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const LettersOfCredit0 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LettersOfCredit0?.setBank)
                {
                    await
                    LettersOfCredit0.
                    setBank(relatedBank0);
                }
            
                const relatedBank1 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const LettersOfCredit1 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LettersOfCredit1?.setBank)
                {
                    await
                    LettersOfCredit1.
                    setBank(relatedBank1);
                }
            
                const relatedBank2 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const LettersOfCredit2 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LettersOfCredit2?.setBank)
                {
                    await
                    LettersOfCredit2.
                    setBank(relatedBank2);
                }
            
                const relatedBank3 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const LettersOfCredit3 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LettersOfCredit3?.setBank)
                {
                    await
                    LettersOfCredit3.
                    setBank(relatedBank3);
                }
            
                const relatedBank4 = await Banks.findOne({
                    offset: Math.floor(Math.random() * (await Banks.count())),
                });
                const LettersOfCredit4 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LettersOfCredit4?.setBank)
                {
                    await
                    LettersOfCredit4.
                    setBank(relatedBank4);
                }
            
        }
        
    
        
            
            async function associateLettersOfCreditWithCounterparty() {
            
                const relatedCounterparty0 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const LettersOfCredit0 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LettersOfCredit0?.setCounterparty)
                {
                    await
                    LettersOfCredit0.
                    setCounterparty(relatedCounterparty0);
                }
            
                const relatedCounterparty1 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const LettersOfCredit1 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LettersOfCredit1?.setCounterparty)
                {
                    await
                    LettersOfCredit1.
                    setCounterparty(relatedCounterparty1);
                }
            
                const relatedCounterparty2 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const LettersOfCredit2 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LettersOfCredit2?.setCounterparty)
                {
                    await
                    LettersOfCredit2.
                    setCounterparty(relatedCounterparty2);
                }
            
                const relatedCounterparty3 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const LettersOfCredit3 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LettersOfCredit3?.setCounterparty)
                {
                    await
                    LettersOfCredit3.
                    setCounterparty(relatedCounterparty3);
                }
            
                const relatedCounterparty4 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const LettersOfCredit4 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LettersOfCredit4?.setCounterparty)
                {
                    await
                    LettersOfCredit4.
                    setCounterparty(relatedCounterparty4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateLettersOfCreditWithCurrency() {
            
                const relatedCurrency0 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const LettersOfCredit0 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LettersOfCredit0?.setCurrency)
                {
                    await
                    LettersOfCredit0.
                    setCurrency(relatedCurrency0);
                }
            
                const relatedCurrency1 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const LettersOfCredit1 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LettersOfCredit1?.setCurrency)
                {
                    await
                    LettersOfCredit1.
                    setCurrency(relatedCurrency1);
                }
            
                const relatedCurrency2 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const LettersOfCredit2 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LettersOfCredit2?.setCurrency)
                {
                    await
                    LettersOfCredit2.
                    setCurrency(relatedCurrency2);
                }
            
                const relatedCurrency3 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const LettersOfCredit3 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LettersOfCredit3?.setCurrency)
                {
                    await
                    LettersOfCredit3.
                    setCurrency(relatedCurrency3);
                }
            
                const relatedCurrency4 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const LettersOfCredit4 = await LettersOfCredit.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LettersOfCredit4?.setCurrency)
                {
                    await
                    LettersOfCredit4.
                    setCurrency(relatedCurrency4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associatePosTerminalWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const PosTerminal0 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PosTerminal0?.setBusines)
                {
                    await
                    PosTerminal0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const PosTerminal1 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PosTerminal1?.setBusines)
                {
                    await
                    PosTerminal1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const PosTerminal2 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PosTerminal2?.setBusines)
                {
                    await
                    PosTerminal2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const PosTerminal3 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PosTerminal3?.setBusines)
                {
                    await
                    PosTerminal3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const PosTerminal4 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PosTerminal4?.setBusines)
                {
                    await
                    PosTerminal4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associatePosTerminalWithBank_account() {
            
                const relatedBank_account0 = await BankAccounts.findOne({
                    offset: Math.floor(Math.random() * (await BankAccounts.count())),
                });
                const PosTerminal0 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PosTerminal0?.setBank_account)
                {
                    await
                    PosTerminal0.
                    setBank_account(relatedBank_account0);
                }
            
                const relatedBank_account1 = await BankAccounts.findOne({
                    offset: Math.floor(Math.random() * (await BankAccounts.count())),
                });
                const PosTerminal1 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PosTerminal1?.setBank_account)
                {
                    await
                    PosTerminal1.
                    setBank_account(relatedBank_account1);
                }
            
                const relatedBank_account2 = await BankAccounts.findOne({
                    offset: Math.floor(Math.random() * (await BankAccounts.count())),
                });
                const PosTerminal2 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PosTerminal2?.setBank_account)
                {
                    await
                    PosTerminal2.
                    setBank_account(relatedBank_account2);
                }
            
                const relatedBank_account3 = await BankAccounts.findOne({
                    offset: Math.floor(Math.random() * (await BankAccounts.count())),
                });
                const PosTerminal3 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PosTerminal3?.setBank_account)
                {
                    await
                    PosTerminal3.
                    setBank_account(relatedBank_account3);
                }
            
                const relatedBank_account4 = await BankAccounts.findOne({
                    offset: Math.floor(Math.random() * (await BankAccounts.count())),
                });
                const PosTerminal4 = await PosTerminals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PosTerminal4?.setBank_account)
                {
                    await
                    PosTerminal4.
                    setBank_account(relatedBank_account4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSalesItemGroupWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const SalesItemGroup0 = await SalesItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SalesItemGroup0?.setBusines)
                {
                    await
                    SalesItemGroup0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const SalesItemGroup1 = await SalesItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SalesItemGroup1?.setBusines)
                {
                    await
                    SalesItemGroup1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const SalesItemGroup2 = await SalesItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SalesItemGroup2?.setBusines)
                {
                    await
                    SalesItemGroup2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const SalesItemGroup3 = await SalesItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SalesItemGroup3?.setBusines)
                {
                    await
                    SalesItemGroup3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const SalesItemGroup4 = await SalesItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SalesItemGroup4?.setBusines)
                {
                    await
                    SalesItemGroup4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateWarehouseItemGroupWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const WarehouseItemGroup0 = await WarehouseItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WarehouseItemGroup0?.setBusines)
                {
                    await
                    WarehouseItemGroup0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const WarehouseItemGroup1 = await WarehouseItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WarehouseItemGroup1?.setBusines)
                {
                    await
                    WarehouseItemGroup1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const WarehouseItemGroup2 = await WarehouseItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WarehouseItemGroup2?.setBusines)
                {
                    await
                    WarehouseItemGroup2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const WarehouseItemGroup3 = await WarehouseItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WarehouseItemGroup3?.setBusines)
                {
                    await
                    WarehouseItemGroup3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const WarehouseItemGroup4 = await WarehouseItemGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WarehouseItemGroup4?.setBusines)
                {
                    await
                    WarehouseItemGroup4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCustomerGroupWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CustomerGroup0 = await CustomerGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CustomerGroup0?.setBusines)
                {
                    await
                    CustomerGroup0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CustomerGroup1 = await CustomerGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CustomerGroup1?.setBusines)
                {
                    await
                    CustomerGroup1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CustomerGroup2 = await CustomerGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CustomerGroup2?.setBusines)
                {
                    await
                    CustomerGroup2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CustomerGroup3 = await CustomerGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CustomerGroup3?.setBusines)
                {
                    await
                    CustomerGroup3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const CustomerGroup4 = await CustomerGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CustomerGroup4?.setBusines)
                {
                    await
                    CustomerGroup4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAnalyticDimensionWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AnalyticDimension0 = await AnalyticDimensions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AnalyticDimension0?.setBusines)
                {
                    await
                    AnalyticDimension0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AnalyticDimension1 = await AnalyticDimensions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AnalyticDimension1?.setBusines)
                {
                    await
                    AnalyticDimension1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AnalyticDimension2 = await AnalyticDimensions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AnalyticDimension2?.setBusines)
                {
                    await
                    AnalyticDimension2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AnalyticDimension3 = await AnalyticDimensions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AnalyticDimension3?.setBusines)
                {
                    await
                    AnalyticDimension3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const AnalyticDimension4 = await AnalyticDimensions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AnalyticDimension4?.setBusines)
                {
                    await
                    AnalyticDimension4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAccountWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Account0 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Account0?.setBusines)
                {
                    await
                    Account0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Account1 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Account1?.setBusines)
                {
                    await
                    Account1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Account2 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Account2?.setBusines)
                {
                    await
                    Account2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Account3 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Account3?.setBusines)
                {
                    await
                    Account3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Account4 = await Accounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Account4?.setBusines)
                {
                    await
                    Account4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateJournalVoucherTypeWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucherType0 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalVoucherType0?.setBusines)
                {
                    await
                    JournalVoucherType0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucherType1 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalVoucherType1?.setBusines)
                {
                    await
                    JournalVoucherType1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucherType2 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalVoucherType2?.setBusines)
                {
                    await
                    JournalVoucherType2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucherType3 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalVoucherType3?.setBusines)
                {
                    await
                    JournalVoucherType3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucherType4 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalVoucherType4?.setBusines)
                {
                    await
                    JournalVoucherType4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateJournalVoucherTypeWithNumbering_profile() {
            
                const relatedNumbering_profile0 = await NumberingProfiles.findOne({
                    offset: Math.floor(Math.random() * (await NumberingProfiles.count())),
                });
                const JournalVoucherType0 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalVoucherType0?.setNumbering_profile)
                {
                    await
                    JournalVoucherType0.
                    setNumbering_profile(relatedNumbering_profile0);
                }
            
                const relatedNumbering_profile1 = await NumberingProfiles.findOne({
                    offset: Math.floor(Math.random() * (await NumberingProfiles.count())),
                });
                const JournalVoucherType1 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalVoucherType1?.setNumbering_profile)
                {
                    await
                    JournalVoucherType1.
                    setNumbering_profile(relatedNumbering_profile1);
                }
            
                const relatedNumbering_profile2 = await NumberingProfiles.findOne({
                    offset: Math.floor(Math.random() * (await NumberingProfiles.count())),
                });
                const JournalVoucherType2 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalVoucherType2?.setNumbering_profile)
                {
                    await
                    JournalVoucherType2.
                    setNumbering_profile(relatedNumbering_profile2);
                }
            
                const relatedNumbering_profile3 = await NumberingProfiles.findOne({
                    offset: Math.floor(Math.random() * (await NumberingProfiles.count())),
                });
                const JournalVoucherType3 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalVoucherType3?.setNumbering_profile)
                {
                    await
                    JournalVoucherType3.
                    setNumbering_profile(relatedNumbering_profile3);
                }
            
                const relatedNumbering_profile4 = await NumberingProfiles.findOne({
                    offset: Math.floor(Math.random() * (await NumberingProfiles.count())),
                });
                const JournalVoucherType4 = await JournalVoucherTypes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalVoucherType4?.setNumbering_profile)
                {
                    await
                    JournalVoucherType4.
                    setNumbering_profile(relatedNumbering_profile4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateJournalVoucherWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucher0 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalVoucher0?.setBusines)
                {
                    await
                    JournalVoucher0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucher1 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalVoucher1?.setBusines)
                {
                    await
                    JournalVoucher1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucher2 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalVoucher2?.setBusines)
                {
                    await
                    JournalVoucher2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucher3 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalVoucher3?.setBusines)
                {
                    await
                    JournalVoucher3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const JournalVoucher4 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalVoucher4?.setBusines)
                {
                    await
                    JournalVoucher4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateJournalVoucherWithFiscal_year() {
            
                const relatedFiscal_year0 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const JournalVoucher0 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalVoucher0?.setFiscal_year)
                {
                    await
                    JournalVoucher0.
                    setFiscal_year(relatedFiscal_year0);
                }
            
                const relatedFiscal_year1 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const JournalVoucher1 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalVoucher1?.setFiscal_year)
                {
                    await
                    JournalVoucher1.
                    setFiscal_year(relatedFiscal_year1);
                }
            
                const relatedFiscal_year2 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const JournalVoucher2 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalVoucher2?.setFiscal_year)
                {
                    await
                    JournalVoucher2.
                    setFiscal_year(relatedFiscal_year2);
                }
            
                const relatedFiscal_year3 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const JournalVoucher3 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalVoucher3?.setFiscal_year)
                {
                    await
                    JournalVoucher3.
                    setFiscal_year(relatedFiscal_year3);
                }
            
                const relatedFiscal_year4 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const JournalVoucher4 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalVoucher4?.setFiscal_year)
                {
                    await
                    JournalVoucher4.
                    setFiscal_year(relatedFiscal_year4);
                }
            
        }
        
    
        
            
            async function associateJournalVoucherWithBranch() {
            
                const relatedBranch0 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const JournalVoucher0 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalVoucher0?.setBranch)
                {
                    await
                    JournalVoucher0.
                    setBranch(relatedBranch0);
                }
            
                const relatedBranch1 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const JournalVoucher1 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalVoucher1?.setBranch)
                {
                    await
                    JournalVoucher1.
                    setBranch(relatedBranch1);
                }
            
                const relatedBranch2 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const JournalVoucher2 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalVoucher2?.setBranch)
                {
                    await
                    JournalVoucher2.
                    setBranch(relatedBranch2);
                }
            
                const relatedBranch3 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const JournalVoucher3 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalVoucher3?.setBranch)
                {
                    await
                    JournalVoucher3.
                    setBranch(relatedBranch3);
                }
            
                const relatedBranch4 = await Branches.findOne({
                    offset: Math.floor(Math.random() * (await Branches.count())),
                });
                const JournalVoucher4 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalVoucher4?.setBranch)
                {
                    await
                    JournalVoucher4.
                    setBranch(relatedBranch4);
                }
            
        }
        
    
        
            
            async function associateJournalVoucherWithVoucher_type() {
            
                const relatedVoucher_type0 = await JournalVoucherTypes.findOne({
                    offset: Math.floor(Math.random() * (await JournalVoucherTypes.count())),
                });
                const JournalVoucher0 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalVoucher0?.setVoucher_type)
                {
                    await
                    JournalVoucher0.
                    setVoucher_type(relatedVoucher_type0);
                }
            
                const relatedVoucher_type1 = await JournalVoucherTypes.findOne({
                    offset: Math.floor(Math.random() * (await JournalVoucherTypes.count())),
                });
                const JournalVoucher1 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalVoucher1?.setVoucher_type)
                {
                    await
                    JournalVoucher1.
                    setVoucher_type(relatedVoucher_type1);
                }
            
                const relatedVoucher_type2 = await JournalVoucherTypes.findOne({
                    offset: Math.floor(Math.random() * (await JournalVoucherTypes.count())),
                });
                const JournalVoucher2 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalVoucher2?.setVoucher_type)
                {
                    await
                    JournalVoucher2.
                    setVoucher_type(relatedVoucher_type2);
                }
            
                const relatedVoucher_type3 = await JournalVoucherTypes.findOne({
                    offset: Math.floor(Math.random() * (await JournalVoucherTypes.count())),
                });
                const JournalVoucher3 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalVoucher3?.setVoucher_type)
                {
                    await
                    JournalVoucher3.
                    setVoucher_type(relatedVoucher_type3);
                }
            
                const relatedVoucher_type4 = await JournalVoucherTypes.findOne({
                    offset: Math.floor(Math.random() * (await JournalVoucherTypes.count())),
                });
                const JournalVoucher4 = await JournalVouchers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalVoucher4?.setVoucher_type)
                {
                    await
                    JournalVoucher4.
                    setVoucher_type(relatedVoucher_type4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateJournalLineWithVoucher() {
            
                const relatedVoucher0 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setVoucher)
                {
                    await
                    JournalLine0.
                    setVoucher(relatedVoucher0);
                }
            
                const relatedVoucher1 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setVoucher)
                {
                    await
                    JournalLine1.
                    setVoucher(relatedVoucher1);
                }
            
                const relatedVoucher2 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setVoucher)
                {
                    await
                    JournalLine2.
                    setVoucher(relatedVoucher2);
                }
            
                const relatedVoucher3 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setVoucher)
                {
                    await
                    JournalLine3.
                    setVoucher(relatedVoucher3);
                }
            
                const relatedVoucher4 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setVoucher)
                {
                    await
                    JournalLine4.
                    setVoucher(relatedVoucher4);
                }
            
        }
        
    
        
    
        
            
            async function associateJournalLineWithAccount() {
            
                const relatedAccount0 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAccount)
                {
                    await
                    JournalLine0.
                    setAccount(relatedAccount0);
                }
            
                const relatedAccount1 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAccount)
                {
                    await
                    JournalLine1.
                    setAccount(relatedAccount1);
                }
            
                const relatedAccount2 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAccount)
                {
                    await
                    JournalLine2.
                    setAccount(relatedAccount2);
                }
            
                const relatedAccount3 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAccount)
                {
                    await
                    JournalLine3.
                    setAccount(relatedAccount3);
                }
            
                const relatedAccount4 = await Accounts.findOne({
                    offset: Math.floor(Math.random() * (await Accounts.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAccount)
                {
                    await
                    JournalLine4.
                    setAccount(relatedAccount4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateJournalLineWithCurrency() {
            
                const relatedCurrency0 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setCurrency)
                {
                    await
                    JournalLine0.
                    setCurrency(relatedCurrency0);
                }
            
                const relatedCurrency1 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setCurrency)
                {
                    await
                    JournalLine1.
                    setCurrency(relatedCurrency1);
                }
            
                const relatedCurrency2 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setCurrency)
                {
                    await
                    JournalLine2.
                    setCurrency(relatedCurrency2);
                }
            
                const relatedCurrency3 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setCurrency)
                {
                    await
                    JournalLine3.
                    setCurrency(relatedCurrency3);
                }
            
                const relatedCurrency4 = await Currencies.findOne({
                    offset: Math.floor(Math.random() * (await Currencies.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setCurrency)
                {
                    await
                    JournalLine4.
                    setCurrency(relatedCurrency4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateJournalLineWithCounterparty() {
            
                const relatedCounterparty0 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setCounterparty)
                {
                    await
                    JournalLine0.
                    setCounterparty(relatedCounterparty0);
                }
            
                const relatedCounterparty1 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setCounterparty)
                {
                    await
                    JournalLine1.
                    setCounterparty(relatedCounterparty1);
                }
            
                const relatedCounterparty2 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setCounterparty)
                {
                    await
                    JournalLine2.
                    setCounterparty(relatedCounterparty2);
                }
            
                const relatedCounterparty3 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setCounterparty)
                {
                    await
                    JournalLine3.
                    setCounterparty(relatedCounterparty3);
                }
            
                const relatedCounterparty4 = await Counterparties.findOne({
                    offset: Math.floor(Math.random() * (await Counterparties.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setCounterparty)
                {
                    await
                    JournalLine4.
                    setCounterparty(relatedCounterparty4);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithCost_center() {
            
                const relatedCost_center0 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setCost_center)
                {
                    await
                    JournalLine0.
                    setCost_center(relatedCost_center0);
                }
            
                const relatedCost_center1 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setCost_center)
                {
                    await
                    JournalLine1.
                    setCost_center(relatedCost_center1);
                }
            
                const relatedCost_center2 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setCost_center)
                {
                    await
                    JournalLine2.
                    setCost_center(relatedCost_center2);
                }
            
                const relatedCost_center3 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setCost_center)
                {
                    await
                    JournalLine3.
                    setCost_center(relatedCost_center3);
                }
            
                const relatedCost_center4 = await CostCenters.findOne({
                    offset: Math.floor(Math.random() * (await CostCenters.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setCost_center)
                {
                    await
                    JournalLine4.
                    setCost_center(relatedCost_center4);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithProject() {
            
                const relatedProject0 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setProject)
                {
                    await
                    JournalLine0.
                    setProject(relatedProject0);
                }
            
                const relatedProject1 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setProject)
                {
                    await
                    JournalLine1.
                    setProject(relatedProject1);
                }
            
                const relatedProject2 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setProject)
                {
                    await
                    JournalLine2.
                    setProject(relatedProject2);
                }
            
                const relatedProject3 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setProject)
                {
                    await
                    JournalLine3.
                    setProject(relatedProject3);
                }
            
                const relatedProject4 = await Projects.findOne({
                    offset: Math.floor(Math.random() * (await Projects.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setProject)
                {
                    await
                    JournalLine4.
                    setProject(relatedProject4);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithContract() {
            
                const relatedContract0 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setContract)
                {
                    await
                    JournalLine0.
                    setContract(relatedContract0);
                }
            
                const relatedContract1 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setContract)
                {
                    await
                    JournalLine1.
                    setContract(relatedContract1);
                }
            
                const relatedContract2 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setContract)
                {
                    await
                    JournalLine2.
                    setContract(relatedContract2);
                }
            
                const relatedContract3 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setContract)
                {
                    await
                    JournalLine3.
                    setContract(relatedContract3);
                }
            
                const relatedContract4 = await Contracts.findOne({
                    offset: Math.floor(Math.random() * (await Contracts.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setContract)
                {
                    await
                    JournalLine4.
                    setContract(relatedContract4);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_1() {
            
                const relatedAnalytic_level_10 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_1)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_1(relatedAnalytic_level_10);
                }
            
                const relatedAnalytic_level_11 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_1)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_1(relatedAnalytic_level_11);
                }
            
                const relatedAnalytic_level_12 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_1)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_1(relatedAnalytic_level_12);
                }
            
                const relatedAnalytic_level_13 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_1)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_1(relatedAnalytic_level_13);
                }
            
                const relatedAnalytic_level_14 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_1)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_1(relatedAnalytic_level_14);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_2() {
            
                const relatedAnalytic_level_20 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_2)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_2(relatedAnalytic_level_20);
                }
            
                const relatedAnalytic_level_21 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_2)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_2(relatedAnalytic_level_21);
                }
            
                const relatedAnalytic_level_22 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_2)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_2(relatedAnalytic_level_22);
                }
            
                const relatedAnalytic_level_23 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_2)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_2(relatedAnalytic_level_23);
                }
            
                const relatedAnalytic_level_24 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_2)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_2(relatedAnalytic_level_24);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_3() {
            
                const relatedAnalytic_level_30 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_3)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_3(relatedAnalytic_level_30);
                }
            
                const relatedAnalytic_level_31 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_3)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_3(relatedAnalytic_level_31);
                }
            
                const relatedAnalytic_level_32 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_3)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_3(relatedAnalytic_level_32);
                }
            
                const relatedAnalytic_level_33 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_3)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_3(relatedAnalytic_level_33);
                }
            
                const relatedAnalytic_level_34 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_3)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_3(relatedAnalytic_level_34);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_4() {
            
                const relatedAnalytic_level_40 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_4)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_4(relatedAnalytic_level_40);
                }
            
                const relatedAnalytic_level_41 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_4)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_4(relatedAnalytic_level_41);
                }
            
                const relatedAnalytic_level_42 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_4)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_4(relatedAnalytic_level_42);
                }
            
                const relatedAnalytic_level_43 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_4)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_4(relatedAnalytic_level_43);
                }
            
                const relatedAnalytic_level_44 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_4)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_4(relatedAnalytic_level_44);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_5() {
            
                const relatedAnalytic_level_50 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_5)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_5(relatedAnalytic_level_50);
                }
            
                const relatedAnalytic_level_51 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_5)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_5(relatedAnalytic_level_51);
                }
            
                const relatedAnalytic_level_52 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_5)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_5(relatedAnalytic_level_52);
                }
            
                const relatedAnalytic_level_53 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_5)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_5(relatedAnalytic_level_53);
                }
            
                const relatedAnalytic_level_54 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_5)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_5(relatedAnalytic_level_54);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_6() {
            
                const relatedAnalytic_level_60 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_6)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_6(relatedAnalytic_level_60);
                }
            
                const relatedAnalytic_level_61 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_6)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_6(relatedAnalytic_level_61);
                }
            
                const relatedAnalytic_level_62 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_6)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_6(relatedAnalytic_level_62);
                }
            
                const relatedAnalytic_level_63 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_6)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_6(relatedAnalytic_level_63);
                }
            
                const relatedAnalytic_level_64 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_6)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_6(relatedAnalytic_level_64);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_7() {
            
                const relatedAnalytic_level_70 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_7)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_7(relatedAnalytic_level_70);
                }
            
                const relatedAnalytic_level_71 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_7)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_7(relatedAnalytic_level_71);
                }
            
                const relatedAnalytic_level_72 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_7)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_7(relatedAnalytic_level_72);
                }
            
                const relatedAnalytic_level_73 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_7)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_7(relatedAnalytic_level_73);
                }
            
                const relatedAnalytic_level_74 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_7)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_7(relatedAnalytic_level_74);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_8() {
            
                const relatedAnalytic_level_80 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_8)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_8(relatedAnalytic_level_80);
                }
            
                const relatedAnalytic_level_81 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_8)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_8(relatedAnalytic_level_81);
                }
            
                const relatedAnalytic_level_82 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_8)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_8(relatedAnalytic_level_82);
                }
            
                const relatedAnalytic_level_83 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_8)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_8(relatedAnalytic_level_83);
                }
            
                const relatedAnalytic_level_84 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_8)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_8(relatedAnalytic_level_84);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_9() {
            
                const relatedAnalytic_level_90 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_9)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_9(relatedAnalytic_level_90);
                }
            
                const relatedAnalytic_level_91 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_9)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_9(relatedAnalytic_level_91);
                }
            
                const relatedAnalytic_level_92 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_9)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_9(relatedAnalytic_level_92);
                }
            
                const relatedAnalytic_level_93 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_9)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_9(relatedAnalytic_level_93);
                }
            
                const relatedAnalytic_level_94 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_9)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_9(relatedAnalytic_level_94);
                }
            
        }
        
    
        
            
            async function associateJournalLineWithAnalytic_level_10() {
            
                const relatedAnalytic_level_100 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine0 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (JournalLine0?.setAnalytic_level_10)
                {
                    await
                    JournalLine0.
                    setAnalytic_level_10(relatedAnalytic_level_100);
                }
            
                const relatedAnalytic_level_101 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine1 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (JournalLine1?.setAnalytic_level_10)
                {
                    await
                    JournalLine1.
                    setAnalytic_level_10(relatedAnalytic_level_101);
                }
            
                const relatedAnalytic_level_102 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine2 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (JournalLine2?.setAnalytic_level_10)
                {
                    await
                    JournalLine2.
                    setAnalytic_level_10(relatedAnalytic_level_102);
                }
            
                const relatedAnalytic_level_103 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine3 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (JournalLine3?.setAnalytic_level_10)
                {
                    await
                    JournalLine3.
                    setAnalytic_level_10(relatedAnalytic_level_103);
                }
            
                const relatedAnalytic_level_104 = await AnalyticDimensions.findOne({
                    offset: Math.floor(Math.random() * (await AnalyticDimensions.count())),
                });
                const JournalLine4 = await JournalLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (JournalLine4?.setAnalytic_level_10)
                {
                    await
                    JournalLine4.
                    setAnalytic_level_10(relatedAnalytic_level_104);
                }
            
        }
        
    

    
    
    
        
            
            async function associateApprovalWorkflowWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ApprovalWorkflow0 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApprovalWorkflow0?.setBusines)
                {
                    await
                    ApprovalWorkflow0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ApprovalWorkflow1 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApprovalWorkflow1?.setBusines)
                {
                    await
                    ApprovalWorkflow1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ApprovalWorkflow2 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApprovalWorkflow2?.setBusines)
                {
                    await
                    ApprovalWorkflow2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ApprovalWorkflow3 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApprovalWorkflow3?.setBusines)
                {
                    await
                    ApprovalWorkflow3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ApprovalWorkflow4 = await ApprovalWorkflows.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ApprovalWorkflow4?.setBusines)
                {
                    await
                    ApprovalWorkflow4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateWorkflowStepWithWorkflow() {
            
                const relatedWorkflow0 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const WorkflowStep0 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorkflowStep0?.setWorkflow)
                {
                    await
                    WorkflowStep0.
                    setWorkflow(relatedWorkflow0);
                }
            
                const relatedWorkflow1 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const WorkflowStep1 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorkflowStep1?.setWorkflow)
                {
                    await
                    WorkflowStep1.
                    setWorkflow(relatedWorkflow1);
                }
            
                const relatedWorkflow2 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const WorkflowStep2 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorkflowStep2?.setWorkflow)
                {
                    await
                    WorkflowStep2.
                    setWorkflow(relatedWorkflow2);
                }
            
                const relatedWorkflow3 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const WorkflowStep3 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorkflowStep3?.setWorkflow)
                {
                    await
                    WorkflowStep3.
                    setWorkflow(relatedWorkflow3);
                }
            
                const relatedWorkflow4 = await ApprovalWorkflows.findOne({
                    offset: Math.floor(Math.random() * (await ApprovalWorkflows.count())),
                });
                const WorkflowStep4 = await WorkflowSteps.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WorkflowStep4?.setWorkflow)
                {
                    await
                    WorkflowStep4.
                    setWorkflow(relatedWorkflow4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVoucherApprovalWithVoucher() {
            
                const relatedVoucher0 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const VoucherApproval0 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VoucherApproval0?.setVoucher)
                {
                    await
                    VoucherApproval0.
                    setVoucher(relatedVoucher0);
                }
            
                const relatedVoucher1 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const VoucherApproval1 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VoucherApproval1?.setVoucher)
                {
                    await
                    VoucherApproval1.
                    setVoucher(relatedVoucher1);
                }
            
                const relatedVoucher2 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const VoucherApproval2 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VoucherApproval2?.setVoucher)
                {
                    await
                    VoucherApproval2.
                    setVoucher(relatedVoucher2);
                }
            
                const relatedVoucher3 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const VoucherApproval3 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VoucherApproval3?.setVoucher)
                {
                    await
                    VoucherApproval3.
                    setVoucher(relatedVoucher3);
                }
            
                const relatedVoucher4 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const VoucherApproval4 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VoucherApproval4?.setVoucher)
                {
                    await
                    VoucherApproval4.
                    setVoucher(relatedVoucher4);
                }
            
        }
        
    
        
            
            async function associateVoucherApprovalWithWorkflow_step() {
            
                const relatedWorkflow_step0 = await WorkflowSteps.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowSteps.count())),
                });
                const VoucherApproval0 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VoucherApproval0?.setWorkflow_step)
                {
                    await
                    VoucherApproval0.
                    setWorkflow_step(relatedWorkflow_step0);
                }
            
                const relatedWorkflow_step1 = await WorkflowSteps.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowSteps.count())),
                });
                const VoucherApproval1 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VoucherApproval1?.setWorkflow_step)
                {
                    await
                    VoucherApproval1.
                    setWorkflow_step(relatedWorkflow_step1);
                }
            
                const relatedWorkflow_step2 = await WorkflowSteps.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowSteps.count())),
                });
                const VoucherApproval2 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VoucherApproval2?.setWorkflow_step)
                {
                    await
                    VoucherApproval2.
                    setWorkflow_step(relatedWorkflow_step2);
                }
            
                const relatedWorkflow_step3 = await WorkflowSteps.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowSteps.count())),
                });
                const VoucherApproval3 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VoucherApproval3?.setWorkflow_step)
                {
                    await
                    VoucherApproval3.
                    setWorkflow_step(relatedWorkflow_step3);
                }
            
                const relatedWorkflow_step4 = await WorkflowSteps.findOne({
                    offset: Math.floor(Math.random() * (await WorkflowSteps.count())),
                });
                const VoucherApproval4 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VoucherApproval4?.setWorkflow_step)
                {
                    await
                    VoucherApproval4.
                    setWorkflow_step(relatedWorkflow_step4);
                }
            
        }
        
    
        
            
            async function associateVoucherApprovalWithActed_by_user() {
            
                const relatedActed_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const VoucherApproval0 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VoucherApproval0?.setActed_by_user)
                {
                    await
                    VoucherApproval0.
                    setActed_by_user(relatedActed_by_user0);
                }
            
                const relatedActed_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const VoucherApproval1 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VoucherApproval1?.setActed_by_user)
                {
                    await
                    VoucherApproval1.
                    setActed_by_user(relatedActed_by_user1);
                }
            
                const relatedActed_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const VoucherApproval2 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VoucherApproval2?.setActed_by_user)
                {
                    await
                    VoucherApproval2.
                    setActed_by_user(relatedActed_by_user2);
                }
            
                const relatedActed_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const VoucherApproval3 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VoucherApproval3?.setActed_by_user)
                {
                    await
                    VoucherApproval3.
                    setActed_by_user(relatedActed_by_user3);
                }
            
                const relatedActed_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const VoucherApproval4 = await VoucherApprovals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VoucherApproval4?.setActed_by_user)
                {
                    await
                    VoucherApproval4.
                    setActed_by_user(relatedActed_by_user4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateYearEndOperationWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const YearEndOperation0 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (YearEndOperation0?.setBusines)
                {
                    await
                    YearEndOperation0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const YearEndOperation1 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (YearEndOperation1?.setBusines)
                {
                    await
                    YearEndOperation1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const YearEndOperation2 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (YearEndOperation2?.setBusines)
                {
                    await
                    YearEndOperation2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const YearEndOperation3 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (YearEndOperation3?.setBusines)
                {
                    await
                    YearEndOperation3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const YearEndOperation4 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (YearEndOperation4?.setBusines)
                {
                    await
                    YearEndOperation4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateYearEndOperationWithFiscal_year() {
            
                const relatedFiscal_year0 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const YearEndOperation0 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (YearEndOperation0?.setFiscal_year)
                {
                    await
                    YearEndOperation0.
                    setFiscal_year(relatedFiscal_year0);
                }
            
                const relatedFiscal_year1 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const YearEndOperation1 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (YearEndOperation1?.setFiscal_year)
                {
                    await
                    YearEndOperation1.
                    setFiscal_year(relatedFiscal_year1);
                }
            
                const relatedFiscal_year2 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const YearEndOperation2 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (YearEndOperation2?.setFiscal_year)
                {
                    await
                    YearEndOperation2.
                    setFiscal_year(relatedFiscal_year2);
                }
            
                const relatedFiscal_year3 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const YearEndOperation3 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (YearEndOperation3?.setFiscal_year)
                {
                    await
                    YearEndOperation3.
                    setFiscal_year(relatedFiscal_year3);
                }
            
                const relatedFiscal_year4 = await FiscalYears.findOne({
                    offset: Math.floor(Math.random() * (await FiscalYears.count())),
                });
                const YearEndOperation4 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (YearEndOperation4?.setFiscal_year)
                {
                    await
                    YearEndOperation4.
                    setFiscal_year(relatedFiscal_year4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateYearEndOperationWithGenerated_voucher() {
            
                const relatedGenerated_voucher0 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const YearEndOperation0 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (YearEndOperation0?.setGenerated_voucher)
                {
                    await
                    YearEndOperation0.
                    setGenerated_voucher(relatedGenerated_voucher0);
                }
            
                const relatedGenerated_voucher1 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const YearEndOperation1 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (YearEndOperation1?.setGenerated_voucher)
                {
                    await
                    YearEndOperation1.
                    setGenerated_voucher(relatedGenerated_voucher1);
                }
            
                const relatedGenerated_voucher2 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const YearEndOperation2 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (YearEndOperation2?.setGenerated_voucher)
                {
                    await
                    YearEndOperation2.
                    setGenerated_voucher(relatedGenerated_voucher2);
                }
            
                const relatedGenerated_voucher3 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const YearEndOperation3 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (YearEndOperation3?.setGenerated_voucher)
                {
                    await
                    YearEndOperation3.
                    setGenerated_voucher(relatedGenerated_voucher3);
                }
            
                const relatedGenerated_voucher4 = await JournalVouchers.findOne({
                    offset: Math.floor(Math.random() * (await JournalVouchers.count())),
                });
                const YearEndOperation4 = await YearEndOperations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (YearEndOperation4?.setGenerated_voucher)
                {
                    await
                    YearEndOperation4.
                    setGenerated_voucher(relatedGenerated_voucher4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateReportDefinitionWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ReportDefinition0 = await ReportDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReportDefinition0?.setBusines)
                {
                    await
                    ReportDefinition0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ReportDefinition1 = await ReportDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReportDefinition1?.setBusines)
                {
                    await
                    ReportDefinition1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ReportDefinition2 = await ReportDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReportDefinition2?.setBusines)
                {
                    await
                    ReportDefinition2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ReportDefinition3 = await ReportDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReportDefinition3?.setBusines)
                {
                    await
                    ReportDefinition3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ReportDefinition4 = await ReportDefinitions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ReportDefinition4?.setBusines)
                {
                    await
                    ReportDefinition4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReportRunWithReport_definition() {
            
                const relatedReport_definition0 = await ReportDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ReportDefinitions.count())),
                });
                const ReportRun0 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReportRun0?.setReport_definition)
                {
                    await
                    ReportRun0.
                    setReport_definition(relatedReport_definition0);
                }
            
                const relatedReport_definition1 = await ReportDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ReportDefinitions.count())),
                });
                const ReportRun1 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReportRun1?.setReport_definition)
                {
                    await
                    ReportRun1.
                    setReport_definition(relatedReport_definition1);
                }
            
                const relatedReport_definition2 = await ReportDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ReportDefinitions.count())),
                });
                const ReportRun2 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReportRun2?.setReport_definition)
                {
                    await
                    ReportRun2.
                    setReport_definition(relatedReport_definition2);
                }
            
                const relatedReport_definition3 = await ReportDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ReportDefinitions.count())),
                });
                const ReportRun3 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReportRun3?.setReport_definition)
                {
                    await
                    ReportRun3.
                    setReport_definition(relatedReport_definition3);
                }
            
                const relatedReport_definition4 = await ReportDefinitions.findOne({
                    offset: Math.floor(Math.random() * (await ReportDefinitions.count())),
                });
                const ReportRun4 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ReportRun4?.setReport_definition)
                {
                    await
                    ReportRun4.
                    setReport_definition(relatedReport_definition4);
                }
            
        }
        
    
        
            
            async function associateReportRunWithRequested_by_user() {
            
                const relatedRequested_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReportRun0 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ReportRun0?.setRequested_by_user)
                {
                    await
                    ReportRun0.
                    setRequested_by_user(relatedRequested_by_user0);
                }
            
                const relatedRequested_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReportRun1 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ReportRun1?.setRequested_by_user)
                {
                    await
                    ReportRun1.
                    setRequested_by_user(relatedRequested_by_user1);
                }
            
                const relatedRequested_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReportRun2 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ReportRun2?.setRequested_by_user)
                {
                    await
                    ReportRun2.
                    setRequested_by_user(relatedRequested_by_user2);
                }
            
                const relatedRequested_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReportRun3 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ReportRun3?.setRequested_by_user)
                {
                    await
                    ReportRun3.
                    setRequested_by_user(relatedRequested_by_user3);
                }
            
                const relatedRequested_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ReportRun4 = await ReportRuns.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ReportRun4?.setRequested_by_user)
                {
                    await
                    ReportRun4.
                    setRequested_by_user(relatedRequested_by_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateChatConversationWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ChatConversation0 = await ChatConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatConversation0?.setBusines)
                {
                    await
                    ChatConversation0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ChatConversation1 = await ChatConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatConversation1?.setBusines)
                {
                    await
                    ChatConversation1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ChatConversation2 = await ChatConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatConversation2?.setBusines)
                {
                    await
                    ChatConversation2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ChatConversation3 = await ChatConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatConversation3?.setBusines)
                {
                    await
                    ChatConversation3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ChatConversation4 = await ChatConversations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatConversation4?.setBusines)
                {
                    await
                    ChatConversation4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateChatParticipantWithConversation() {
            
                const relatedConversation0 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatParticipant0 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatParticipant0?.setConversation)
                {
                    await
                    ChatParticipant0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatParticipant1 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatParticipant1?.setConversation)
                {
                    await
                    ChatParticipant1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatParticipant2 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatParticipant2?.setConversation)
                {
                    await
                    ChatParticipant2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatParticipant3 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatParticipant3?.setConversation)
                {
                    await
                    ChatParticipant3.
                    setConversation(relatedConversation3);
                }
            
                const relatedConversation4 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatParticipant4 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatParticipant4?.setConversation)
                {
                    await
                    ChatParticipant4.
                    setConversation(relatedConversation4);
                }
            
        }
        
    
        
            
            async function associateChatParticipantWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant0 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatParticipant0?.setUser)
                {
                    await
                    ChatParticipant0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant1 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatParticipant1?.setUser)
                {
                    await
                    ChatParticipant1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant2 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatParticipant2?.setUser)
                {
                    await
                    ChatParticipant2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant3 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatParticipant3?.setUser)
                {
                    await
                    ChatParticipant3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatParticipant4 = await ChatParticipants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatParticipant4?.setUser)
                {
                    await
                    ChatParticipant4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateChatMessageWithConversation() {
            
                const relatedConversation0 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatMessage0 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMessage0?.setConversation)
                {
                    await
                    ChatMessage0.
                    setConversation(relatedConversation0);
                }
            
                const relatedConversation1 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatMessage1 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMessage1?.setConversation)
                {
                    await
                    ChatMessage1.
                    setConversation(relatedConversation1);
                }
            
                const relatedConversation2 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatMessage2 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMessage2?.setConversation)
                {
                    await
                    ChatMessage2.
                    setConversation(relatedConversation2);
                }
            
                const relatedConversation3 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatMessage3 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatMessage3?.setConversation)
                {
                    await
                    ChatMessage3.
                    setConversation(relatedConversation3);
                }
            
                const relatedConversation4 = await ChatConversations.findOne({
                    offset: Math.floor(Math.random() * (await ChatConversations.count())),
                });
                const ChatMessage4 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatMessage4?.setConversation)
                {
                    await
                    ChatMessage4.
                    setConversation(relatedConversation4);
                }
            
        }
        
    
        
            
            async function associateChatMessageWithSender() {
            
                const relatedSender0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage0 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ChatMessage0?.setSender)
                {
                    await
                    ChatMessage0.
                    setSender(relatedSender0);
                }
            
                const relatedSender1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage1 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ChatMessage1?.setSender)
                {
                    await
                    ChatMessage1.
                    setSender(relatedSender1);
                }
            
                const relatedSender2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage2 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ChatMessage2?.setSender)
                {
                    await
                    ChatMessage2.
                    setSender(relatedSender2);
                }
            
                const relatedSender3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage3 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ChatMessage3?.setSender)
                {
                    await
                    ChatMessage3.
                    setSender(relatedSender3);
                }
            
                const relatedSender4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ChatMessage4 = await ChatMessages.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ChatMessage4?.setSender)
                {
                    await
                    ChatMessage4.
                    setSender(relatedSender4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFormAlarmWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FormAlarm0 = await FormAlarms.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FormAlarm0?.setBusines)
                {
                    await
                    FormAlarm0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FormAlarm1 = await FormAlarms.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FormAlarm1?.setBusines)
                {
                    await
                    FormAlarm1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FormAlarm2 = await FormAlarms.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FormAlarm2?.setBusines)
                {
                    await
                    FormAlarm2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FormAlarm3 = await FormAlarms.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FormAlarm3?.setBusines)
                {
                    await
                    FormAlarm3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const FormAlarm4 = await FormAlarms.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FormAlarm4?.setBusines)
                {
                    await
                    FormAlarm4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDataExportJobWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const DataExportJob0 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DataExportJob0?.setBusines)
                {
                    await
                    DataExportJob0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const DataExportJob1 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DataExportJob1?.setBusines)
                {
                    await
                    DataExportJob1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const DataExportJob2 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DataExportJob2?.setBusines)
                {
                    await
                    DataExportJob2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const DataExportJob3 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DataExportJob3?.setBusines)
                {
                    await
                    DataExportJob3.
                    setBusines(relatedBusines3);
                }
            
                const relatedBusines4 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const DataExportJob4 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DataExportJob4?.setBusines)
                {
                    await
                    DataExportJob4.
                    setBusines(relatedBusines4);
                }
            
        }
        
    
        
            
            async function associateDataExportJobWithRequested_by_user() {
            
                const relatedRequested_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataExportJob0 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DataExportJob0?.setRequested_by_user)
                {
                    await
                    DataExportJob0.
                    setRequested_by_user(relatedRequested_by_user0);
                }
            
                const relatedRequested_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataExportJob1 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DataExportJob1?.setRequested_by_user)
                {
                    await
                    DataExportJob1.
                    setRequested_by_user(relatedRequested_by_user1);
                }
            
                const relatedRequested_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataExportJob2 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DataExportJob2?.setRequested_by_user)
                {
                    await
                    DataExportJob2.
                    setRequested_by_user(relatedRequested_by_user2);
                }
            
                const relatedRequested_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataExportJob3 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DataExportJob3?.setRequested_by_user)
                {
                    await
                    DataExportJob3.
                    setRequested_by_user(relatedRequested_by_user3);
                }
            
                const relatedRequested_by_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DataExportJob4 = await DataExportJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DataExportJob4?.setRequested_by_user)
                {
                    await
                    DataExportJob4.
                    setRequested_by_user(relatedRequested_by_user4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Businesses.bulkCreate(BusinessesData);
                
            
            
                
                await Branches.bulkCreate(BranchesData);
                
            
            
                
                await FiscalYears.bulkCreate(FiscalYearsData);
                
            
            
                
                await UserRoleAssignments.bulkCreate(UserRoleAssignmentsData);
                
            
            
                
                await AppMenus.bulkCreate(AppMenusData);
                
            
            
                
                await RolePermissions.bulkCreate(RolePermissionsData);
                
            
            
                
                await AppSettings.bulkCreate(AppSettingsData);
                
            
            
                
                await Currencies.bulkCreate(CurrenciesData);
                
            
            
                
                await CurrencyRates.bulkCreate(CurrencyRatesData);
                
            
            
                
                await NumberingProfiles.bulkCreate(NumberingProfilesData);
                
            
            
                
                await Widgets.bulkCreate(WidgetsData);
                
            
            
                
                await LicenseCustomers.bulkCreate(LicenseCustomersData);
                
            
            
                
                await LicenseProducts.bulkCreate(LicenseProductsData);
                
            
            
                
                await LicenseKeys.bulkCreate(LicenseKeysData);
                
            
            
                
                await LicenseActivations.bulkCreate(LicenseActivationsData);
                
            
            
                
                await Counterparties.bulkCreate(CounterpartiesData);
                
            
            
                
                await CostCenters.bulkCreate(CostCentersData);
                
            
            
                
                await Projects.bulkCreate(ProjectsData);
                
            
            
                
                await Contracts.bulkCreate(ContractsData);
                
            
            
                
                await CashBoxes.bulkCreate(CashBoxesData);
                
            
            
                
                await Banks.bulkCreate(BanksData);
                
            
            
                
                await BankAccounts.bulkCreate(BankAccountsData);
                
            
            
                
                await LettersOfCredit.bulkCreate(LettersOfCreditData);
                
            
            
                
                await PosTerminals.bulkCreate(PosTerminalsData);
                
            
            
                
                await SalesItemGroups.bulkCreate(SalesItemGroupsData);
                
            
            
                
                await WarehouseItemGroups.bulkCreate(WarehouseItemGroupsData);
                
            
            
                
                await CustomerGroups.bulkCreate(CustomerGroupsData);
                
            
            
                
                await AnalyticDimensions.bulkCreate(AnalyticDimensionsData);
                
            
            
                
                await Accounts.bulkCreate(AccountsData);
                
            
            
                
                await JournalVoucherTypes.bulkCreate(JournalVoucherTypesData);
                
            
            
                
                await JournalVouchers.bulkCreate(JournalVouchersData);
                
            
            
                
                await JournalLines.bulkCreate(JournalLinesData);
                
            
            
                
                await ApprovalWorkflows.bulkCreate(ApprovalWorkflowsData);
                
            
            
                
                await WorkflowSteps.bulkCreate(WorkflowStepsData);
                
            
            
                
                await VoucherApprovals.bulkCreate(VoucherApprovalsData);
                
            
            
                
                await YearEndOperations.bulkCreate(YearEndOperationsData);
                
            
            
                
                await ReportDefinitions.bulkCreate(ReportDefinitionsData);
                
            
            
                
                await ReportRuns.bulkCreate(ReportRunsData);
                
            
            
                
                await ChatConversations.bulkCreate(ChatConversationsData);
                
            
            
                
                await ChatParticipants.bulkCreate(ChatParticipantsData);
                
            
            
                
                await ChatMessages.bulkCreate(ChatMessagesData);
                
            
            
                
                await FormAlarms.bulkCreate(FormAlarmsData);
                
            
            
                
                await DataExportJobs.bulkCreate(DataExportJobsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBrancheWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFiscalYearWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserRoleAssignmentWithBusines(),
                    
                
                    
                        
                        await associateUserRoleAssignmentWithUser(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateRolePermissionWithBusines(),
                    
                
                    
                
                    
                        
                        await associateRolePermissionWithMenu(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAppSettingWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCurrencyWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCurrencyRateWithBusines(),
                    
                
                    
                        
                        await associateCurrencyRateWithFrom_currency(),
                    
                
                    
                        
                        await associateCurrencyRateWithTo_currency(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNumberingProfileWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateWidgetWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLicenseKeyWithLicense_customer(),
                    
                
                    
                        
                        await associateLicenseKeyWithProduct(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLicenseActivationWithLicense_key(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCounterpartyWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCostCenterWithBusines(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProjectWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateContractWithBusines(),
                    
                
                    
                        
                        await associateContractWithCounterparty(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateContractWithCurrency(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCashBoxeWithBusines(),
                    
                
                    
                        
                        await associateCashBoxeWithBranch(),
                    
                
                    
                
                    
                
                    
                        
                        await associateCashBoxeWithCurrency(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBankWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBankAccountWithBusines(),
                    
                
                    
                        
                        await associateBankAccountWithBank(),
                    
                
                    
                        
                        await associateBankAccountWithBranch(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateBankAccountWithCurrency(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLettersOfCreditWithBusines(),
                    
                
                    
                
                    
                        
                        await associateLettersOfCreditWithBank(),
                    
                
                    
                        
                        await associateLettersOfCreditWithCounterparty(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateLettersOfCreditWithCurrency(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePosTerminalWithBusines(),
                    
                
                    
                        
                        await associatePosTerminalWithBank_account(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSalesItemGroupWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateWarehouseItemGroupWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCustomerGroupWithBusines(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAnalyticDimensionWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAccountWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateJournalVoucherTypeWithBusines(),
                    
                
                    
                
                    
                
                    
                        
                        await associateJournalVoucherTypeWithNumbering_profile(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateJournalVoucherWithBusines(),
                    
                
                    
                        
                        await associateJournalVoucherWithFiscal_year(),
                    
                
                    
                        
                        await associateJournalVoucherWithBranch(),
                    
                
                    
                        
                        await associateJournalVoucherWithVoucher_type(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateJournalLineWithVoucher(),
                    
                
                    
                
                    
                        
                        await associateJournalLineWithAccount(),
                    
                
                    
                
                    
                
                    
                        
                        await associateJournalLineWithCurrency(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateJournalLineWithCounterparty(),
                    
                
                    
                        
                        await associateJournalLineWithCost_center(),
                    
                
                    
                        
                        await associateJournalLineWithProject(),
                    
                
                    
                        
                        await associateJournalLineWithContract(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_1(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_2(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_3(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_4(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_5(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_6(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_7(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_8(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_9(),
                    
                
                    
                        
                        await associateJournalLineWithAnalytic_level_10(),
                    
                
            
                
                
                    
                        
                        await associateApprovalWorkflowWithBusines(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateWorkflowStepWithWorkflow(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVoucherApprovalWithVoucher(),
                    
                
                    
                        
                        await associateVoucherApprovalWithWorkflow_step(),
                    
                
                    
                        
                        await associateVoucherApprovalWithActed_by_user(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateYearEndOperationWithBusines(),
                    
                
                    
                        
                        await associateYearEndOperationWithFiscal_year(),
                    
                
                    
                
                    
                
                    
                        
                        await associateYearEndOperationWithGenerated_voucher(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReportDefinitionWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReportRunWithReport_definition(),
                    
                
                    
                        
                        await associateReportRunWithRequested_by_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChatConversationWithBusines(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChatParticipantWithConversation(),
                    
                
                    
                        
                        await associateChatParticipantWithUser(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateChatMessageWithConversation(),
                    
                
                    
                        
                        await associateChatMessageWithSender(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFormAlarmWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDataExportJobWithBusines(),
                    
                
                    
                        
                        await associateDataExportJobWithRequested_by_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('businesses', null, {});
            
            
            await queryInterface.bulkDelete('branches', null, {});
            
            
            await queryInterface.bulkDelete('fiscal_years', null, {});
            
            
            await queryInterface.bulkDelete('user_role_assignments', null, {});
            
            
            await queryInterface.bulkDelete('app_menus', null, {});
            
            
            await queryInterface.bulkDelete('role_permissions', null, {});
            
            
            await queryInterface.bulkDelete('app_settings', null, {});
            
            
            await queryInterface.bulkDelete('currencies', null, {});
            
            
            await queryInterface.bulkDelete('currency_rates', null, {});
            
            
            await queryInterface.bulkDelete('numbering_profiles', null, {});
            
            
            await queryInterface.bulkDelete('widgets', null, {});
            
            
            await queryInterface.bulkDelete('license_customers', null, {});
            
            
            await queryInterface.bulkDelete('license_products', null, {});
            
            
            await queryInterface.bulkDelete('license_keys', null, {});
            
            
            await queryInterface.bulkDelete('license_activations', null, {});
            
            
            await queryInterface.bulkDelete('counterparties', null, {});
            
            
            await queryInterface.bulkDelete('cost_centers', null, {});
            
            
            await queryInterface.bulkDelete('projects', null, {});
            
            
            await queryInterface.bulkDelete('contracts', null, {});
            
            
            await queryInterface.bulkDelete('cash_boxes', null, {});
            
            
            await queryInterface.bulkDelete('banks', null, {});
            
            
            await queryInterface.bulkDelete('bank_accounts', null, {});
            
            
            await queryInterface.bulkDelete('letters_of_credit', null, {});
            
            
            await queryInterface.bulkDelete('pos_terminals', null, {});
            
            
            await queryInterface.bulkDelete('sales_item_groups', null, {});
            
            
            await queryInterface.bulkDelete('warehouse_item_groups', null, {});
            
            
            await queryInterface.bulkDelete('customer_groups', null, {});
            
            
            await queryInterface.bulkDelete('analytic_dimensions', null, {});
            
            
            await queryInterface.bulkDelete('accounts', null, {});
            
            
            await queryInterface.bulkDelete('journal_voucher_types', null, {});
            
            
            await queryInterface.bulkDelete('journal_vouchers', null, {});
            
            
            await queryInterface.bulkDelete('journal_lines', null, {});
            
            
            await queryInterface.bulkDelete('approval_workflows', null, {});
            
            
            await queryInterface.bulkDelete('workflow_steps', null, {});
            
            
            await queryInterface.bulkDelete('voucher_approvals', null, {});
            
            
            await queryInterface.bulkDelete('year_end_operations', null, {});
            
            
            await queryInterface.bulkDelete('report_definitions', null, {});
            
            
            await queryInterface.bulkDelete('report_runs', null, {});
            
            
            await queryInterface.bulkDelete('chat_conversations', null, {});
            
            
            await queryInterface.bulkDelete('chat_participants', null, {});
            
            
            await queryInterface.bulkDelete('chat_messages', null, {});
            
            
            await queryInterface.bulkDelete('form_alarms', null, {});
            
            
            await queryInterface.bulkDelete('data_export_jobs', null, {});
            
        
    },
};