





















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






const RefreshTokens = db.refresh_tokens;

const Categories = db.categories;

const Locations = db.locations;

const Businesses = db.businesses;

const BusinessPhotos = db.business_photos;

const BusinessCategories = db.business_categories;

const ServicePrices = db.service_prices;

const BusinessBadges = db.business_badges;

const VerificationSubmissions = db.verification_submissions;

const VerificationEvidences = db.verification_evidences;

const Leads = db.leads;

const LeadPhotos = db.lead_photos;

const LeadMatches = db.lead_matches;

const Messages = db.messages;

const LeadEvents = db.lead_events;

const Reviews = db.reviews;

const Disputes = db.disputes;

const AuditLogs = db.audit_logs;

const BadgeRules = db.badge_rules;

const TrustAdjustments = db.trust_adjustments;







const RefreshTokensData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "token_hash": "Grace Hopper",
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "token_hash": "Alan Turing",
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "token_hash": "Grace Hopper",
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "token_hash": "Alan Turing",
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const CategoriesData = [
    
    {
    
        
        
            
                "name": "Plumbing",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "icon": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Electrical",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "icon": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "tenant_key": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Plumbing",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "icon": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "name": "Plumbing",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "icon": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const LocationsData = [
    
    {
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "state": "Grace Hopper",
            
        
    
        
        
            
                "zip": "Grace Hopper",
            
        
    
        
        
            
                "lat": 1.75,
            
        
    
        
        
            
                "lng": 8.05,
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "zip": "Ada Lovelace",
            
        
    
        
        
            
                "lat": 5.02,
            
        
    
        
        
            
                "lng": 9.5,
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "label": "Marie Curie",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "zip": "Alan Turing",
            
        
    
        
        
            
                "lat": 0.88,
            
        
    
        
        
            
                "lng": 1.04,
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "label": "Marie Curie",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Alan Turing",
            
        
    
        
        
            
                "zip": "Marie Curie",
            
        
    
        
        
            
                "lat": 1.03,
            
        
    
        
        
            
                "lng": 9.81,
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const BusinessesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Plumbing",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "website": "Grace Hopper",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "zip": "Ada Lovelace",
            
        
    
        
        
            
                "lat": 6.69,
            
        
    
        
        
            
                "lng": 8.91,
            
        
    
        
        
            
                "hours_json": "Ada Lovelace",
            
        
    
        
        
            
                "availability_status": "BOOKED_OUT",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "reliability_score": 9,
            
        
    
        
        
            
                "reliability_breakdown_json": "Grace Hopper",
            
        
    
        
        
            
                "response_time_median_minutes": 1,
            
        
    
        
        
            
                "tenant_key": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Electrical",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "website": "Marie Curie",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Grace Hopper",
            
        
    
        
        
            
                "zip": "Alan Turing",
            
        
    
        
        
            
                "lat": 5.13,
            
        
    
        
        
            
                "lng": 0.37,
            
        
    
        
        
            
                "hours_json": "Alan Turing",
            
        
    
        
        
            
                "availability_status": "BOOKED_OUT",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "reliability_score": 6,
            
        
    
        
        
            
                "reliability_breakdown_json": "Ada Lovelace",
            
        
    
        
        
            
                "response_time_median_minutes": 5,
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Electrical",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "website": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "zip": "Marie Curie",
            
        
    
        
        
            
                "lat": 5.07,
            
        
    
        
        
            
                "lng": 6.47,
            
        
    
        
        
            
                "hours_json": "Marie Curie",
            
        
    
        
        
            
                "availability_status": "BOOKED_OUT",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "reliability_score": 9,
            
        
    
        
        
            
                "reliability_breakdown_json": "Alan Turing",
            
        
    
        
        
            
                "response_time_median_minutes": 2,
            
        
    
        
        
            
                "tenant_key": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Plumbing",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "website": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Grace Hopper",
            
        
    
        
        
            
                "zip": "Grace Hopper",
            
        
    
        
        
            
                "lat": 3.47,
            
        
    
        
        
            
                "lng": 8.6,
            
        
    
        
        
            
                "hours_json": "Marie Curie",
            
        
    
        
        
            
                "availability_status": "AVAILABLE_TODAY",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "reliability_score": 3,
            
        
    
        
        
            
                "reliability_breakdown_json": "Alan Turing",
            
        
    
        
        
            
                "response_time_median_minutes": 6,
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const BusinessPhotosData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const BusinessCategoriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const ServicePricesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service_name": "Ada Lovelace",
            
        
    
        
        
            
                "min_price": 8.73,
            
        
    
        
        
            
                "max_price": 2.23,
            
        
    
        
        
            
                "typical_price": 0.33,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service_name": "Alan Turing",
            
        
    
        
        
            
                "min_price": 9.21,
            
        
    
        
        
            
                "max_price": 1.66,
            
        
    
        
        
            
                "typical_price": 7.05,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service_name": "Grace Hopper",
            
        
    
        
        
            
                "min_price": 9.27,
            
        
    
        
        
            
                "max_price": 6.42,
            
        
    
        
        
            
                "typical_price": 2.99,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "service_name": "Marie Curie",
            
        
    
        
        
            
                "min_price": 7.98,
            
        
    
        
        
            
                "max_price": 6.26,
            
        
    
        
        
            
                "typical_price": 5.58,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const BusinessBadgesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "VERIFIED_LICENSE",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "granted_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "FAST_RESPONDER",
            
        
    
        
        
            
                "status": "PENDING",
            
        
    
        
        
            
                "granted_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "VERIFIED_BUSINESS",
            
        
    
        
        
            
                "status": "PENDING",
            
        
    
        
        
            
                "granted_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "VERIFIED_LICENSE",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "granted_at": new Date(Date.now()),
            
        
    
        
        
            
                "revoked_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const VerificationSubmissionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "VERIFIED_BUSINESS",
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "admin_notes": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "FAST_RESPONDER",
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "admin_notes": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "VERIFIED_LICENSE",
            
        
    
        
        
            
                "status": "PENDING",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "admin_notes": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "badge_type": "VERIFIED_BUSINESS",
            
        
    
        
        
            
                "status": "APPROVED",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "admin_notes": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const VerificationEvidencesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "evidence_type": "OTHER",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "url": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "evidence_type": "BUSINESS_REGISTRATION",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "url": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "evidence_type": "LICENSE",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "url": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "evidence_type": "JOB_PROOF",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "url": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const LeadsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "keyword": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "urgency": "EMERGENCY",
            
        
    
        
        
            
                "status": "COMPLETED",
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "zip": "Marie Curie",
            
        
    
        
        
            
                "lat": 8.55,
            
        
    
        
        
            
                "lng": 4.26,
            
        
    
        
        
            
                "inferred_tags_json": "Alan Turing",
            
        
    
        
        
            
                "tenant_key": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "keyword": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "urgency": "TODAY",
            
        
    
        
        
            
                "status": "SCHEDULED",
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Grace Hopper",
            
        
    
        
        
            
                "zip": "Ada Lovelace",
            
        
    
        
        
            
                "lat": 9.91,
            
        
    
        
        
            
                "lng": 7.23,
            
        
    
        
        
            
                "inferred_tags_json": "Marie Curie",
            
        
    
        
        
            
                "tenant_key": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "keyword": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "urgency": "FLEXIBLE",
            
        
    
        
        
            
                "status": "MATCHED",
            
        
    
        
        
            
                "contact_name": "Ada Lovelace",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Alan Turing",
            
        
    
        
        
            
                "zip": "Alan Turing",
            
        
    
        
        
            
                "lat": 0.27,
            
        
    
        
        
            
                "lng": 2.8,
            
        
    
        
        
            
                "inferred_tags_json": "Alan Turing",
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "keyword": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "urgency": "THIS_WEEK",
            
        
    
        
        
            
                "status": "DECLINED",
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "address": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "zip": "Alan Turing",
            
        
    
        
        
            
                "lat": 3.06,
            
        
    
        
        
            
                "lng": 5.28,
            
        
    
        
        
            
                "inferred_tags_json": "Marie Curie",
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const LeadPhotosData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const LeadMatchesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "match_score": 4,
            
        
    
        
        
            
                "status": "VIEWED",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "declined_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "match_score": 1,
            
        
    
        
        
            
                "status": "COMPLETED",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "declined_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "match_score": 6,
            
        
    
        
        
            
                "status": "SCHEDULED",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "declined_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "match_score": 7,
            
        
    
        
        
            
                "status": "RESPONDED",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                "responded_at": new Date(Date.now()),
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "completed_at": new Date(Date.now()),
            
        
    
        
        
            
                "declined_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const MessagesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const LeadEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "MATCH_DECLINED",
            
        
    
        
        
            
                "from_value": "Ada Lovelace",
            
        
    
        
        
            
                "to_value": "Ada Lovelace",
            
        
    
        
        
            
                "meta_json": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "MATCH_DECLINED",
            
        
    
        
        
            
                "from_value": "Grace Hopper",
            
        
    
        
        
            
                "to_value": "Marie Curie",
            
        
    
        
        
            
                "meta_json": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "MATCH_SCHEDULED",
            
        
    
        
        
            
                "from_value": "Marie Curie",
            
        
    
        
        
            
                "to_value": "Alan Turing",
            
        
    
        
        
            
                "meta_json": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "MATCH_RESPONDED",
            
        
    
        
        
            
                "from_value": "Ada Lovelace",
            
        
    
        
        
            
                "to_value": "Ada Lovelace",
            
        
    
        
        
            
                "meta_json": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const ReviewsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 3,
            
        
    
        
        
            
                "text": "Ada Lovelace",
            
        
    
        
        
            
                "is_verified_job": true,
            
        
    
        
        
            
                "status": "HIDDEN",
            
        
    
        
        
            
                "moderation_notes": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 8,
            
        
    
        
        
            
                "text": "Grace Hopper",
            
        
    
        
        
            
                "is_verified_job": true,
            
        
    
        
        
            
                "status": "REJECTED",
            
        
    
        
        
            
                "moderation_notes": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 3,
            
        
    
        
        
            
                "text": "Marie Curie",
            
        
    
        
        
            
                "is_verified_job": false,
            
        
    
        
        
            
                "status": "PUBLISHED",
            
        
    
        
        
            
                "moderation_notes": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 6,
            
        
    
        
        
            
                "text": "Grace Hopper",
            
        
    
        
        
            
                "is_verified_job": true,
            
        
    
        
        
            
                "status": "HIDDEN",
            
        
    
        
        
            
                "moderation_notes": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const DisputesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "status": "UNDER_REVIEW",
            
        
    
        
        
            
                "resolution_notes": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Ada Lovelace",
            
        
    
        
        
            
                "status": "OPEN",
            
        
    
        
        
            
                "resolution_notes": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "status": "OPEN",
            
        
    
        
        
            
                "resolution_notes": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "reason": "Alan Turing",
            
        
    
        
        
            
                "status": "RESOLVED",
            
        
    
        
        
            
                "resolution_notes": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const AuditLogsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Grace Hopper",
            
        
    
        
        
            
                "entity_type": "Ada Lovelace",
            
        
    
        
        
            
                "entity_key": "Marie Curie",
            
        
    
        
        
            
                "meta_json": "Ada Lovelace",
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Ada Lovelace",
            
        
    
        
        
            
                "entity_type": "Ada Lovelace",
            
        
    
        
        
            
                "entity_key": "Grace Hopper",
            
        
    
        
        
            
                "meta_json": "Grace Hopper",
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Marie Curie",
            
        
    
        
        
            
                "entity_type": "Alan Turing",
            
        
    
        
        
            
                "entity_key": "Grace Hopper",
            
        
    
        
        
            
                "meta_json": "Ada Lovelace",
            
        
    
        
        
            
                "tenant_key": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "action": "Grace Hopper",
            
        
    
        
        
            
                "entity_type": "Grace Hopper",
            
        
    
        
        
            
                "entity_key": "Marie Curie",
            
        
    
        
        
            
                "meta_json": "Alan Turing",
            
        
    
        
        
            
                "tenant_key": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const BadgeRulesData = [
    
    {
    
        
        
            
                "badge_type": "VERIFIED_BUSINESS",
            
        
    
        
        
            
                "required_evidence_json": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "tenant_key": "Alan Turing",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "badge_type": "FAST_RESPONDER",
            
        
    
        
        
            
                "required_evidence_json": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "tenant_key": "Ada Lovelace",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "badge_type": "VERIFIED_INSURANCE",
            
        
    
        
        
            
                "required_evidence_json": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "badge_type": "VERIFIED_PRICING",
            
        
    
        
        
            
                "required_evidence_json": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "tenant_key": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
        
        
            
                "updated_at_ts": new Date(Date.now()),
            
        
    
    },
    
];



const TrustAdjustmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delta": 8,
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delta": 7,
            
        
    
        
        
            
                "reason": "Marie Curie",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delta": 8,
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delta": 6,
            
        
    
        
        
            
                "reason": "Grace Hopper",
            
        
    
        
        
            
                "created_at_ts": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

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

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBusinessWithOwner_user() {
            
                const relatedOwner_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Business0 = await Businesses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Business0?.setOwner_user)
                {
                    await
                    Business0.
                    setOwner_user(relatedOwner_user0);
                }
            
                const relatedOwner_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Business1 = await Businesses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Business1?.setOwner_user)
                {
                    await
                    Business1.
                    setOwner_user(relatedOwner_user1);
                }
            
                const relatedOwner_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Business2 = await Businesses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Business2?.setOwner_user)
                {
                    await
                    Business2.
                    setOwner_user(relatedOwner_user2);
                }
            
                const relatedOwner_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Business3 = await Businesses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Business3?.setOwner_user)
                {
                    await
                    Business3.
                    setOwner_user(relatedOwner_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBusinessPhotoWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessPhoto0 = await BusinessPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BusinessPhoto0?.setBusines)
                {
                    await
                    BusinessPhoto0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessPhoto1 = await BusinessPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BusinessPhoto1?.setBusines)
                {
                    await
                    BusinessPhoto1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessPhoto2 = await BusinessPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BusinessPhoto2?.setBusines)
                {
                    await
                    BusinessPhoto2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessPhoto3 = await BusinessPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BusinessPhoto3?.setBusines)
                {
                    await
                    BusinessPhoto3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateBusinessCategoryWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessCategory0 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BusinessCategory0?.setBusines)
                {
                    await
                    BusinessCategory0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessCategory1 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BusinessCategory1?.setBusines)
                {
                    await
                    BusinessCategory1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessCategory2 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BusinessCategory2?.setBusines)
                {
                    await
                    BusinessCategory2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessCategory3 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BusinessCategory3?.setBusines)
                {
                    await
                    BusinessCategory3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
            
            async function associateBusinessCategoryWithCategory() {
            
                const relatedCategory0 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const BusinessCategory0 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BusinessCategory0?.setCategory)
                {
                    await
                    BusinessCategory0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const BusinessCategory1 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BusinessCategory1?.setCategory)
                {
                    await
                    BusinessCategory1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const BusinessCategory2 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BusinessCategory2?.setCategory)
                {
                    await
                    BusinessCategory2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const BusinessCategory3 = await BusinessCategories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BusinessCategory3?.setCategory)
                {
                    await
                    BusinessCategory3.
                    setCategory(relatedCategory3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateServicePriceWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ServicePrice0 = await ServicePrices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ServicePrice0?.setBusines)
                {
                    await
                    ServicePrice0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ServicePrice1 = await ServicePrices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ServicePrice1?.setBusines)
                {
                    await
                    ServicePrice1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ServicePrice2 = await ServicePrices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ServicePrice2?.setBusines)
                {
                    await
                    ServicePrice2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const ServicePrice3 = await ServicePrices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ServicePrice3?.setBusines)
                {
                    await
                    ServicePrice3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateBusinessBadgeWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessBadge0 = await BusinessBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (BusinessBadge0?.setBusines)
                {
                    await
                    BusinessBadge0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessBadge1 = await BusinessBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (BusinessBadge1?.setBusines)
                {
                    await
                    BusinessBadge1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessBadge2 = await BusinessBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (BusinessBadge2?.setBusines)
                {
                    await
                    BusinessBadge2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const BusinessBadge3 = await BusinessBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (BusinessBadge3?.setBusines)
                {
                    await
                    BusinessBadge3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVerificationSubmissionWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const VerificationSubmission0 = await VerificationSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VerificationSubmission0?.setBusines)
                {
                    await
                    VerificationSubmission0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const VerificationSubmission1 = await VerificationSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VerificationSubmission1?.setBusines)
                {
                    await
                    VerificationSubmission1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const VerificationSubmission2 = await VerificationSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VerificationSubmission2?.setBusines)
                {
                    await
                    VerificationSubmission2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const VerificationSubmission3 = await VerificationSubmissions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VerificationSubmission3?.setBusines)
                {
                    await
                    VerificationSubmission3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVerificationEvidenceWithSubmission() {
            
                const relatedSubmission0 = await VerificationSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await VerificationSubmissions.count())),
                });
                const VerificationEvidence0 = await VerificationEvidences.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VerificationEvidence0?.setSubmission)
                {
                    await
                    VerificationEvidence0.
                    setSubmission(relatedSubmission0);
                }
            
                const relatedSubmission1 = await VerificationSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await VerificationSubmissions.count())),
                });
                const VerificationEvidence1 = await VerificationEvidences.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VerificationEvidence1?.setSubmission)
                {
                    await
                    VerificationEvidence1.
                    setSubmission(relatedSubmission1);
                }
            
                const relatedSubmission2 = await VerificationSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await VerificationSubmissions.count())),
                });
                const VerificationEvidence2 = await VerificationEvidences.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VerificationEvidence2?.setSubmission)
                {
                    await
                    VerificationEvidence2.
                    setSubmission(relatedSubmission2);
                }
            
                const relatedSubmission3 = await VerificationSubmissions.findOne({
                    offset: Math.floor(Math.random() * (await VerificationSubmissions.count())),
                });
                const VerificationEvidence3 = await VerificationEvidences.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VerificationEvidence3?.setSubmission)
                {
                    await
                    VerificationEvidence3.
                    setSubmission(relatedSubmission3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLeadWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Lead0 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Lead0?.setUser)
                {
                    await
                    Lead0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Lead1 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Lead1?.setUser)
                {
                    await
                    Lead1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Lead2 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Lead2?.setUser)
                {
                    await
                    Lead2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Lead3 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Lead3?.setUser)
                {
                    await
                    Lead3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateLeadWithCategory() {
            
                const relatedCategory0 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Lead0 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Lead0?.setCategory)
                {
                    await
                    Lead0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Lead1 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Lead1?.setCategory)
                {
                    await
                    Lead1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Lead2 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Lead2?.setCategory)
                {
                    await
                    Lead2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Lead3 = await Leads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Lead3?.setCategory)
                {
                    await
                    Lead3.
                    setCategory(relatedCategory3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLeadPhotoWithLead() {
            
                const relatedLead0 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadPhoto0 = await LeadPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeadPhoto0?.setLead)
                {
                    await
                    LeadPhoto0.
                    setLead(relatedLead0);
                }
            
                const relatedLead1 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadPhoto1 = await LeadPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeadPhoto1?.setLead)
                {
                    await
                    LeadPhoto1.
                    setLead(relatedLead1);
                }
            
                const relatedLead2 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadPhoto2 = await LeadPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeadPhoto2?.setLead)
                {
                    await
                    LeadPhoto2.
                    setLead(relatedLead2);
                }
            
                const relatedLead3 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadPhoto3 = await LeadPhotos.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeadPhoto3?.setLead)
                {
                    await
                    LeadPhoto3.
                    setLead(relatedLead3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateLeadMatcheWithLead() {
            
                const relatedLead0 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadMatche0 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeadMatche0?.setLead)
                {
                    await
                    LeadMatche0.
                    setLead(relatedLead0);
                }
            
                const relatedLead1 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadMatche1 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeadMatche1?.setLead)
                {
                    await
                    LeadMatche1.
                    setLead(relatedLead1);
                }
            
                const relatedLead2 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadMatche2 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeadMatche2?.setLead)
                {
                    await
                    LeadMatche2.
                    setLead(relatedLead2);
                }
            
                const relatedLead3 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadMatche3 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeadMatche3?.setLead)
                {
                    await
                    LeadMatche3.
                    setLead(relatedLead3);
                }
            
        }
        
    
        
            
            async function associateLeadMatcheWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LeadMatche0 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeadMatche0?.setBusines)
                {
                    await
                    LeadMatche0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LeadMatche1 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeadMatche1?.setBusines)
                {
                    await
                    LeadMatche1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LeadMatche2 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeadMatche2?.setBusines)
                {
                    await
                    LeadMatche2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const LeadMatche3 = await LeadMatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeadMatche3?.setBusines)
                {
                    await
                    LeadMatche3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateMessageWithLead() {
            
                const relatedLead0 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setLead)
                {
                    await
                    Message0.
                    setLead(relatedLead0);
                }
            
                const relatedLead1 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setLead)
                {
                    await
                    Message1.
                    setLead(relatedLead1);
                }
            
                const relatedLead2 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setLead)
                {
                    await
                    Message2.
                    setLead(relatedLead2);
                }
            
                const relatedLead3 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setLead)
                {
                    await
                    Message3.
                    setLead(relatedLead3);
                }
            
        }
        
    
        
            
            async function associateMessageWithSender_user() {
            
                const relatedSender_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setSender_user)
                {
                    await
                    Message0.
                    setSender_user(relatedSender_user0);
                }
            
                const relatedSender_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setSender_user)
                {
                    await
                    Message1.
                    setSender_user(relatedSender_user1);
                }
            
                const relatedSender_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setSender_user)
                {
                    await
                    Message2.
                    setSender_user(relatedSender_user2);
                }
            
                const relatedSender_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setSender_user)
                {
                    await
                    Message3.
                    setSender_user(relatedSender_user3);
                }
            
        }
        
    
        
            
            async function associateMessageWithReceiver_user() {
            
                const relatedReceiver_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message0 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Message0?.setReceiver_user)
                {
                    await
                    Message0.
                    setReceiver_user(relatedReceiver_user0);
                }
            
                const relatedReceiver_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message1 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Message1?.setReceiver_user)
                {
                    await
                    Message1.
                    setReceiver_user(relatedReceiver_user1);
                }
            
                const relatedReceiver_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message2 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Message2?.setReceiver_user)
                {
                    await
                    Message2.
                    setReceiver_user(relatedReceiver_user2);
                }
            
                const relatedReceiver_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Message3 = await Messages.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Message3?.setReceiver_user)
                {
                    await
                    Message3.
                    setReceiver_user(relatedReceiver_user3);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLeadEventWithLead() {
            
                const relatedLead0 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadEvent0 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeadEvent0?.setLead)
                {
                    await
                    LeadEvent0.
                    setLead(relatedLead0);
                }
            
                const relatedLead1 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadEvent1 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeadEvent1?.setLead)
                {
                    await
                    LeadEvent1.
                    setLead(relatedLead1);
                }
            
                const relatedLead2 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadEvent2 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeadEvent2?.setLead)
                {
                    await
                    LeadEvent2.
                    setLead(relatedLead2);
                }
            
                const relatedLead3 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const LeadEvent3 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeadEvent3?.setLead)
                {
                    await
                    LeadEvent3.
                    setLead(relatedLead3);
                }
            
        }
        
    
        
            
            async function associateLeadEventWithActor_user() {
            
                const relatedActor_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeadEvent0 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LeadEvent0?.setActor_user)
                {
                    await
                    LeadEvent0.
                    setActor_user(relatedActor_user0);
                }
            
                const relatedActor_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeadEvent1 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LeadEvent1?.setActor_user)
                {
                    await
                    LeadEvent1.
                    setActor_user(relatedActor_user1);
                }
            
                const relatedActor_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeadEvent2 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LeadEvent2?.setActor_user)
                {
                    await
                    LeadEvent2.
                    setActor_user(relatedActor_user2);
                }
            
                const relatedActor_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const LeadEvent3 = await LeadEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LeadEvent3?.setActor_user)
                {
                    await
                    LeadEvent3.
                    setActor_user(relatedActor_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateReviewWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setBusines)
                {
                    await
                    Review0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setBusines)
                {
                    await
                    Review1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setBusines)
                {
                    await
                    Review2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setBusines)
                {
                    await
                    Review3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
            
            async function associateReviewWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setUser)
                {
                    await
                    Review0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setUser)
                {
                    await
                    Review1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setUser)
                {
                    await
                    Review2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setUser)
                {
                    await
                    Review3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateReviewWithLead() {
            
                const relatedLead0 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setLead)
                {
                    await
                    Review0.
                    setLead(relatedLead0);
                }
            
                const relatedLead1 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setLead)
                {
                    await
                    Review1.
                    setLead(relatedLead1);
                }
            
                const relatedLead2 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setLead)
                {
                    await
                    Review2.
                    setLead(relatedLead2);
                }
            
                const relatedLead3 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setLead)
                {
                    await
                    Review3.
                    setLead(relatedLead3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDisputeWithLead() {
            
                const relatedLead0 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Dispute0 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Dispute0?.setLead)
                {
                    await
                    Dispute0.
                    setLead(relatedLead0);
                }
            
                const relatedLead1 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Dispute1 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Dispute1?.setLead)
                {
                    await
                    Dispute1.
                    setLead(relatedLead1);
                }
            
                const relatedLead2 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Dispute2 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Dispute2?.setLead)
                {
                    await
                    Dispute2.
                    setLead(relatedLead2);
                }
            
                const relatedLead3 = await Leads.findOne({
                    offset: Math.floor(Math.random() * (await Leads.count())),
                });
                const Dispute3 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Dispute3?.setLead)
                {
                    await
                    Dispute3.
                    setLead(relatedLead3);
                }
            
        }
        
    
        
            
            async function associateDisputeWithOpened_by_user() {
            
                const relatedOpened_by_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute0 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Dispute0?.setOpened_by_user)
                {
                    await
                    Dispute0.
                    setOpened_by_user(relatedOpened_by_user0);
                }
            
                const relatedOpened_by_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute1 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Dispute1?.setOpened_by_user)
                {
                    await
                    Dispute1.
                    setOpened_by_user(relatedOpened_by_user1);
                }
            
                const relatedOpened_by_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute2 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Dispute2?.setOpened_by_user)
                {
                    await
                    Dispute2.
                    setOpened_by_user(relatedOpened_by_user2);
                }
            
                const relatedOpened_by_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Dispute3 = await Disputes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Dispute3?.setOpened_by_user)
                {
                    await
                    Dispute3.
                    setOpened_by_user(relatedOpened_by_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAuditLogWithActor_user() {
            
                const relatedActor_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog0 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuditLog0?.setActor_user)
                {
                    await
                    AuditLog0.
                    setActor_user(relatedActor_user0);
                }
            
                const relatedActor_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog1 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuditLog1?.setActor_user)
                {
                    await
                    AuditLog1.
                    setActor_user(relatedActor_user1);
                }
            
                const relatedActor_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog2 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuditLog2?.setActor_user)
                {
                    await
                    AuditLog2.
                    setActor_user(relatedActor_user2);
                }
            
                const relatedActor_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuditLog3 = await AuditLogs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuditLog3?.setActor_user)
                {
                    await
                    AuditLog3.
                    setActor_user(relatedActor_user3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTrustAdjustmentWithBusines() {
            
                const relatedBusines0 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const TrustAdjustment0 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TrustAdjustment0?.setBusines)
                {
                    await
                    TrustAdjustment0.
                    setBusines(relatedBusines0);
                }
            
                const relatedBusines1 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const TrustAdjustment1 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TrustAdjustment1?.setBusines)
                {
                    await
                    TrustAdjustment1.
                    setBusines(relatedBusines1);
                }
            
                const relatedBusines2 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const TrustAdjustment2 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TrustAdjustment2?.setBusines)
                {
                    await
                    TrustAdjustment2.
                    setBusines(relatedBusines2);
                }
            
                const relatedBusines3 = await Businesses.findOne({
                    offset: Math.floor(Math.random() * (await Businesses.count())),
                });
                const TrustAdjustment3 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TrustAdjustment3?.setBusines)
                {
                    await
                    TrustAdjustment3.
                    setBusines(relatedBusines3);
                }
            
        }
        
    
        
            
            async function associateTrustAdjustmentWithAdmin_user() {
            
                const relatedAdmin_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrustAdjustment0 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TrustAdjustment0?.setAdmin_user)
                {
                    await
                    TrustAdjustment0.
                    setAdmin_user(relatedAdmin_user0);
                }
            
                const relatedAdmin_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrustAdjustment1 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TrustAdjustment1?.setAdmin_user)
                {
                    await
                    TrustAdjustment1.
                    setAdmin_user(relatedAdmin_user1);
                }
            
                const relatedAdmin_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrustAdjustment2 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TrustAdjustment2?.setAdmin_user)
                {
                    await
                    TrustAdjustment2.
                    setAdmin_user(relatedAdmin_user2);
                }
            
                const relatedAdmin_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const TrustAdjustment3 = await TrustAdjustments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TrustAdjustment3?.setAdmin_user)
                {
                    await
                    TrustAdjustment3.
                    setAdmin_user(relatedAdmin_user3);
                }
            
        }
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await RefreshTokens.bulkCreate(RefreshTokensData);
                
            
            
                
                await Categories.bulkCreate(CategoriesData);
                
            
            
                
                await Locations.bulkCreate(LocationsData);
                
            
            
                
                await Businesses.bulkCreate(BusinessesData);
                
            
            
                
                await BusinessPhotos.bulkCreate(BusinessPhotosData);
                
            
            
                
                await BusinessCategories.bulkCreate(BusinessCategoriesData);
                
            
            
                
                await ServicePrices.bulkCreate(ServicePricesData);
                
            
            
                
                await BusinessBadges.bulkCreate(BusinessBadgesData);
                
            
            
                
                await VerificationSubmissions.bulkCreate(VerificationSubmissionsData);
                
            
            
                
                await VerificationEvidences.bulkCreate(VerificationEvidencesData);
                
            
            
                
                await Leads.bulkCreate(LeadsData);
                
            
            
                
                await LeadPhotos.bulkCreate(LeadPhotosData);
                
            
            
                
                await LeadMatches.bulkCreate(LeadMatchesData);
                
            
            
                
                await Messages.bulkCreate(MessagesData);
                
            
            
                
                await LeadEvents.bulkCreate(LeadEventsData);
                
            
            
                
                await Reviews.bulkCreate(ReviewsData);
                
            
            
                
                await Disputes.bulkCreate(DisputesData);
                
            
            
                
                await AuditLogs.bulkCreate(AuditLogsData);
                
            
            
                
                await BadgeRules.bulkCreate(BadgeRulesData);
                
            
            
                
                await TrustAdjustments.bulkCreate(TrustAdjustmentsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associateRefreshTokenWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBusinessWithOwner_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBusinessPhotoWithBusines(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBusinessCategoryWithBusines(),
                    
                
                    
                        
                        await associateBusinessCategoryWithCategory(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateServicePriceWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateBusinessBadgeWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVerificationSubmissionWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVerificationEvidenceWithSubmission(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeadWithUser(),
                    
                
                    
                        
                        await associateLeadWithCategory(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeadPhotoWithLead(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeadMatcheWithLead(),
                    
                
                    
                        
                        await associateLeadMatcheWithBusines(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateMessageWithLead(),
                    
                
                    
                        
                        await associateMessageWithSender_user(),
                    
                
                    
                        
                        await associateMessageWithReceiver_user(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLeadEventWithLead(),
                    
                
                    
                        
                        await associateLeadEventWithActor_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReviewWithBusines(),
                    
                
                    
                        
                        await associateReviewWithUser(),
                    
                
                    
                        
                        await associateReviewWithLead(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDisputeWithLead(),
                    
                
                    
                        
                        await associateDisputeWithOpened_by_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAuditLogWithActor_user(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTrustAdjustmentWithBusines(),
                    
                
                    
                        
                        await associateTrustAdjustmentWithAdmin_user(),
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('refresh_tokens', null, {});
            
            
            await queryInterface.bulkDelete('categories', null, {});
            
            
            await queryInterface.bulkDelete('locations', null, {});
            
            
            await queryInterface.bulkDelete('businesses', null, {});
            
            
            await queryInterface.bulkDelete('business_photos', null, {});
            
            
            await queryInterface.bulkDelete('business_categories', null, {});
            
            
            await queryInterface.bulkDelete('service_prices', null, {});
            
            
            await queryInterface.bulkDelete('business_badges', null, {});
            
            
            await queryInterface.bulkDelete('verification_submissions', null, {});
            
            
            await queryInterface.bulkDelete('verification_evidences', null, {});
            
            
            await queryInterface.bulkDelete('leads', null, {});
            
            
            await queryInterface.bulkDelete('lead_photos', null, {});
            
            
            await queryInterface.bulkDelete('lead_matches', null, {});
            
            
            await queryInterface.bulkDelete('messages', null, {});
            
            
            await queryInterface.bulkDelete('lead_events', null, {});
            
            
            await queryInterface.bulkDelete('reviews', null, {});
            
            
            await queryInterface.bulkDelete('disputes', null, {});
            
            
            await queryInterface.bulkDelete('audit_logs', null, {});
            
            
            await queryInterface.bulkDelete('badge_rules', null, {});
            
            
            await queryInterface.bulkDelete('trust_adjustments', null, {});
            
        
    },
};