





















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






const DeveloperApiKeys = db.developer_api_keys;

const Addresses = db.addresses;

const Categories = db.categories;

const Brands = db.brands;

const Suppliers = db.suppliers;

const Products = db.products;

const ProductVariants = db.product_variants;

const Collections = db.collections;

const ProductReviews = db.product_reviews;

const WishlistItems = db.wishlist_items;

const CompareLists = db.compare_lists;

const CompareItems = db.compare_items;

const Carts = db.carts;

const CartItems = db.cart_items;

const Orders = db.orders;

const OrderItems = db.order_items;

const ShippingCarriers = db.shipping_carriers;

const Shipments = db.shipments;

const Payments = db.payments;

const Coupons = db.coupons;

const CouponRedemptions = db.coupon_redemptions;

const LoyaltySettings = db.loyalty_settings;

const PointLedgerEntries = db.point_ledger_entries;

const FrequentlyBoughtTogetherGroups = db.frequently_bought_together_groups;

const FrequentlyBoughtTogetherItems = db.frequently_bought_together_items;

const AdPlacements = db.ad_placements;

const Ads = db.ads;

const AdEvents = db.ad_events;

const SiteSettings = db.site_settings;

const FooterContentBlocks = db.footer_content_blocks;

const SocialLinks = db.social_links;

const FooterLinks = db.footer_links;

const PaymentBadges = db.payment_badges;

const NewsletterSubscribers = db.newsletter_subscribers;

const CmsPages = db.cms_pages;

const PushNotifications = db.push_notifications;

const PushSubscriptions = db.push_subscriptions;

const SeoEntries = db.seo_entries;







const DeveloperApiKeysData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key_prefix": "Marie Curie",
            
        
    
        
        
            
                "key_hash": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "key_prefix": "Alan Turing",
            
        
    
        
        
            
                "key_hash": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "key_prefix": "Alan Turing",
            
        
    
        
        
            
                "key_hash": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "key_prefix": "Alan Turing",
            
        
    
        
        
            
                "key_hash": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "key_prefix": "Grace Hopper",
            
        
    
        
        
            
                "key_hash": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const AddressesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "recipient_name": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "governorate": "Alan Turing",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "district": "Alan Turing",
            
        
    
        
        
            
                "street_address": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Marie Curie",
            
        
    
        
        
            
                "recipient_name": "Marie Curie",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "governorate": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "district": "Marie Curie",
            
        
    
        
        
            
                "street_address": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "is_default": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "recipient_name": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "governorate": "Marie Curie",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "district": "Marie Curie",
            
        
    
        
        
            
                "street_address": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "recipient_name": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "governorate": "Alan Turing",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "district": "Ada Lovelace",
            
        
    
        
        
            
                "street_address": "Marie Curie",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "recipient_name": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "governorate": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "district": "Ada Lovelace",
            
        
    
        
        
            
                "street_address": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "is_default": false,
            
        
    
    },
    
];



const CategoriesData = [
    
    {
    
        
        
            
                "name_ar": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "description_ar": "Grace Hopper",
            
        
    
        
        
            
                "description_en": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description_ar": "Grace Hopper",
            
        
    
        
        
            
                "description_en": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description_ar": "Alan Turing",
            
        
    
        
        
            
                "description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Alan Turing",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description_ar": "Alan Turing",
            
        
    
        
        
            
                "description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Grace Hopper",
            
        
    
        
        
            
                "name_en": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description_ar": "Alan Turing",
            
        
    
        
        
            
                "description_en": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



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



const SuppliersData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const ProductsData = [
    
    {
    
        
        
            
                "name_ar": "Marie Curie",
            
        
    
        
        
            
                "name_en": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "short_description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "short_description_en": "Grace Hopper",
            
        
    
        
        
            
                "description_ar": "Grace Hopper",
            
        
    
        
        
            
                "description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sku": "Grace Hopper",
            
        
    
        
        
            
                "barcode": "Alan Turing",
            
        
    
        
        
            
                "price_iqd": 8.85,
            
        
    
        
        
            
                "compare_at_price_iqd": 4.54,
            
        
    
        
        
            
                "cost_iqd": 6.63,
            
        
    
        
        
            
                "stock_on_hand": 8,
            
        
    
        
        
            
                "low_stock_threshold": 8,
            
        
    
        
        
            
                "track_inventory": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "condition": "used",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Ada Lovelace",
            
        
    
        
        
            
                "name_en": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "short_description_ar": "Marie Curie",
            
        
    
        
        
            
                "short_description_en": "Marie Curie",
            
        
    
        
        
            
                "description_ar": "Grace Hopper",
            
        
    
        
        
            
                "description_en": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sku": "Ada Lovelace",
            
        
    
        
        
            
                "barcode": "Alan Turing",
            
        
    
        
        
            
                "price_iqd": 5.97,
            
        
    
        
        
            
                "compare_at_price_iqd": 7.52,
            
        
    
        
        
            
                "cost_iqd": 6.38,
            
        
    
        
        
            
                "stock_on_hand": 7,
            
        
    
        
        
            
                "low_stock_threshold": 5,
            
        
    
        
        
            
                "track_inventory": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "is_featured": true,
            
        
    
        
        
            
                "condition": "used",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Alan Turing",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "short_description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "short_description_en": "Grace Hopper",
            
        
    
        
        
            
                "description_ar": "Grace Hopper",
            
        
    
        
        
            
                "description_en": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "barcode": "Marie Curie",
            
        
    
        
        
            
                "price_iqd": 1.66,
            
        
    
        
        
            
                "compare_at_price_iqd": 4.23,
            
        
    
        
        
            
                "cost_iqd": 8.82,
            
        
    
        
        
            
                "stock_on_hand": 3,
            
        
    
        
        
            
                "low_stock_threshold": 8,
            
        
    
        
        
            
                "track_inventory": true,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "is_featured": true,
            
        
    
        
        
            
                "condition": "new",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Ada Lovelace",
            
        
    
        
        
            
                "name_en": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "short_description_ar": "Alan Turing",
            
        
    
        
        
            
                "short_description_en": "Marie Curie",
            
        
    
        
        
            
                "description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "description_en": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sku": "Grace Hopper",
            
        
    
        
        
            
                "barcode": "Ada Lovelace",
            
        
    
        
        
            
                "price_iqd": 4.49,
            
        
    
        
        
            
                "compare_at_price_iqd": 0.81,
            
        
    
        
        
            
                "cost_iqd": 8.35,
            
        
    
        
        
            
                "stock_on_hand": 8,
            
        
    
        
        
            
                "low_stock_threshold": 8,
            
        
    
        
        
            
                "track_inventory": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "condition": "new",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Marie Curie",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "short_description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "short_description_en": "Alan Turing",
            
        
    
        
        
            
                "description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "barcode": "Ada Lovelace",
            
        
    
        
        
            
                "price_iqd": 9.36,
            
        
    
        
        
            
                "compare_at_price_iqd": 8.88,
            
        
    
        
        
            
                "cost_iqd": 5.04,
            
        
    
        
        
            
                "stock_on_hand": 4,
            
        
    
        
        
            
                "low_stock_threshold": 4,
            
        
    
        
        
            
                "track_inventory": true,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "condition": "new",
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const ProductVariantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "price_iqd": 7.22,
            
        
    
        
        
            
                "stock_on_hand": 9,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "attributes_json": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "sku": "Marie Curie",
            
        
    
        
        
            
                "price_iqd": 7.92,
            
        
    
        
        
            
                "stock_on_hand": 8,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "attributes_json": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "sku": "Marie Curie",
            
        
    
        
        
            
                "price_iqd": 6.71,
            
        
    
        
        
            
                "stock_on_hand": 5,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "attributes_json": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "sku": "Ada Lovelace",
            
        
    
        
        
            
                "price_iqd": 6.9,
            
        
    
        
        
            
                "stock_on_hand": 9,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "attributes_json": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "sku": "Ada Lovelace",
            
        
    
        
        
            
                "price_iqd": 3.27,
            
        
    
        
        
            
                "stock_on_hand": 9,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "attributes_json": "Grace Hopper",
            
        
    
    },
    
];



const CollectionsData = [
    
    {
    
        
        
            
                "name_ar": "Marie Curie",
            
        
    
        
        
            
                "name_en": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description_ar": "Alan Turing",
            
        
    
        
        
            
                "description_en": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Alan Turing",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "description_en": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Alan Turing",
            
        
    
        
        
            
                "name_en": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description_ar": "Grace Hopper",
            
        
    
        
        
            
                "description_en": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Alan Turing",
            
        
    
        
        
            
                "name_en": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name_ar": "Ada Lovelace",
            
        
    
        
        
            
                "name_en": "Marie Curie",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description_ar": "Grace Hopper",
            
        
    
        
        
            
                "description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const ProductReviewsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_approved": true,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_approved": true,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 9,
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_approved": true,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_approved": false,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 1,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "is_approved": false,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
];



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



const CompareListsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "last_viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "last_viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "last_viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "last_viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "last_viewed_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



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



const CartsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_key": "Alan Turing",
            
        
    
        
        
            
                "status": "converted",
            
        
    
        
        
            
                "subtotal_iqd": 0.94,
            
        
    
        
        
            
                "discount_total_iqd": 7.46,
            
        
    
        
        
            
                "shipping_total_iqd": 1.46,
            
        
    
        
        
            
                "grand_total_iqd": 1.94,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_key": "Ada Lovelace",
            
        
    
        
        
            
                "status": "abandoned",
            
        
    
        
        
            
                "subtotal_iqd": 8.14,
            
        
    
        
        
            
                "discount_total_iqd": 9.38,
            
        
    
        
        
            
                "shipping_total_iqd": 1.4,
            
        
    
        
        
            
                "grand_total_iqd": 0.22,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_key": "Grace Hopper",
            
        
    
        
        
            
                "status": "converted",
            
        
    
        
        
            
                "subtotal_iqd": 4.46,
            
        
    
        
        
            
                "discount_total_iqd": 3.25,
            
        
    
        
        
            
                "shipping_total_iqd": 5.18,
            
        
    
        
        
            
                "grand_total_iqd": 5.68,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_key": "Alan Turing",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "subtotal_iqd": 1.78,
            
        
    
        
        
            
                "discount_total_iqd": 9.39,
            
        
    
        
        
            
                "shipping_total_iqd": 1.77,
            
        
    
        
        
            
                "grand_total_iqd": 3.36,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "session_key": "Alan Turing",
            
        
    
        
        
            
                "status": "abandoned",
            
        
    
        
        
            
                "subtotal_iqd": 2.52,
            
        
    
        
        
            
                "discount_total_iqd": 2.75,
            
        
    
        
        
            
                "shipping_total_iqd": 1.32,
            
        
    
        
        
            
                "grand_total_iqd": 4.67,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const CartItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 2,
            
        
    
        
        
            
                "unit_price_iqd": 8.43,
            
        
    
        
        
            
                "line_total_iqd": 7.13,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 3,
            
        
    
        
        
            
                "unit_price_iqd": 2.03,
            
        
    
        
        
            
                "line_total_iqd": 0.25,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 9,
            
        
    
        
        
            
                "unit_price_iqd": 9.08,
            
        
    
        
        
            
                "line_total_iqd": 0.7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price_iqd": 2.68,
            
        
    
        
        
            
                "line_total_iqd": 7.28,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 7,
            
        
    
        
        
            
                "unit_price_iqd": 0.74,
            
        
    
        
        
            
                "line_total_iqd": 8.34,
            
        
    
    },
    
];



const OrdersData = [
    
    {
    
        
        
            
                "order_number": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "payment_status": "unpaid",
            
        
    
        
        
            
                "fulfillment_status": "fulfilled",
            
        
    
        
        
            
                "subtotal_iqd": 1.93,
            
        
    
        
        
            
                "discount_total_iqd": 9.14,
            
        
    
        
        
            
                "shipping_total_iqd": 7.95,
            
        
    
        
        
            
                "grand_total_iqd": 4.88,
            
        
    
        
        
            
                "customer_note": "Ada Lovelace",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "order_number": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "shipped",
            
        
    
        
        
            
                "payment_status": "unpaid",
            
        
    
        
        
            
                "fulfillment_status": "partially_fulfilled",
            
        
    
        
        
            
                "subtotal_iqd": 9.94,
            
        
    
        
        
            
                "discount_total_iqd": 0.16,
            
        
    
        
        
            
                "shipping_total_iqd": 6.51,
            
        
    
        
        
            
                "grand_total_iqd": 0.23,
            
        
    
        
        
            
                "customer_note": "Marie Curie",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "order_number": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "payment_status": "unpaid",
            
        
    
        
        
            
                "fulfillment_status": "partially_fulfilled",
            
        
    
        
        
            
                "subtotal_iqd": 3.12,
            
        
    
        
        
            
                "discount_total_iqd": 9.06,
            
        
    
        
        
            
                "shipping_total_iqd": 1.03,
            
        
    
        
        
            
                "grand_total_iqd": 6.82,
            
        
    
        
        
            
                "customer_note": "Ada Lovelace",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "order_number": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "payment_status": "refunded",
            
        
    
        
        
            
                "fulfillment_status": "unfulfilled",
            
        
    
        
        
            
                "subtotal_iqd": 1.26,
            
        
    
        
        
            
                "discount_total_iqd": 0.45,
            
        
    
        
        
            
                "shipping_total_iqd": 3.23,
            
        
    
        
        
            
                "grand_total_iqd": 1.29,
            
        
    
        
        
            
                "customer_note": "Grace Hopper",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "order_number": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "confirmed",
            
        
    
        
        
            
                "payment_status": "unpaid",
            
        
    
        
        
            
                "fulfillment_status": "fulfilled",
            
        
    
        
        
            
                "subtotal_iqd": 8.57,
            
        
    
        
        
            
                "discount_total_iqd": 7.45,
            
        
    
        
        
            
                "shipping_total_iqd": 6.84,
            
        
    
        
        
            
                "grand_total_iqd": 7.94,
            
        
    
        
        
            
                "customer_note": "Marie Curie",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const OrderItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name_snapshot": "Alan Turing",
            
        
    
        
        
            
                "unit_price_iqd": 5.27,
            
        
    
        
        
            
                "quantity": 6,
            
        
    
        
        
            
                "line_total_iqd": 1.09,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name_snapshot": "Ada Lovelace",
            
        
    
        
        
            
                "unit_price_iqd": 6.17,
            
        
    
        
        
            
                "quantity": 8,
            
        
    
        
        
            
                "line_total_iqd": 3.49,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name_snapshot": "Alan Turing",
            
        
    
        
        
            
                "unit_price_iqd": 5.76,
            
        
    
        
        
            
                "quantity": 4,
            
        
    
        
        
            
                "line_total_iqd": 5.0,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name_snapshot": "Grace Hopper",
            
        
    
        
        
            
                "unit_price_iqd": 7.45,
            
        
    
        
        
            
                "quantity": 5,
            
        
    
        
        
            
                "line_total_iqd": 0.66,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name_snapshot": "Alan Turing",
            
        
    
        
        
            
                "unit_price_iqd": 0.91,
            
        
    
        
        
            
                "quantity": 5,
            
        
    
        
        
            
                "line_total_iqd": 9.54,
            
        
    
    },
    
];



const ShippingCarriersData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "tracking_url_template": "Alan Turing",
            
        
    
        
        
            
                "support_phone": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tracking_url_template": "Ada Lovelace",
            
        
    
        
        
            
                "support_phone": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "tracking_url_template": "Ada Lovelace",
            
        
    
        
        
            
                "support_phone": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "tracking_url_template": "Marie Curie",
            
        
    
        
        
            
                "support_phone": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tracking_url_template": "Grace Hopper",
            
        
    
        
        
            
                "support_phone": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const ShipmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tracking_number": "Grace Hopper",
            
        
    
        
        
            
                "status": "in_transit",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "shipping_cost_iqd": 3.85,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tracking_number": "Alan Turing",
            
        
    
        
        
            
                "status": "out_for_delivery",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "shipping_cost_iqd": 8.94,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tracking_number": "Ada Lovelace",
            
        
    
        
        
            
                "status": "delivered",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "shipping_cost_iqd": 3.97,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tracking_number": "Ada Lovelace",
            
        
    
        
        
            
                "status": "delivered",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "shipping_cost_iqd": 2.27,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tracking_number": "Ada Lovelace",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
        
        
            
                "shipping_cost_iqd": 4.47,
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "bank_transfer",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "amount_iqd": 3.9,
            
        
    
        
        
            
                "provider_reference": "Grace Hopper",
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "zain_cash",
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "amount_iqd": 4.21,
            
        
    
        
        
            
                "provider_reference": "Marie Curie",
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "cash_on_delivery",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "amount_iqd": 9.15,
            
        
    
        
        
            
                "provider_reference": "Alan Turing",
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "cash_on_delivery",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "amount_iqd": 2.43,
            
        
    
        
        
            
                "provider_reference": "Alan Turing",
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "cash_on_delivery",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "amount_iqd": 3.21,
            
        
    
        
        
            
                "provider_reference": "Marie Curie",
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
    },
    
];



const CouponsData = [
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "discount_type": "percentage",
            
        
    
        
        
            
                "discount_value": 4.64,
            
        
    
        
        
            
                "min_order_total_iqd": 7.24,
            
        
    
        
        
            
                "usage_limit_total": 4,
            
        
    
        
        
            
                "usage_limit_per_user": 2,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "discount_type": "fixed_amount",
            
        
    
        
        
            
                "discount_value": 2.55,
            
        
    
        
        
            
                "min_order_total_iqd": 7.95,
            
        
    
        
        
            
                "usage_limit_total": 5,
            
        
    
        
        
            
                "usage_limit_per_user": 5,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "discount_type": "fixed_amount",
            
        
    
        
        
            
                "discount_value": 9.67,
            
        
    
        
        
            
                "min_order_total_iqd": 5.62,
            
        
    
        
        
            
                "usage_limit_total": 3,
            
        
    
        
        
            
                "usage_limit_per_user": 8,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "discount_type": "fixed_amount",
            
        
    
        
        
            
                "discount_value": 3.41,
            
        
    
        
        
            
                "min_order_total_iqd": 7.29,
            
        
    
        
        
            
                "usage_limit_total": 9,
            
        
    
        
        
            
                "usage_limit_per_user": 4,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "discount_type": "percentage",
            
        
    
        
        
            
                "discount_value": 1.41,
            
        
    
        
        
            
                "min_order_total_iqd": 1.55,
            
        
    
        
        
            
                "usage_limit_total": 8,
            
        
    
        
        
            
                "usage_limit_per_user": 7,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



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



const LoyaltySettingsData = [
    
    {
    
        
        
            
                "earn_rate_percent": 0.57,
            
        
    
        
        
            
                "redeem_value_per_point_iqd": 6.59,
            
        
    
        
        
            
                "min_points_to_redeem": 9,
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                "earn_rate_percent": 7.05,
            
        
    
        
        
            
                "redeem_value_per_point_iqd": 5.99,
            
        
    
        
        
            
                "min_points_to_redeem": 5,
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                "earn_rate_percent": 4.42,
            
        
    
        
        
            
                "redeem_value_per_point_iqd": 7.86,
            
        
    
        
        
            
                "min_points_to_redeem": 6,
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                "earn_rate_percent": 8.61,
            
        
    
        
        
            
                "redeem_value_per_point_iqd": 2.34,
            
        
    
        
        
            
                "min_points_to_redeem": 9,
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                "earn_rate_percent": 6.23,
            
        
    
        
        
            
                "redeem_value_per_point_iqd": 7.23,
            
        
    
        
        
            
                "min_points_to_redeem": 4,
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
    },
    
];



const PointLedgerEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "adjustment",
            
        
    
        
        
            
                "points": 2,
            
        
    
        
        
            
                "note": "Grace Hopper",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "adjustment",
            
        
    
        
        
            
                "points": 4,
            
        
    
        
        
            
                "note": "Marie Curie",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "adjustment",
            
        
    
        
        
            
                "points": 8,
            
        
    
        
        
            
                "note": "Alan Turing",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "redeem",
            
        
    
        
        
            
                "points": 1,
            
        
    
        
        
            
                "note": "Grace Hopper",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "entry_type": "adjustment",
            
        
    
        
        
            
                "points": 8,
            
        
    
        
        
            
                "note": "Marie Curie",
            
        
    
        
        
            
                "posted_at": new Date(Date.now()),
            
        
    
    },
    
];



const FrequentlyBoughtTogetherGroupsData = [
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const FrequentlyBoughtTogetherItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
        
        
            
                "bundle_discount_percent": 8.56,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "bundle_discount_percent": 6.03,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                "bundle_discount_percent": 1.03,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                "bundle_discount_percent": 6.68,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
        
        
            
                "bundle_discount_percent": 3.56,
            
        
    
    },
    
];



const AdPlacementsData = [
    
    {
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "placement_type": "footer_banner",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "placement_type": "between_sections",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "placement_type": "adsense",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Marie Curie",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "placement_type": "top_strip",
            
        
    
        
        
            
                "is_enabled": false,
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "key": "Ada Lovelace",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "placement_type": "footer_banner",
            
        
    
        
        
            
                "is_enabled": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const AdsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "ad_type": "promotional_text",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "promotional_text": "Marie Curie",
            
        
    
        
        
            
                "custom_code": "Ada Lovelace",
            
        
    
        
        
            
                "destination_url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions_count": 9,
            
        
    
        
        
            
                "clicks_count": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "ad_type": "image",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "promotional_text": "Marie Curie",
            
        
    
        
        
            
                "custom_code": "Marie Curie",
            
        
    
        
        
            
                "destination_url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions_count": 9,
            
        
    
        
        
            
                "clicks_count": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "ad_type": "custom_code",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "promotional_text": "Alan Turing",
            
        
    
        
        
            
                "custom_code": "Alan Turing",
            
        
    
        
        
            
                "destination_url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions_count": 1,
            
        
    
        
        
            
                "clicks_count": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "ad_type": "image",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "promotional_text": "Alan Turing",
            
        
    
        
        
            
                "custom_code": "Grace Hopper",
            
        
    
        
        
            
                "destination_url": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions_count": 4,
            
        
    
        
        
            
                "clicks_count": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "ad_type": "promotional_text",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "promotional_text": "Grace Hopper",
            
        
    
        
        
            
                "custom_code": "Grace Hopper",
            
        
    
        
        
            
                "destination_url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "impressions_count": 2,
            
        
    
        
        
            
                "clicks_count": 5,
            
        
    
    },
    
];



const AdEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "click",
            
        
    
        
        
            
                "page_path": "Marie Curie",
            
        
    
        
        
            
                "referrer": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "ip_hash": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "click",
            
        
    
        
        
            
                "page_path": "Alan Turing",
            
        
    
        
        
            
                "referrer": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "ip_hash": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "click",
            
        
    
        
        
            
                "page_path": "Ada Lovelace",
            
        
    
        
        
            
                "referrer": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Marie Curie",
            
        
    
        
        
            
                "ip_hash": "Alan Turing",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "impression",
            
        
    
        
        
            
                "page_path": "Grace Hopper",
            
        
    
        
        
            
                "referrer": "Grace Hopper",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
        
        
            
                "ip_hash": "Ada Lovelace",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "click",
            
        
    
        
        
            
                "page_path": "Marie Curie",
            
        
    
        
        
            
                "referrer": "Ada Lovelace",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "ip_hash": "Grace Hopper",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
    },
    
];



const SiteSettingsData = [
    
    {
    
        
        
            
                "store_name": "Ada Lovelace",
            
        
    
        
        
            
                "default_language": "Alan Turing",
            
        
    
        
        
            
                "default_currency": "Grace Hopper",
            
        
    
        
        
            
                "rtl_enabled": false,
            
        
    
        
        
            
                "adsense_head_code": "Ada Lovelace",
            
        
    
        
        
            
                "footer_bottom_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_enabled": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_text": "Grace Hopper",
            
        
    
        
        
            
                "footer_partner_banner_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "store_name": "Alan Turing",
            
        
    
        
        
            
                "default_language": "Marie Curie",
            
        
    
        
        
            
                "default_currency": "Grace Hopper",
            
        
    
        
        
            
                "rtl_enabled": true,
            
        
    
        
        
            
                "adsense_head_code": "Grace Hopper",
            
        
    
        
        
            
                "footer_bottom_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_enabled": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_text": "Alan Turing",
            
        
    
        
        
            
                "footer_partner_banner_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "store_name": "Ada Lovelace",
            
        
    
        
        
            
                "default_language": "Ada Lovelace",
            
        
    
        
        
            
                "default_currency": "Ada Lovelace",
            
        
    
        
        
            
                "rtl_enabled": true,
            
        
    
        
        
            
                "adsense_head_code": "Grace Hopper",
            
        
    
        
        
            
                "footer_bottom_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_enabled": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_text": "Marie Curie",
            
        
    
        
        
            
                "footer_partner_banner_url": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "store_name": "Marie Curie",
            
        
    
        
        
            
                "default_language": "Grace Hopper",
            
        
    
        
        
            
                "default_currency": "Ada Lovelace",
            
        
    
        
        
            
                "rtl_enabled": true,
            
        
    
        
        
            
                "adsense_head_code": "Grace Hopper",
            
        
    
        
        
            
                "footer_bottom_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_enabled": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_text": "Ada Lovelace",
            
        
    
        
        
            
                "footer_partner_banner_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "store_name": "Grace Hopper",
            
        
    
        
        
            
                "default_language": "Marie Curie",
            
        
    
        
        
            
                "default_currency": "Grace Hopper",
            
        
    
        
        
            
                "rtl_enabled": false,
            
        
    
        
        
            
                "adsense_head_code": "Ada Lovelace",
            
        
    
        
        
            
                "footer_bottom_text": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_enabled": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_partner_banner_text": "Ada Lovelace",
            
        
    
        
        
            
                "footer_partner_banner_url": "Alan Turing",
            
        
    
    },
    
];



const FooterContentBlocksData = [
    
    {
    
        
        
            
                "store_description_ar": "Marie Curie",
            
        
    
        
        
            
                "store_description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "store_description_ar": "Ada Lovelace",
            
        
    
        
        
            
                "store_description_en": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "store_description_ar": "Grace Hopper",
            
        
    
        
        
            
                "store_description_en": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "store_description_ar": "Grace Hopper",
            
        
    
        
        
            
                "store_description_en": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "store_description_ar": "Marie Curie",
            
        
    
        
        
            
                "store_description_en": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const SocialLinksData = [
    
    {
    
        
        
            
                "platform": "tiktok",
            
        
    
        
        
            
                "url": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "platform": "instagram",
            
        
    
        
        
            
                "url": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "platform": "facebook",
            
        
    
        
        
            
                "url": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "platform": "instagram",
            
        
    
        
        
            
                "url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "platform": "snapchat",
            
        
    
        
        
            
                "url": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const FooterLinksData = [
    
    {
    
        
        
            
                "link_group": "quick_links",
            
        
    
        
        
            
                "label_ar": "Alan Turing",
            
        
    
        
        
            
                "label_en": "Grace Hopper",
            
        
    
        
        
            
                "href": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "link_group": "quick_links",
            
        
    
        
        
            
                "label_ar": "Marie Curie",
            
        
    
        
        
            
                "label_en": "Alan Turing",
            
        
    
        
        
            
                "href": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "link_group": "quick_links",
            
        
    
        
        
            
                "label_ar": "Marie Curie",
            
        
    
        
        
            
                "label_en": "Alan Turing",
            
        
    
        
        
            
                "href": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "link_group": "quick_links",
            
        
    
        
        
            
                "label_ar": "Ada Lovelace",
            
        
    
        
        
            
                "label_en": "Grace Hopper",
            
        
    
        
        
            
                "href": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "link_group": "quick_links",
            
        
    
        
        
            
                "label_ar": "Alan Turing",
            
        
    
        
        
            
                "label_en": "Grace Hopper",
            
        
    
        
        
            
                "href": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentBadgesData = [
    
    {
    
        
        
            
                "method": "cash_on_delivery",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "label": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "method": "paypal",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "method": "paypal",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "method": "paypal",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "method": "paypal",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "label": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const NewsletterSubscribersData = [
    
    {
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "is_confirmed": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "is_confirmed": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "is_confirmed": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
];



const CmsPagesData = [
    
    {
    
        
        
            
                "page_key": "faqs",
            
        
    
        
        
            
                "title_ar": "Marie Curie",
            
        
    
        
        
            
                "title_en": "Ada Lovelace",
            
        
    
        
        
            
                "content_ar": "Ada Lovelace",
            
        
    
        
        
            
                "content_en": "Marie Curie",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "page_key": "faqs",
            
        
    
        
        
            
                "title_ar": "Grace Hopper",
            
        
    
        
        
            
                "title_en": "Alan Turing",
            
        
    
        
        
            
                "content_ar": "Alan Turing",
            
        
    
        
        
            
                "content_en": "Ada Lovelace",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "page_key": "privacy_policy",
            
        
    
        
        
            
                "title_ar": "Marie Curie",
            
        
    
        
        
            
                "title_en": "Marie Curie",
            
        
    
        
        
            
                "content_ar": "Alan Turing",
            
        
    
        
        
            
                "content_en": "Ada Lovelace",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "page_key": "faqs",
            
        
    
        
        
            
                "title_ar": "Grace Hopper",
            
        
    
        
        
            
                "title_en": "Grace Hopper",
            
        
    
        
        
            
                "content_ar": "Ada Lovelace",
            
        
    
        
        
            
                "content_en": "Marie Curie",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "page_key": "faqs",
            
        
    
        
        
            
                "title_ar": "Marie Curie",
            
        
    
        
        
            
                "title_en": "Marie Curie",
            
        
    
        
        
            
                "content_ar": "Alan Turing",
            
        
    
        
        
            
                "content_en": "Ada Lovelace",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const PushNotificationsData = [
    
    {
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "target_url": "Ada Lovelace",
            
        
    
        
        
            
                "audience": "role_specific",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "target_url": "Alan Turing",
            
        
    
        
        
            
                "audience": "customers",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "body": "Grace Hopper",
            
        
    
        
        
            
                "target_url": "Alan Turing",
            
        
    
        
        
            
                "audience": "all",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "sent",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "body": "Alan Turing",
            
        
    
        
        
            
                "target_url": "Alan Turing",
            
        
    
        
        
            
                "audience": "customers",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "body": "Ada Lovelace",
            
        
    
        
        
            
                "target_url": "Grace Hopper",
            
        
    
        
        
            
                "audience": "all",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "scheduled",
            
        
    
        
        
            
                "scheduled_at": new Date(Date.now()),
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
    },
    
];



const PushSubscriptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Alan Turing",
            
        
    
        
        
            
                "p256dh": "Grace Hopper",
            
        
    
        
        
            
                "auth": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Grace Hopper",
            
        
    
        
        
            
                "p256dh": "Marie Curie",
            
        
    
        
        
            
                "auth": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Grace Hopper",
            
        
    
        
        
            
                "p256dh": "Grace Hopper",
            
        
    
        
        
            
                "auth": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Alan Turing",
            
        
    
        
        
            
                "p256dh": "Ada Lovelace",
            
        
    
        
        
            
                "auth": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Marie Curie",
            
        
    
        
        
            
                "p256dh": "Alan Turing",
            
        
    
        
        
            
                "auth": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
    },
    
];



const SeoEntriesData = [
    
    {
    
        
        
            
                "entity_type": "product",
            
        
    
        
        
            
                "entity_key": "Grace Hopper",
            
        
    
        
        
            
                "meta_title_ar": "Marie Curie",
            
        
    
        
        
            
                "meta_title_en": "Ada Lovelace",
            
        
    
        
        
            
                "meta_description_ar": "Marie Curie",
            
        
    
        
        
            
                "meta_description_en": "Alan Turing",
            
        
    
        
        
            
                "canonical_url": "Ada Lovelace",
            
        
    
        
        
            
                "open_graph_image_url": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "entity_type": "product",
            
        
    
        
        
            
                "entity_key": "Alan Turing",
            
        
    
        
        
            
                "meta_title_ar": "Marie Curie",
            
        
    
        
        
            
                "meta_title_en": "Marie Curie",
            
        
    
        
        
            
                "meta_description_ar": "Marie Curie",
            
        
    
        
        
            
                "meta_description_en": "Ada Lovelace",
            
        
    
        
        
            
                "canonical_url": "Ada Lovelace",
            
        
    
        
        
            
                "open_graph_image_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "entity_type": "category",
            
        
    
        
        
            
                "entity_key": "Marie Curie",
            
        
    
        
        
            
                "meta_title_ar": "Grace Hopper",
            
        
    
        
        
            
                "meta_title_en": "Ada Lovelace",
            
        
    
        
        
            
                "meta_description_ar": "Alan Turing",
            
        
    
        
        
            
                "meta_description_en": "Ada Lovelace",
            
        
    
        
        
            
                "canonical_url": "Alan Turing",
            
        
    
        
        
            
                "open_graph_image_url": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "entity_type": "cms_page",
            
        
    
        
        
            
                "entity_key": "Alan Turing",
            
        
    
        
        
            
                "meta_title_ar": "Ada Lovelace",
            
        
    
        
        
            
                "meta_title_en": "Ada Lovelace",
            
        
    
        
        
            
                "meta_description_ar": "Marie Curie",
            
        
    
        
        
            
                "meta_description_en": "Marie Curie",
            
        
    
        
        
            
                "canonical_url": "Marie Curie",
            
        
    
        
        
            
                "open_graph_image_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "entity_type": "category",
            
        
    
        
        
            
                "entity_key": "Alan Turing",
            
        
    
        
        
            
                "meta_title_ar": "Grace Hopper",
            
        
    
        
        
            
                "meta_title_en": "Alan Turing",
            
        
    
        
        
            
                "meta_description_ar": "Alan Turing",
            
        
    
        
        
            
                "meta_description_en": "Ada Lovelace",
            
        
    
        
        
            
                "canonical_url": "Grace Hopper",
            
        
    
        
        
            
                "open_graph_image_url": "Alan Turing",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDeveloperApiKeyWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeveloperApiKey0 = await DeveloperApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DeveloperApiKey0?.setUser)
                {
                    await
                    DeveloperApiKey0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeveloperApiKey1 = await DeveloperApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DeveloperApiKey1?.setUser)
                {
                    await
                    DeveloperApiKey1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeveloperApiKey2 = await DeveloperApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DeveloperApiKey2?.setUser)
                {
                    await
                    DeveloperApiKey2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeveloperApiKey3 = await DeveloperApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DeveloperApiKey3?.setUser)
                {
                    await
                    DeveloperApiKey3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const DeveloperApiKey4 = await DeveloperApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DeveloperApiKey4?.setUser)
                {
                    await
                    DeveloperApiKey4.
                    setUser(relatedUser4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateAddressWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address0 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Address0?.setUser)
                {
                    await
                    Address0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address1 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Address1?.setUser)
                {
                    await
                    Address1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address2 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Address2?.setUser)
                {
                    await
                    Address2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address3 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Address3?.setUser)
                {
                    await
                    Address3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Address4 = await Addresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Address4?.setUser)
                {
                    await
                    Address4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCategoryWithParent_category() {
            
                const relatedParent_category0 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Category0 = await Categories.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Category0?.setParent_category)
                {
                    await
                    Category0.
                    setParent_category(relatedParent_category0);
                }
            
                const relatedParent_category1 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Category1 = await Categories.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Category1?.setParent_category)
                {
                    await
                    Category1.
                    setParent_category(relatedParent_category1);
                }
            
                const relatedParent_category2 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Category2 = await Categories.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Category2?.setParent_category)
                {
                    await
                    Category2.
                    setParent_category(relatedParent_category2);
                }
            
                const relatedParent_category3 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Category3 = await Categories.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Category3?.setParent_category)
                {
                    await
                    Category3.
                    setParent_category(relatedParent_category3);
                }
            
                const relatedParent_category4 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Category4 = await Categories.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Category4?.setParent_category)
                {
                    await
                    Category4.
                    setParent_category(relatedParent_category4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProductWithCategory() {
            
                const relatedCategory0 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setCategory)
                {
                    await
                    Product0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setCategory)
                {
                    await
                    Product1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setCategory)
                {
                    await
                    Product2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setCategory)
                {
                    await
                    Product3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setCategory)
                {
                    await
                    Product4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
            
            async function associateProductWithBrand() {
            
                const relatedBrand0 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setBrand)
                {
                    await
                    Product0.
                    setBrand(relatedBrand0);
                }
            
                const relatedBrand1 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setBrand)
                {
                    await
                    Product1.
                    setBrand(relatedBrand1);
                }
            
                const relatedBrand2 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setBrand)
                {
                    await
                    Product2.
                    setBrand(relatedBrand2);
                }
            
                const relatedBrand3 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setBrand)
                {
                    await
                    Product3.
                    setBrand(relatedBrand3);
                }
            
                const relatedBrand4 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setBrand)
                {
                    await
                    Product4.
                    setBrand(relatedBrand4);
                }
            
        }
        
    
        
            
            async function associateProductWithSupplier() {
            
                const relatedSupplier0 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setSupplier)
                {
                    await
                    Product0.
                    setSupplier(relatedSupplier0);
                }
            
                const relatedSupplier1 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setSupplier)
                {
                    await
                    Product1.
                    setSupplier(relatedSupplier1);
                }
            
                const relatedSupplier2 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setSupplier)
                {
                    await
                    Product2.
                    setSupplier(relatedSupplier2);
                }
            
                const relatedSupplier3 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setSupplier)
                {
                    await
                    Product3.
                    setSupplier(relatedSupplier3);
                }
            
                const relatedSupplier4 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setSupplier)
                {
                    await
                    Product4.
                    setSupplier(relatedSupplier4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateProductVariantWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductVariant0 = await ProductVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductVariant0?.setProduct)
                {
                    await
                    ProductVariant0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductVariant1 = await ProductVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductVariant1?.setProduct)
                {
                    await
                    ProductVariant1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductVariant2 = await ProductVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductVariant2?.setProduct)
                {
                    await
                    ProductVariant2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductVariant3 = await ProductVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductVariant3?.setProduct)
                {
                    await
                    ProductVariant3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductVariant4 = await ProductVariants.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductVariant4?.setProduct)
                {
                    await
                    ProductVariant4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateProductReviewWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview0 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductReview0?.setProduct)
                {
                    await
                    ProductReview0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview1 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductReview1?.setProduct)
                {
                    await
                    ProductReview1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview2 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductReview2?.setProduct)
                {
                    await
                    ProductReview2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview3 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductReview3?.setProduct)
                {
                    await
                    ProductReview3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductReview4 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductReview4?.setProduct)
                {
                    await
                    ProductReview4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
            
            async function associateProductReviewWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview0 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductReview0?.setUser)
                {
                    await
                    ProductReview0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview1 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductReview1?.setUser)
                {
                    await
                    ProductReview1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview2 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductReview2?.setUser)
                {
                    await
                    ProductReview2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview3 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductReview3?.setUser)
                {
                    await
                    ProductReview3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview4 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductReview4?.setUser)
                {
                    await
                    ProductReview4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateWishlistItemWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WishlistItem0 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WishlistItem0?.setUser)
                {
                    await
                    WishlistItem0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WishlistItem1 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WishlistItem1?.setUser)
                {
                    await
                    WishlistItem1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WishlistItem2 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WishlistItem2?.setUser)
                {
                    await
                    WishlistItem2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WishlistItem3 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WishlistItem3?.setUser)
                {
                    await
                    WishlistItem3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const WishlistItem4 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WishlistItem4?.setUser)
                {
                    await
                    WishlistItem4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateWishlistItemWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const WishlistItem0 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WishlistItem0?.setProduct)
                {
                    await
                    WishlistItem0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const WishlistItem1 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WishlistItem1?.setProduct)
                {
                    await
                    WishlistItem1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const WishlistItem2 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WishlistItem2?.setProduct)
                {
                    await
                    WishlistItem2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const WishlistItem3 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WishlistItem3?.setProduct)
                {
                    await
                    WishlistItem3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const WishlistItem4 = await WishlistItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WishlistItem4?.setProduct)
                {
                    await
                    WishlistItem4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateCompareListWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CompareList0 = await CompareLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompareList0?.setUser)
                {
                    await
                    CompareList0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CompareList1 = await CompareLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompareList1?.setUser)
                {
                    await
                    CompareList1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CompareList2 = await CompareLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompareList2?.setUser)
                {
                    await
                    CompareList2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CompareList3 = await CompareLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompareList3?.setUser)
                {
                    await
                    CompareList3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CompareList4 = await CompareLists.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompareList4?.setUser)
                {
                    await
                    CompareList4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateCompareItemWithCompare_list() {
            
                const relatedCompare_list0 = await CompareLists.findOne({
                    offset: Math.floor(Math.random() * (await CompareLists.count())),
                });
                const CompareItem0 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompareItem0?.setCompare_list)
                {
                    await
                    CompareItem0.
                    setCompare_list(relatedCompare_list0);
                }
            
                const relatedCompare_list1 = await CompareLists.findOne({
                    offset: Math.floor(Math.random() * (await CompareLists.count())),
                });
                const CompareItem1 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompareItem1?.setCompare_list)
                {
                    await
                    CompareItem1.
                    setCompare_list(relatedCompare_list1);
                }
            
                const relatedCompare_list2 = await CompareLists.findOne({
                    offset: Math.floor(Math.random() * (await CompareLists.count())),
                });
                const CompareItem2 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompareItem2?.setCompare_list)
                {
                    await
                    CompareItem2.
                    setCompare_list(relatedCompare_list2);
                }
            
                const relatedCompare_list3 = await CompareLists.findOne({
                    offset: Math.floor(Math.random() * (await CompareLists.count())),
                });
                const CompareItem3 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompareItem3?.setCompare_list)
                {
                    await
                    CompareItem3.
                    setCompare_list(relatedCompare_list3);
                }
            
                const relatedCompare_list4 = await CompareLists.findOne({
                    offset: Math.floor(Math.random() * (await CompareLists.count())),
                });
                const CompareItem4 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompareItem4?.setCompare_list)
                {
                    await
                    CompareItem4.
                    setCompare_list(relatedCompare_list4);
                }
            
        }
        
    
        
            
            async function associateCompareItemWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CompareItem0 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompareItem0?.setProduct)
                {
                    await
                    CompareItem0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CompareItem1 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompareItem1?.setProduct)
                {
                    await
                    CompareItem1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CompareItem2 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompareItem2?.setProduct)
                {
                    await
                    CompareItem2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CompareItem3 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompareItem3?.setProduct)
                {
                    await
                    CompareItem3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CompareItem4 = await CompareItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompareItem4?.setProduct)
                {
                    await
                    CompareItem4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateCartWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart0 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cart0?.setUser)
                {
                    await
                    Cart0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart1 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cart1?.setUser)
                {
                    await
                    Cart1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart2 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cart2?.setUser)
                {
                    await
                    Cart2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart3 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Cart3?.setUser)
                {
                    await
                    Cart3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart4 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Cart4?.setUser)
                {
                    await
                    Cart4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCartWithApplied_coupon() {
            
                const relatedApplied_coupon0 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Cart0 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cart0?.setApplied_coupon)
                {
                    await
                    Cart0.
                    setApplied_coupon(relatedApplied_coupon0);
                }
            
                const relatedApplied_coupon1 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Cart1 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cart1?.setApplied_coupon)
                {
                    await
                    Cart1.
                    setApplied_coupon(relatedApplied_coupon1);
                }
            
                const relatedApplied_coupon2 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Cart2 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cart2?.setApplied_coupon)
                {
                    await
                    Cart2.
                    setApplied_coupon(relatedApplied_coupon2);
                }
            
                const relatedApplied_coupon3 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Cart3 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Cart3?.setApplied_coupon)
                {
                    await
                    Cart3.
                    setApplied_coupon(relatedApplied_coupon3);
                }
            
                const relatedApplied_coupon4 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Cart4 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Cart4?.setApplied_coupon)
                {
                    await
                    Cart4.
                    setApplied_coupon(relatedApplied_coupon4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateCartItemWithCart() {
            
                const relatedCart0 = await Carts.findOne({
                    offset: Math.floor(Math.random() * (await Carts.count())),
                });
                const CartItem0 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CartItem0?.setCart)
                {
                    await
                    CartItem0.
                    setCart(relatedCart0);
                }
            
                const relatedCart1 = await Carts.findOne({
                    offset: Math.floor(Math.random() * (await Carts.count())),
                });
                const CartItem1 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CartItem1?.setCart)
                {
                    await
                    CartItem1.
                    setCart(relatedCart1);
                }
            
                const relatedCart2 = await Carts.findOne({
                    offset: Math.floor(Math.random() * (await Carts.count())),
                });
                const CartItem2 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CartItem2?.setCart)
                {
                    await
                    CartItem2.
                    setCart(relatedCart2);
                }
            
                const relatedCart3 = await Carts.findOne({
                    offset: Math.floor(Math.random() * (await Carts.count())),
                });
                const CartItem3 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CartItem3?.setCart)
                {
                    await
                    CartItem3.
                    setCart(relatedCart3);
                }
            
                const relatedCart4 = await Carts.findOne({
                    offset: Math.floor(Math.random() * (await Carts.count())),
                });
                const CartItem4 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CartItem4?.setCart)
                {
                    await
                    CartItem4.
                    setCart(relatedCart4);
                }
            
        }
        
    
        
            
            async function associateCartItemWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CartItem0 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CartItem0?.setProduct)
                {
                    await
                    CartItem0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CartItem1 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CartItem1?.setProduct)
                {
                    await
                    CartItem1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CartItem2 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CartItem2?.setProduct)
                {
                    await
                    CartItem2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CartItem3 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CartItem3?.setProduct)
                {
                    await
                    CartItem3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const CartItem4 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CartItem4?.setProduct)
                {
                    await
                    CartItem4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
            
            async function associateCartItemWithVariant() {
            
                const relatedVariant0 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const CartItem0 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CartItem0?.setVariant)
                {
                    await
                    CartItem0.
                    setVariant(relatedVariant0);
                }
            
                const relatedVariant1 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const CartItem1 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CartItem1?.setVariant)
                {
                    await
                    CartItem1.
                    setVariant(relatedVariant1);
                }
            
                const relatedVariant2 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const CartItem2 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CartItem2?.setVariant)
                {
                    await
                    CartItem2.
                    setVariant(relatedVariant2);
                }
            
                const relatedVariant3 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const CartItem3 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CartItem3?.setVariant)
                {
                    await
                    CartItem3.
                    setVariant(relatedVariant3);
                }
            
                const relatedVariant4 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const CartItem4 = await CartItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CartItem4?.setVariant)
                {
                    await
                    CartItem4.
                    setVariant(relatedVariant4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateOrderWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setUser)
                {
                    await
                    Order0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setUser)
                {
                    await
                    Order1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setUser)
                {
                    await
                    Order2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setUser)
                {
                    await
                    Order3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setUser)
                {
                    await
                    Order4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateOrderWithShipping_addres() {
            
                const relatedShipping_addres0 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setShipping_addres)
                {
                    await
                    Order0.
                    setShipping_addres(relatedShipping_addres0);
                }
            
                const relatedShipping_addres1 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setShipping_addres)
                {
                    await
                    Order1.
                    setShipping_addres(relatedShipping_addres1);
                }
            
                const relatedShipping_addres2 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setShipping_addres)
                {
                    await
                    Order2.
                    setShipping_addres(relatedShipping_addres2);
                }
            
                const relatedShipping_addres3 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setShipping_addres)
                {
                    await
                    Order3.
                    setShipping_addres(relatedShipping_addres3);
                }
            
                const relatedShipping_addres4 = await Addresses.findOne({
                    offset: Math.floor(Math.random() * (await Addresses.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setShipping_addres)
                {
                    await
                    Order4.
                    setShipping_addres(relatedShipping_addres4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOrderWithApplied_coupon() {
            
                const relatedApplied_coupon0 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setApplied_coupon)
                {
                    await
                    Order0.
                    setApplied_coupon(relatedApplied_coupon0);
                }
            
                const relatedApplied_coupon1 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setApplied_coupon)
                {
                    await
                    Order1.
                    setApplied_coupon(relatedApplied_coupon1);
                }
            
                const relatedApplied_coupon2 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setApplied_coupon)
                {
                    await
                    Order2.
                    setApplied_coupon(relatedApplied_coupon2);
                }
            
                const relatedApplied_coupon3 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setApplied_coupon)
                {
                    await
                    Order3.
                    setApplied_coupon(relatedApplied_coupon3);
                }
            
                const relatedApplied_coupon4 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setApplied_coupon)
                {
                    await
                    Order4.
                    setApplied_coupon(relatedApplied_coupon4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateOrderItemWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem0 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrderItem0?.setOrder)
                {
                    await
                    OrderItem0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem1 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrderItem1?.setOrder)
                {
                    await
                    OrderItem1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem2 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrderItem2?.setOrder)
                {
                    await
                    OrderItem2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem3 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrderItem3?.setOrder)
                {
                    await
                    OrderItem3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const OrderItem4 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OrderItem4?.setOrder)
                {
                    await
                    OrderItem4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
            
            async function associateOrderItemWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem0 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrderItem0?.setProduct)
                {
                    await
                    OrderItem0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem1 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrderItem1?.setProduct)
                {
                    await
                    OrderItem1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem2 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrderItem2?.setProduct)
                {
                    await
                    OrderItem2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem3 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrderItem3?.setProduct)
                {
                    await
                    OrderItem3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const OrderItem4 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OrderItem4?.setProduct)
                {
                    await
                    OrderItem4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
            
            async function associateOrderItemWithVariant() {
            
                const relatedVariant0 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const OrderItem0 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (OrderItem0?.setVariant)
                {
                    await
                    OrderItem0.
                    setVariant(relatedVariant0);
                }
            
                const relatedVariant1 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const OrderItem1 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (OrderItem1?.setVariant)
                {
                    await
                    OrderItem1.
                    setVariant(relatedVariant1);
                }
            
                const relatedVariant2 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const OrderItem2 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (OrderItem2?.setVariant)
                {
                    await
                    OrderItem2.
                    setVariant(relatedVariant2);
                }
            
                const relatedVariant3 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const OrderItem3 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (OrderItem3?.setVariant)
                {
                    await
                    OrderItem3.
                    setVariant(relatedVariant3);
                }
            
                const relatedVariant4 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const OrderItem4 = await OrderItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (OrderItem4?.setVariant)
                {
                    await
                    OrderItem4.
                    setVariant(relatedVariant4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateShipmentWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment0 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Shipment0?.setOrder)
                {
                    await
                    Shipment0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment1 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Shipment1?.setOrder)
                {
                    await
                    Shipment1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment2 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Shipment2?.setOrder)
                {
                    await
                    Shipment2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment3 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Shipment3?.setOrder)
                {
                    await
                    Shipment3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Shipment4 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Shipment4?.setOrder)
                {
                    await
                    Shipment4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
            
            async function associateShipmentWithCarrier() {
            
                const relatedCarrier0 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const Shipment0 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Shipment0?.setCarrier)
                {
                    await
                    Shipment0.
                    setCarrier(relatedCarrier0);
                }
            
                const relatedCarrier1 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const Shipment1 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Shipment1?.setCarrier)
                {
                    await
                    Shipment1.
                    setCarrier(relatedCarrier1);
                }
            
                const relatedCarrier2 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const Shipment2 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Shipment2?.setCarrier)
                {
                    await
                    Shipment2.
                    setCarrier(relatedCarrier2);
                }
            
                const relatedCarrier3 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const Shipment3 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Shipment3?.setCarrier)
                {
                    await
                    Shipment3.
                    setCarrier(relatedCarrier3);
                }
            
                const relatedCarrier4 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const Shipment4 = await Shipments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Shipment4?.setCarrier)
                {
                    await
                    Shipment4.
                    setCarrier(relatedCarrier4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePaymentWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setOrder)
                {
                    await
                    Payment0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setOrder)
                {
                    await
                    Payment1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setOrder)
                {
                    await
                    Payment2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setOrder)
                {
                    await
                    Payment3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setOrder)
                {
                    await
                    Payment4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateCouponRedemptionWithCoupon() {
            
                const relatedCoupon0 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const CouponRedemption0 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CouponRedemption0?.setCoupon)
                {
                    await
                    CouponRedemption0.
                    setCoupon(relatedCoupon0);
                }
            
                const relatedCoupon1 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const CouponRedemption1 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CouponRedemption1?.setCoupon)
                {
                    await
                    CouponRedemption1.
                    setCoupon(relatedCoupon1);
                }
            
                const relatedCoupon2 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const CouponRedemption2 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CouponRedemption2?.setCoupon)
                {
                    await
                    CouponRedemption2.
                    setCoupon(relatedCoupon2);
                }
            
                const relatedCoupon3 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const CouponRedemption3 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CouponRedemption3?.setCoupon)
                {
                    await
                    CouponRedemption3.
                    setCoupon(relatedCoupon3);
                }
            
                const relatedCoupon4 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const CouponRedemption4 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CouponRedemption4?.setCoupon)
                {
                    await
                    CouponRedemption4.
                    setCoupon(relatedCoupon4);
                }
            
        }
        
    
        
            
            async function associateCouponRedemptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CouponRedemption0 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CouponRedemption0?.setUser)
                {
                    await
                    CouponRedemption0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CouponRedemption1 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CouponRedemption1?.setUser)
                {
                    await
                    CouponRedemption1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CouponRedemption2 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CouponRedemption2?.setUser)
                {
                    await
                    CouponRedemption2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CouponRedemption3 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CouponRedemption3?.setUser)
                {
                    await
                    CouponRedemption3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CouponRedemption4 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CouponRedemption4?.setUser)
                {
                    await
                    CouponRedemption4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associateCouponRedemptionWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const CouponRedemption0 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CouponRedemption0?.setOrder)
                {
                    await
                    CouponRedemption0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const CouponRedemption1 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CouponRedemption1?.setOrder)
                {
                    await
                    CouponRedemption1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const CouponRedemption2 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CouponRedemption2?.setOrder)
                {
                    await
                    CouponRedemption2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const CouponRedemption3 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CouponRedemption3?.setOrder)
                {
                    await
                    CouponRedemption3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const CouponRedemption4 = await CouponRedemptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CouponRedemption4?.setOrder)
                {
                    await
                    CouponRedemption4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePointLedgerEntryWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry0 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PointLedgerEntry0?.setUser)
                {
                    await
                    PointLedgerEntry0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry1 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PointLedgerEntry1?.setUser)
                {
                    await
                    PointLedgerEntry1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry2 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PointLedgerEntry2?.setUser)
                {
                    await
                    PointLedgerEntry2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry3 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PointLedgerEntry3?.setUser)
                {
                    await
                    PointLedgerEntry3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PointLedgerEntry4 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PointLedgerEntry4?.setUser)
                {
                    await
                    PointLedgerEntry4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
            
            async function associatePointLedgerEntryWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const PointLedgerEntry0 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PointLedgerEntry0?.setOrder)
                {
                    await
                    PointLedgerEntry0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const PointLedgerEntry1 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PointLedgerEntry1?.setOrder)
                {
                    await
                    PointLedgerEntry1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const PointLedgerEntry2 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PointLedgerEntry2?.setOrder)
                {
                    await
                    PointLedgerEntry2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const PointLedgerEntry3 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PointLedgerEntry3?.setOrder)
                {
                    await
                    PointLedgerEntry3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const PointLedgerEntry4 = await PointLedgerEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PointLedgerEntry4?.setOrder)
                {
                    await
                    PointLedgerEntry4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            
            async function associateFrequentlyBoughtTogetherGroupWithPrimary_product() {
            
                const relatedPrimary_product0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherGroup0 = await FrequentlyBoughtTogetherGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FrequentlyBoughtTogetherGroup0?.setPrimary_product)
                {
                    await
                    FrequentlyBoughtTogetherGroup0.
                    setPrimary_product(relatedPrimary_product0);
                }
            
                const relatedPrimary_product1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherGroup1 = await FrequentlyBoughtTogetherGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FrequentlyBoughtTogetherGroup1?.setPrimary_product)
                {
                    await
                    FrequentlyBoughtTogetherGroup1.
                    setPrimary_product(relatedPrimary_product1);
                }
            
                const relatedPrimary_product2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherGroup2 = await FrequentlyBoughtTogetherGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FrequentlyBoughtTogetherGroup2?.setPrimary_product)
                {
                    await
                    FrequentlyBoughtTogetherGroup2.
                    setPrimary_product(relatedPrimary_product2);
                }
            
                const relatedPrimary_product3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherGroup3 = await FrequentlyBoughtTogetherGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FrequentlyBoughtTogetherGroup3?.setPrimary_product)
                {
                    await
                    FrequentlyBoughtTogetherGroup3.
                    setPrimary_product(relatedPrimary_product3);
                }
            
                const relatedPrimary_product4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherGroup4 = await FrequentlyBoughtTogetherGroups.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FrequentlyBoughtTogetherGroup4?.setPrimary_product)
                {
                    await
                    FrequentlyBoughtTogetherGroup4.
                    setPrimary_product(relatedPrimary_product4);
                }
            
        }
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateFrequentlyBoughtTogetherItemWithGroup() {
            
                const relatedGroup0 = await FrequentlyBoughtTogetherGroups.findOne({
                    offset: Math.floor(Math.random() * (await FrequentlyBoughtTogetherGroups.count())),
                });
                const FrequentlyBoughtTogetherItem0 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FrequentlyBoughtTogetherItem0?.setGroup)
                {
                    await
                    FrequentlyBoughtTogetherItem0.
                    setGroup(relatedGroup0);
                }
            
                const relatedGroup1 = await FrequentlyBoughtTogetherGroups.findOne({
                    offset: Math.floor(Math.random() * (await FrequentlyBoughtTogetherGroups.count())),
                });
                const FrequentlyBoughtTogetherItem1 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FrequentlyBoughtTogetherItem1?.setGroup)
                {
                    await
                    FrequentlyBoughtTogetherItem1.
                    setGroup(relatedGroup1);
                }
            
                const relatedGroup2 = await FrequentlyBoughtTogetherGroups.findOne({
                    offset: Math.floor(Math.random() * (await FrequentlyBoughtTogetherGroups.count())),
                });
                const FrequentlyBoughtTogetherItem2 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FrequentlyBoughtTogetherItem2?.setGroup)
                {
                    await
                    FrequentlyBoughtTogetherItem2.
                    setGroup(relatedGroup2);
                }
            
                const relatedGroup3 = await FrequentlyBoughtTogetherGroups.findOne({
                    offset: Math.floor(Math.random() * (await FrequentlyBoughtTogetherGroups.count())),
                });
                const FrequentlyBoughtTogetherItem3 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FrequentlyBoughtTogetherItem3?.setGroup)
                {
                    await
                    FrequentlyBoughtTogetherItem3.
                    setGroup(relatedGroup3);
                }
            
                const relatedGroup4 = await FrequentlyBoughtTogetherGroups.findOne({
                    offset: Math.floor(Math.random() * (await FrequentlyBoughtTogetherGroups.count())),
                });
                const FrequentlyBoughtTogetherItem4 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FrequentlyBoughtTogetherItem4?.setGroup)
                {
                    await
                    FrequentlyBoughtTogetherItem4.
                    setGroup(relatedGroup4);
                }
            
        }
        
    
        
            
            async function associateFrequentlyBoughtTogetherItemWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherItem0 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FrequentlyBoughtTogetherItem0?.setProduct)
                {
                    await
                    FrequentlyBoughtTogetherItem0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherItem1 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FrequentlyBoughtTogetherItem1?.setProduct)
                {
                    await
                    FrequentlyBoughtTogetherItem1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherItem2 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FrequentlyBoughtTogetherItem2?.setProduct)
                {
                    await
                    FrequentlyBoughtTogetherItem2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherItem3 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FrequentlyBoughtTogetherItem3?.setProduct)
                {
                    await
                    FrequentlyBoughtTogetherItem3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const FrequentlyBoughtTogetherItem4 = await FrequentlyBoughtTogetherItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FrequentlyBoughtTogetherItem4?.setProduct)
                {
                    await
                    FrequentlyBoughtTogetherItem4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateAdWithPlacement() {
            
                const relatedPlacement0 = await AdPlacements.findOne({
                    offset: Math.floor(Math.random() * (await AdPlacements.count())),
                });
                const Ad0 = await Ads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Ad0?.setPlacement)
                {
                    await
                    Ad0.
                    setPlacement(relatedPlacement0);
                }
            
                const relatedPlacement1 = await AdPlacements.findOne({
                    offset: Math.floor(Math.random() * (await AdPlacements.count())),
                });
                const Ad1 = await Ads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Ad1?.setPlacement)
                {
                    await
                    Ad1.
                    setPlacement(relatedPlacement1);
                }
            
                const relatedPlacement2 = await AdPlacements.findOne({
                    offset: Math.floor(Math.random() * (await AdPlacements.count())),
                });
                const Ad2 = await Ads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Ad2?.setPlacement)
                {
                    await
                    Ad2.
                    setPlacement(relatedPlacement2);
                }
            
                const relatedPlacement3 = await AdPlacements.findOne({
                    offset: Math.floor(Math.random() * (await AdPlacements.count())),
                });
                const Ad3 = await Ads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Ad3?.setPlacement)
                {
                    await
                    Ad3.
                    setPlacement(relatedPlacement3);
                }
            
                const relatedPlacement4 = await AdPlacements.findOne({
                    offset: Math.floor(Math.random() * (await AdPlacements.count())),
                });
                const Ad4 = await Ads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Ad4?.setPlacement)
                {
                    await
                    Ad4.
                    setPlacement(relatedPlacement4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAdEventWithAd() {
            
                const relatedAd0 = await Ads.findOne({
                    offset: Math.floor(Math.random() * (await Ads.count())),
                });
                const AdEvent0 = await AdEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AdEvent0?.setAd)
                {
                    await
                    AdEvent0.
                    setAd(relatedAd0);
                }
            
                const relatedAd1 = await Ads.findOne({
                    offset: Math.floor(Math.random() * (await Ads.count())),
                });
                const AdEvent1 = await AdEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AdEvent1?.setAd)
                {
                    await
                    AdEvent1.
                    setAd(relatedAd1);
                }
            
                const relatedAd2 = await Ads.findOne({
                    offset: Math.floor(Math.random() * (await Ads.count())),
                });
                const AdEvent2 = await AdEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AdEvent2?.setAd)
                {
                    await
                    AdEvent2.
                    setAd(relatedAd2);
                }
            
                const relatedAd3 = await Ads.findOne({
                    offset: Math.floor(Math.random() * (await Ads.count())),
                });
                const AdEvent3 = await AdEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AdEvent3?.setAd)
                {
                    await
                    AdEvent3.
                    setAd(relatedAd3);
                }
            
                const relatedAd4 = await Ads.findOne({
                    offset: Math.floor(Math.random() * (await Ads.count())),
                });
                const AdEvent4 = await AdEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AdEvent4?.setAd)
                {
                    await
                    AdEvent4.
                    setAd(relatedAd4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateSocialLinkWithFooter_content_block() {
            
                const relatedFooter_content_block0 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const SocialLink0 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SocialLink0?.setFooter_content_block)
                {
                    await
                    SocialLink0.
                    setFooter_content_block(relatedFooter_content_block0);
                }
            
                const relatedFooter_content_block1 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const SocialLink1 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SocialLink1?.setFooter_content_block)
                {
                    await
                    SocialLink1.
                    setFooter_content_block(relatedFooter_content_block1);
                }
            
                const relatedFooter_content_block2 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const SocialLink2 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SocialLink2?.setFooter_content_block)
                {
                    await
                    SocialLink2.
                    setFooter_content_block(relatedFooter_content_block2);
                }
            
                const relatedFooter_content_block3 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const SocialLink3 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SocialLink3?.setFooter_content_block)
                {
                    await
                    SocialLink3.
                    setFooter_content_block(relatedFooter_content_block3);
                }
            
                const relatedFooter_content_block4 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const SocialLink4 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SocialLink4?.setFooter_content_block)
                {
                    await
                    SocialLink4.
                    setFooter_content_block(relatedFooter_content_block4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateFooterLinkWithFooter_content_block() {
            
                const relatedFooter_content_block0 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const FooterLink0 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FooterLink0?.setFooter_content_block)
                {
                    await
                    FooterLink0.
                    setFooter_content_block(relatedFooter_content_block0);
                }
            
                const relatedFooter_content_block1 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const FooterLink1 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FooterLink1?.setFooter_content_block)
                {
                    await
                    FooterLink1.
                    setFooter_content_block(relatedFooter_content_block1);
                }
            
                const relatedFooter_content_block2 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const FooterLink2 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FooterLink2?.setFooter_content_block)
                {
                    await
                    FooterLink2.
                    setFooter_content_block(relatedFooter_content_block2);
                }
            
                const relatedFooter_content_block3 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const FooterLink3 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FooterLink3?.setFooter_content_block)
                {
                    await
                    FooterLink3.
                    setFooter_content_block(relatedFooter_content_block3);
                }
            
                const relatedFooter_content_block4 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const FooterLink4 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FooterLink4?.setFooter_content_block)
                {
                    await
                    FooterLink4.
                    setFooter_content_block(relatedFooter_content_block4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePaymentBadgeWithFooter_content_block() {
            
                const relatedFooter_content_block0 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const PaymentBadge0 = await PaymentBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentBadge0?.setFooter_content_block)
                {
                    await
                    PaymentBadge0.
                    setFooter_content_block(relatedFooter_content_block0);
                }
            
                const relatedFooter_content_block1 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const PaymentBadge1 = await PaymentBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentBadge1?.setFooter_content_block)
                {
                    await
                    PaymentBadge1.
                    setFooter_content_block(relatedFooter_content_block1);
                }
            
                const relatedFooter_content_block2 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const PaymentBadge2 = await PaymentBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentBadge2?.setFooter_content_block)
                {
                    await
                    PaymentBadge2.
                    setFooter_content_block(relatedFooter_content_block2);
                }
            
                const relatedFooter_content_block3 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const PaymentBadge3 = await PaymentBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentBadge3?.setFooter_content_block)
                {
                    await
                    PaymentBadge3.
                    setFooter_content_block(relatedFooter_content_block3);
                }
            
                const relatedFooter_content_block4 = await FooterContentBlocks.findOne({
                    offset: Math.floor(Math.random() * (await FooterContentBlocks.count())),
                });
                const PaymentBadge4 = await PaymentBadges.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PaymentBadge4?.setFooter_content_block)
                {
                    await
                    PaymentBadge4.
                    setFooter_content_block(relatedFooter_content_block4);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePushSubscriptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushSubscription0 = await PushSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PushSubscription0?.setUser)
                {
                    await
                    PushSubscription0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushSubscription1 = await PushSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PushSubscription1?.setUser)
                {
                    await
                    PushSubscription1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushSubscription2 = await PushSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PushSubscription2?.setUser)
                {
                    await
                    PushSubscription2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushSubscription3 = await PushSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PushSubscription3?.setUser)
                {
                    await
                    PushSubscription3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PushSubscription4 = await PushSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PushSubscription4?.setUser)
                {
                    await
                    PushSubscription4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await DeveloperApiKeys.bulkCreate(DeveloperApiKeysData);
                
            
            
                
                await Addresses.bulkCreate(AddressesData);
                
            
            
                
                await Categories.bulkCreate(CategoriesData);
                
            
            
                
                await Brands.bulkCreate(BrandsData);
                
            
            
                
                await Suppliers.bulkCreate(SuppliersData);
                
            
            
                
                await Products.bulkCreate(ProductsData);
                
            
            
                
                await ProductVariants.bulkCreate(ProductVariantsData);
                
            
            
                
                await Collections.bulkCreate(CollectionsData);
                
            
            
                
                await ProductReviews.bulkCreate(ProductReviewsData);
                
            
            
                
                await WishlistItems.bulkCreate(WishlistItemsData);
                
            
            
                
                await CompareLists.bulkCreate(CompareListsData);
                
            
            
                
                await CompareItems.bulkCreate(CompareItemsData);
                
            
            
                
                await Carts.bulkCreate(CartsData);
                
            
            
                
                await CartItems.bulkCreate(CartItemsData);
                
            
            
                
                await Orders.bulkCreate(OrdersData);
                
            
            
                
                await OrderItems.bulkCreate(OrderItemsData);
                
            
            
                
                await ShippingCarriers.bulkCreate(ShippingCarriersData);
                
            
            
                
                await Shipments.bulkCreate(ShipmentsData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await Coupons.bulkCreate(CouponsData);
                
            
            
                
                await CouponRedemptions.bulkCreate(CouponRedemptionsData);
                
            
            
                
                await LoyaltySettings.bulkCreate(LoyaltySettingsData);
                
            
            
                
                await PointLedgerEntries.bulkCreate(PointLedgerEntriesData);
                
            
            
                
                await FrequentlyBoughtTogetherGroups.bulkCreate(FrequentlyBoughtTogetherGroupsData);
                
            
            
                
                await FrequentlyBoughtTogetherItems.bulkCreate(FrequentlyBoughtTogetherItemsData);
                
            
            
                
                await AdPlacements.bulkCreate(AdPlacementsData);
                
            
            
                
                await Ads.bulkCreate(AdsData);
                
            
            
                
                await AdEvents.bulkCreate(AdEventsData);
                
            
            
                
                await SiteSettings.bulkCreate(SiteSettingsData);
                
            
            
                
                await FooterContentBlocks.bulkCreate(FooterContentBlocksData);
                
            
            
                
                await SocialLinks.bulkCreate(SocialLinksData);
                
            
            
                
                await FooterLinks.bulkCreate(FooterLinksData);
                
            
            
                
                await PaymentBadges.bulkCreate(PaymentBadgesData);
                
            
            
                
                await NewsletterSubscribers.bulkCreate(NewsletterSubscribersData);
                
            
            
                
                await CmsPages.bulkCreate(CmsPagesData);
                
            
            
                
                await PushNotifications.bulkCreate(PushNotificationsData);
                
            
            
                
                await PushSubscriptions.bulkCreate(PushSubscriptionsData);
                
            
            
                
                await SeoEntries.bulkCreate(SeoEntriesData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDeveloperApiKeyWithUser(),
                    
                
            
                
                
                    
                        
                        await associateAddressWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCategoryWithParent_category(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProductWithCategory(),
                    
                
                    
                        
                        await associateProductWithBrand(),
                    
                
                    
                        
                        await associateProductWithSupplier(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateProductVariantWithProduct(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateProductReviewWithProduct(),
                    
                
                    
                        
                        await associateProductReviewWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateWishlistItemWithUser(),
                    
                
                    
                        
                        await associateWishlistItemWithProduct(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateCompareListWithUser(),
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateCompareItemWithCompare_list(),
                    
                
                    
                        
                        await associateCompareItemWithProduct(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateCartWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCartWithApplied_coupon(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateCartItemWithCart(),
                    
                
                    
                        
                        await associateCartItemWithProduct(),
                    
                
                    
                        
                        await associateCartItemWithVariant(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateOrderWithUser(),
                    
                
                    
                        
                        await associateOrderWithShipping_addres(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOrderWithApplied_coupon(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateOrderItemWithOrder(),
                    
                
                    
                        
                        await associateOrderItemWithProduct(),
                    
                
                    
                        
                        await associateOrderItemWithVariant(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateShipmentWithOrder(),
                    
                
                    
                        
                        await associateShipmentWithCarrier(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePaymentWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateCouponRedemptionWithCoupon(),
                    
                
                    
                        
                        await associateCouponRedemptionWithUser(),
                    
                
                    
                        
                        await associateCouponRedemptionWithOrder(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePointLedgerEntryWithUser(),
                    
                
                    
                        
                        await associatePointLedgerEntryWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateFrequentlyBoughtTogetherGroupWithPrimary_product(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateFrequentlyBoughtTogetherItemWithGroup(),
                    
                
                    
                        
                        await associateFrequentlyBoughtTogetherItemWithProduct(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateAdWithPlacement(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAdEventWithAd(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSocialLinkWithFooter_content_block(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateFooterLinkWithFooter_content_block(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePaymentBadgeWithFooter_content_block(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePushSubscriptionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('developer_api_keys', null, {});
            
            
            await queryInterface.bulkDelete('addresses', null, {});
            
            
            await queryInterface.bulkDelete('categories', null, {});
            
            
            await queryInterface.bulkDelete('brands', null, {});
            
            
            await queryInterface.bulkDelete('suppliers', null, {});
            
            
            await queryInterface.bulkDelete('products', null, {});
            
            
            await queryInterface.bulkDelete('product_variants', null, {});
            
            
            await queryInterface.bulkDelete('collections', null, {});
            
            
            await queryInterface.bulkDelete('product_reviews', null, {});
            
            
            await queryInterface.bulkDelete('wishlist_items', null, {});
            
            
            await queryInterface.bulkDelete('compare_lists', null, {});
            
            
            await queryInterface.bulkDelete('compare_items', null, {});
            
            
            await queryInterface.bulkDelete('carts', null, {});
            
            
            await queryInterface.bulkDelete('cart_items', null, {});
            
            
            await queryInterface.bulkDelete('orders', null, {});
            
            
            await queryInterface.bulkDelete('order_items', null, {});
            
            
            await queryInterface.bulkDelete('shipping_carriers', null, {});
            
            
            await queryInterface.bulkDelete('shipments', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('coupons', null, {});
            
            
            await queryInterface.bulkDelete('coupon_redemptions', null, {});
            
            
            await queryInterface.bulkDelete('loyalty_settings', null, {});
            
            
            await queryInterface.bulkDelete('point_ledger_entries', null, {});
            
            
            await queryInterface.bulkDelete('frequently_bought_together_groups', null, {});
            
            
            await queryInterface.bulkDelete('frequently_bought_together_items', null, {});
            
            
            await queryInterface.bulkDelete('ad_placements', null, {});
            
            
            await queryInterface.bulkDelete('ads', null, {});
            
            
            await queryInterface.bulkDelete('ad_events', null, {});
            
            
            await queryInterface.bulkDelete('site_settings', null, {});
            
            
            await queryInterface.bulkDelete('footer_content_blocks', null, {});
            
            
            await queryInterface.bulkDelete('social_links', null, {});
            
            
            await queryInterface.bulkDelete('footer_links', null, {});
            
            
            await queryInterface.bulkDelete('payment_badges', null, {});
            
            
            await queryInterface.bulkDelete('newsletter_subscribers', null, {});
            
            
            await queryInterface.bulkDelete('cms_pages', null, {});
            
            
            await queryInterface.bulkDelete('push_notifications', null, {});
            
            
            await queryInterface.bulkDelete('push_subscriptions', null, {});
            
            
            await queryInterface.bulkDelete('seo_entries', null, {});
            
        
    },
};