





















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






const UserRoles = db.user_roles;

const RolePermissions = db.role_permissions;

const AuthSessions = db.auth_sessions;

const ApiKeys = db.api_keys;

const Categories = db.categories;

const Brands = db.brands;

const Suppliers = db.suppliers;

const Products = db.products;

const ProductVariants = db.product_variants;

const VariantAttributes = db.variant_attributes;

const SeoEntries = db.seo_entries;

const ProductReviews = db.product_reviews;

const WishlistItems = db.wishlist_items;

const ComparisonItems = db.comparison_items;

const Carts = db.carts;

const CartItems = db.cart_items;

const Coupons = db.coupons;

const UserAddresses = db.user_addresses;

const ShippingCarriers = db.shipping_carriers;

const ShippingMethods = db.shipping_methods;

const Orders = db.orders;

const OrderItems = db.order_items;

const Payments = db.payments;

const Shipments = db.shipments;

const AdPlacements = db.ad_placements;

const Ads = db.ads;

const AdEvents = db.ad_events;

const AppSettings = db.app_settings;

const CmsPages = db.cms_pages;

const FooterSettings = db.footer_settings;

const SocialLinks = db.social_links;

const FooterLinks = db.footer_links;

const NewsletterSubscribers = db.newsletter_subscribers;

const PaymentIcons = db.payment_icons;

const PushSubscriptions = db.push_subscriptions;

const Notifications = db.notifications;







const UserRolesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



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



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



const ApiKeysData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key_name": "Marie Curie",
            
        
    
        
        
            
                "key_prefix": "Marie Curie",
            
        
    
        
        
            
                "key_hash": "Ada Lovelace",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key_name": "Grace Hopper",
            
        
    
        
        
            
                "key_prefix": "Alan Turing",
            
        
    
        
        
            
                "key_hash": "Ada Lovelace",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key_name": "Ada Lovelace",
            
        
    
        
        
            
                "key_prefix": "Ada Lovelace",
            
        
    
        
        
            
                "key_hash": "Ada Lovelace",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "key_name": "Ada Lovelace",
            
        
    
        
        
            
                "key_prefix": "Marie Curie",
            
        
    
        
        
            
                "key_hash": "Ada Lovelace",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "last_used_at": new Date(Date.now()),
            
        
    
    },
    
];



const CategoriesData = [
    
    {
    
        
        
            
                "category_name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "featured": false,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category_name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "featured": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category_name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "featured": false,
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "category_name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "featured": false,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const BrandsData = [
    
    {
    
        
        
            
                "brand_name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "brand_name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "brand_name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "brand_name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
];



const SuppliersData = [
    
    {
    
        
        
            
                "supplier_name": "Marie Curie",
            
        
    
        
        
            
                "contact_name": "Marie Curie",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                "supplier_name": "Marie Curie",
            
        
    
        
        
            
                "contact_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "supplier_name": "Marie Curie",
            
        
    
        
        
            
                "contact_name": "Marie Curie",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Ada Lovelace",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "supplier_name": "Ada Lovelace",
            
        
    
        
        
            
                "contact_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "address": "Marie Curie",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
];



const ProductsData = [
    
    {
    
        
        
            
                "product_name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "short_description": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 6.96,
            
        
    
        
        
            
                "compare_at_price": 6.08,
            
        
    
        
        
            
                "track_inventory": false,
            
        
    
        
        
            
                "stock_quantity": 4,
            
        
    
        
        
            
                "sku": "Grace Hopper",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "is_new": false,
            
        
    
        
        
            
                "discount_percent": 3,
            
        
    
        
        
            
                // 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
            
        
    
    },
    
    {
    
        
        
            
                "product_name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "short_description": "Grace Hopper",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 1.94,
            
        
    
        
        
            
                "compare_at_price": 4.64,
            
        
    
        
        
            
                "track_inventory": false,
            
        
    
        
        
            
                "stock_quantity": 2,
            
        
    
        
        
            
                "sku": "Marie Curie",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "is_new": false,
            
        
    
        
        
            
                "discount_percent": 7,
            
        
    
        
        
            
                // 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
            
        
    
    },
    
    {
    
        
        
            
                "product_name": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "short_description": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 5.58,
            
        
    
        
        
            
                "compare_at_price": 7.09,
            
        
    
        
        
            
                "track_inventory": false,
            
        
    
        
        
            
                "stock_quantity": 8,
            
        
    
        
        
            
                "sku": "Grace Hopper",
            
        
    
        
        
            
                "status": "archived",
            
        
    
        
        
            
                "is_new": false,
            
        
    
        
        
            
                "discount_percent": 6,
            
        
    
        
        
            
                // 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
            
        
    
    },
    
    {
    
        
        
            
                "product_name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "short_description": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "price": 4.35,
            
        
    
        
        
            
                "compare_at_price": 7.96,
            
        
    
        
        
            
                "track_inventory": true,
            
        
    
        
        
            
                "stock_quantity": 2,
            
        
    
        
        
            
                "sku": "Marie Curie",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "is_new": false,
            
        
    
        
        
            
                "discount_percent": 6,
            
        
    
        
        
            
                // 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
            
        
    
    },
    
];



const ProductVariantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Grace Hopper",
            
        
    
        
        
            
                "variant_sku": "Grace Hopper",
            
        
    
        
        
            
                "price": 8.52,
            
        
    
        
        
            
                "compare_at_price": 6.16,
            
        
    
        
        
            
                "stock_quantity": 9,
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Ada Lovelace",
            
        
    
        
        
            
                "variant_sku": "Alan Turing",
            
        
    
        
        
            
                "price": 4.03,
            
        
    
        
        
            
                "compare_at_price": 8.29,
            
        
    
        
        
            
                "stock_quantity": 7,
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Alan Turing",
            
        
    
        
        
            
                "variant_sku": "Ada Lovelace",
            
        
    
        
        
            
                "price": 9.12,
            
        
    
        
        
            
                "compare_at_price": 8.88,
            
        
    
        
        
            
                "stock_quantity": 1,
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Grace Hopper",
            
        
    
        
        
            
                "variant_sku": "Alan Turing",
            
        
    
        
        
            
                "price": 2.64,
            
        
    
        
        
            
                "compare_at_price": 6.79,
            
        
    
        
        
            
                "stock_quantity": 2,
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



const VariantAttributesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attribute_name": "Marie Curie",
            
        
    
        
        
            
                "attribute_value": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attribute_name": "Marie Curie",
            
        
    
        
        
            
                "attribute_value": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attribute_name": "Marie Curie",
            
        
    
        
        
            
                "attribute_value": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attribute_name": "Grace Hopper",
            
        
    
        
        
            
                "attribute_value": "Alan Turing",
            
        
    
    },
    
];



const SeoEntriesData = [
    
    {
    
        
        
            
                "target_type": "category",
            
        
    
        
        
            
                "target_slug": "Alan Turing",
            
        
    
        
        
            
                "meta_title": "Grace Hopper",
            
        
    
        
        
            
                "meta_description": "Alan Turing",
            
        
    
        
        
            
                "canonical_url": "Ada Lovelace",
            
        
    
        
        
            
                "indexable": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "target_type": "product",
            
        
    
        
        
            
                "target_slug": "Alan Turing",
            
        
    
        
        
            
                "meta_title": "Ada Lovelace",
            
        
    
        
        
            
                "meta_description": "Grace Hopper",
            
        
    
        
        
            
                "canonical_url": "Ada Lovelace",
            
        
    
        
        
            
                "indexable": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "target_type": "category",
            
        
    
        
        
            
                "target_slug": "Alan Turing",
            
        
    
        
        
            
                "meta_title": "Grace Hopper",
            
        
    
        
        
            
                "meta_description": "Grace Hopper",
            
        
    
        
        
            
                "canonical_url": "Grace Hopper",
            
        
    
        
        
            
                "indexable": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                "target_type": "page",
            
        
    
        
        
            
                "target_slug": "Alan Turing",
            
        
    
        
        
            
                "meta_title": "Marie Curie",
            
        
    
        
        
            
                "meta_description": "Alan Turing",
            
        
    
        
        
            
                "canonical_url": "Grace Hopper",
            
        
    
        
        
            
                "indexable": false,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const ProductReviewsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "review_title": "Marie Curie",
            
        
    
        
        
            
                "review_body": "Ada Lovelace",
            
        
    
        
        
            
                "moderation_status": "pending",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 7,
            
        
    
        
        
            
                "review_title": "Ada Lovelace",
            
        
    
        
        
            
                "review_body": "Alan Turing",
            
        
    
        
        
            
                "moderation_status": "rejected",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 6,
            
        
    
        
        
            
                "review_title": "Alan Turing",
            
        
    
        
        
            
                "review_body": "Grace Hopper",
            
        
    
        
        
            
                "moderation_status": "pending",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 6,
            
        
    
        
        
            
                "review_title": "Alan Turing",
            
        
    
        
        
            
                "review_body": "Alan Turing",
            
        
    
        
        
            
                "moderation_status": "rejected",
            
        
    
    },
    
];



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()),
            
        
    
    },
    
];



const ComparisonItemsData = [
    
    {
    
        
        
            
                // 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
            
        
    
        
        
            
                "guest_token": "Grace Hopper",
            
        
    
        
        
            
                "status": "abandoned",
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "guest_token": "Grace Hopper",
            
        
    
        
        
            
                "status": "converted",
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "guest_token": "Marie Curie",
            
        
    
        
        
            
                "status": "abandoned",
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "guest_token": "Marie Curie",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "last_activity_at": new Date(Date.now()),
            
        
    
        
        
            
                // 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": 5,
            
        
    
        
        
            
                "unit_price": 5.63,
            
        
    
    },
    
    {
    
        
        
            
                // 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": 0.4,
            
        
    
    },
    
    {
    
        
        
            
                // 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": 5.74,
            
        
    
    },
    
    {
    
        
        
            
                // 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": 7.89,
            
        
    
    },
    
];



const CouponsData = [
    
    {
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "discount_type": "fixed",
            
        
    
        
        
            
                "discount_value": 5.25,
            
        
    
        
        
            
                "minimum_order_amount": 2.87,
            
        
    
        
        
            
                "usage_limit": 8,
            
        
    
        
        
            
                "usage_count": 3,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "discount_type": "percent",
            
        
    
        
        
            
                "discount_value": 2.02,
            
        
    
        
        
            
                "minimum_order_amount": 2.82,
            
        
    
        
        
            
                "usage_limit": 9,
            
        
    
        
        
            
                "usage_count": 3,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "discount_type": "fixed",
            
        
    
        
        
            
                "discount_value": 1.32,
            
        
    
        
        
            
                "minimum_order_amount": 9.14,
            
        
    
        
        
            
                "usage_limit": 2,
            
        
    
        
        
            
                "usage_count": 9,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "discount_type": "fixed",
            
        
    
        
        
            
                "discount_value": 5.94,
            
        
    
        
        
            
                "minimum_order_amount": 9.53,
            
        
    
        
        
            
                "usage_limit": 3,
            
        
    
        
        
            
                "usage_count": 6,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
];



const UserAddressesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "recipient_name": "Alan Turing",
            
        
    
        
        
            
                "recipient_phone": "Grace Hopper",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "area": "Marie Curie",
            
        
    
        
        
            
                "street_address": "Alan Turing",
            
        
    
        
        
            
                "landmark": "Ada Lovelace",
            
        
    
        
        
            
                "default_address": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Marie Curie",
            
        
    
        
        
            
                "recipient_name": "Alan Turing",
            
        
    
        
        
            
                "recipient_phone": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "area": "Alan Turing",
            
        
    
        
        
            
                "street_address": "Marie Curie",
            
        
    
        
        
            
                "landmark": "Alan Turing",
            
        
    
        
        
            
                "default_address": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Grace Hopper",
            
        
    
        
        
            
                "recipient_name": "Ada Lovelace",
            
        
    
        
        
            
                "recipient_phone": "Alan Turing",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "area": "Marie Curie",
            
        
    
        
        
            
                "street_address": "Marie Curie",
            
        
    
        
        
            
                "landmark": "Grace Hopper",
            
        
    
        
        
            
                "default_address": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "label": "Alan Turing",
            
        
    
        
        
            
                "recipient_name": "Marie Curie",
            
        
    
        
        
            
                "recipient_phone": "Grace Hopper",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "area": "Grace Hopper",
            
        
    
        
        
            
                "street_address": "Marie Curie",
            
        
    
        
        
            
                "landmark": "Alan Turing",
            
        
    
        
        
            
                "default_address": true,
            
        
    
    },
    
];



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



const ShippingMethodsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_name": "Alan Turing",
            
        
    
        
        
            
                "base_cost": 9.35,
            
        
    
        
        
            
                "free_shipping_threshold": 6.01,
            
        
    
        
        
            
                "service_level": "next_day",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_name": "Grace Hopper",
            
        
    
        
        
            
                "base_cost": 1.23,
            
        
    
        
        
            
                "free_shipping_threshold": 5.01,
            
        
    
        
        
            
                "service_level": "standard",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_name": "Grace Hopper",
            
        
    
        
        
            
                "base_cost": 1.3,
            
        
    
        
        
            
                "free_shipping_threshold": 4.43,
            
        
    
        
        
            
                "service_level": "next_day",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method_name": "Alan Turing",
            
        
    
        
        
            
                "base_cost": 3.19,
            
        
    
        
        
            
                "free_shipping_threshold": 6.69,
            
        
    
        
        
            
                "service_level": "next_day",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
];



const OrdersData = [
    
    {
    
        
        
            
                "order_number": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_status": "refunded",
            
        
    
        
        
            
                "payment_status": "refunded",
            
        
    
        
        
            
                "fulfillment_status": "shipped",
            
        
    
        
        
            
                "subtotal_amount": 8.27,
            
        
    
        
        
            
                "discount_amount": 2.49,
            
        
    
        
        
            
                "shipping_amount": 6.97,
            
        
    
        
        
            
                "tax_amount": 2.36,
            
        
    
        
        
            
                "total_amount": 8.88,
            
        
    
        
        
            
                "currency_code": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "customer_note": "Grace Hopper",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "order_number": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_status": "refunded",
            
        
    
        
        
            
                "payment_status": "refunded",
            
        
    
        
        
            
                "fulfillment_status": "returned",
            
        
    
        
        
            
                "subtotal_amount": 0.1,
            
        
    
        
        
            
                "discount_amount": 3.56,
            
        
    
        
        
            
                "shipping_amount": 9.19,
            
        
    
        
        
            
                "tax_amount": 4.25,
            
        
    
        
        
            
                "total_amount": 9.36,
            
        
    
        
        
            
                "currency_code": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "customer_note": "Grace Hopper",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // 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
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_status": "pending_payment",
            
        
    
        
        
            
                "payment_status": "refunded",
            
        
    
        
        
            
                "fulfillment_status": "picking",
            
        
    
        
        
            
                "subtotal_amount": 2.44,
            
        
    
        
        
            
                "discount_amount": 7.61,
            
        
    
        
        
            
                "shipping_amount": 3.4,
            
        
    
        
        
            
                "tax_amount": 6.56,
            
        
    
        
        
            
                "total_amount": 0.92,
            
        
    
        
        
            
                "currency_code": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "customer_note": "Ada Lovelace",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "order_number": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_status": "pending_payment",
            
        
    
        
        
            
                "payment_status": "partial_refund",
            
        
    
        
        
            
                "fulfillment_status": "unfulfilled",
            
        
    
        
        
            
                "subtotal_amount": 1.84,
            
        
    
        
        
            
                "discount_amount": 8.49,
            
        
    
        
        
            
                "shipping_amount": 8.25,
            
        
    
        
        
            
                "tax_amount": 2.48,
            
        
    
        
        
            
                "total_amount": 9.17,
            
        
    
        
        
            
                "currency_code": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "customer_note": "Alan Turing",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                // 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",
            
        
    
        
        
            
                "sku_snapshot": "Grace Hopper",
            
        
    
        
        
            
                "unit_price": 2.82,
            
        
    
        
        
            
                "quantity": 5,
            
        
    
        
        
            
                "line_total": 9.78,
            
        
    
    },
    
    {
    
        
        
            
                // 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",
            
        
    
        
        
            
                "sku_snapshot": "Grace Hopper",
            
        
    
        
        
            
                "unit_price": 2.14,
            
        
    
        
        
            
                "quantity": 3,
            
        
    
        
        
            
                "line_total": 1.36,
            
        
    
    },
    
    {
    
        
        
            
                // 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",
            
        
    
        
        
            
                "sku_snapshot": "Marie Curie",
            
        
    
        
        
            
                "unit_price": 4.27,
            
        
    
        
        
            
                "quantity": 3,
            
        
    
        
        
            
                "line_total": 9.34,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "product_name_snapshot": "Marie Curie",
            
        
    
        
        
            
                "sku_snapshot": "Marie Curie",
            
        
    
        
        
            
                "unit_price": 2.48,
            
        
    
        
        
            
                "quantity": 7,
            
        
    
        
        
            
                "line_total": 8.86,
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_method": "bank_transfer",
            
        
    
        
        
            
                "payment_provider": "internal",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "amount": 4.52,
            
        
    
        
        
            
                "transaction_reference": "Grace Hopper",
            
        
    
        
        
            
                "provider_payload": "Alan Turing",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_method": "card",
            
        
    
        
        
            
                "payment_provider": "internal",
            
        
    
        
        
            
                "status": "initiated",
            
        
    
        
        
            
                "amount": 3.02,
            
        
    
        
        
            
                "transaction_reference": "Ada Lovelace",
            
        
    
        
        
            
                "provider_payload": "Ada Lovelace",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_method": "bank_transfer",
            
        
    
        
        
            
                "payment_provider": "zain_cash",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "amount": 1.21,
            
        
    
        
        
            
                "transaction_reference": "Alan Turing",
            
        
    
        
        
            
                "provider_payload": "Alan Turing",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "payment_method": "cash_on_delivery",
            
        
    
        
        
            
                "payment_provider": "manual",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "amount": 2.81,
            
        
    
        
        
            
                "transaction_reference": "Grace Hopper",
            
        
    
        
        
            
                "provider_payload": "Grace Hopper",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
    },
    
];



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()),
            
        
    
    },
    
    {
    
        
        
            
                // 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()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tracking_number": "Grace Hopper",
            
        
    
        
        
            
                "status": "returned",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tracking_number": "Marie Curie",
            
        
    
        
        
            
                "status": "picked_up",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
    },
    
];



const AdPlacementsData = [
    
    {
    
        
        
            
                "placement_name": "Marie Curie",
            
        
    
        
        
            
                "placement_key": "Alan Turing",
            
        
    
        
        
            
                "placement_type": "footer_banner",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "placement_name": "Alan Turing",
            
        
    
        
        
            
                "placement_key": "Alan Turing",
            
        
    
        
        
            
                "placement_type": "custom",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "placement_name": "Marie Curie",
            
        
    
        
        
            
                "placement_key": "Alan Turing",
            
        
    
        
        
            
                "placement_type": "popup",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "placement_name": "Grace Hopper",
            
        
    
        
        
            
                "placement_key": "Ada Lovelace",
            
        
    
        
        
            
                "placement_type": "footer_banner",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
];



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



const AdEventsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "impression",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "session_token": "Ada Lovelace",
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Alan Turing",
            
        
    
        
        
            
                "referrer_url": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "impression",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "session_token": "Alan Turing",
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "referrer_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "impression",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "session_token": "Marie Curie",
            
        
    
        
        
            
                "ip_address": "Marie Curie",
            
        
    
        
        
            
                "user_agent": "Grace Hopper",
            
        
    
        
        
            
                "referrer_url": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "event_type": "impression",
            
        
    
        
        
            
                "event_at": new Date(Date.now()),
            
        
    
        
        
            
                "session_token": "Grace Hopper",
            
        
    
        
        
            
                "ip_address": "Alan Turing",
            
        
    
        
        
            
                "user_agent": "Ada Lovelace",
            
        
    
        
        
            
                "referrer_url": "Grace Hopper",
            
        
    
    },
    
];



const AppSettingsData = [
    
    {
    
        
        
            
                "settings_key": "Alan Turing",
            
        
    
        
        
            
                "settings_value": "Ada Lovelace",
            
        
    
        
        
            
                "value_type": "javascript",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "settings_key": "Alan Turing",
            
        
    
        
        
            
                "settings_value": "Marie Curie",
            
        
    
        
        
            
                "value_type": "json",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "settings_key": "Ada Lovelace",
            
        
    
        
        
            
                "settings_value": "Grace Hopper",
            
        
    
        
        
            
                "value_type": "html",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "settings_key": "Marie Curie",
            
        
    
        
        
            
                "settings_value": "Alan Turing",
            
        
    
        
        
            
                "value_type": "json",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
];



const CmsPagesData = [
    
    {
    
        
        
            
                "page_title": "Marie Curie",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "page_type": "contact",
            
        
    
        
        
            
                "published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "page_title": "Alan Turing",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "page_type": "contact",
            
        
    
        
        
            
                "published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "page_title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "page_type": "contact",
            
        
    
        
        
            
                "published": true,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "page_title": "Alan Turing",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "page_type": "privacy",
            
        
    
        
        
            
                "published": false,
            
        
    
        
        
            
                "published_at": new Date(Date.now()),
            
        
    
    },
    
];



const FooterSettingsData = [
    
    {
    
        
        
            
                "store_description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "copyright_text": "Alan Turing",
            
        
    
        
        
            
                "footer_banner_enabled": false,
            
        
    
        
        
            
                "footer_banner_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_banner_url": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
    },
    
    {
    
        
        
            
                "store_description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "copyright_text": "Grace Hopper",
            
        
    
        
        
            
                "footer_banner_enabled": false,
            
        
    
        
        
            
                "footer_banner_text": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_banner_url": "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": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "copyright_text": "Marie Curie",
            
        
    
        
        
            
                "footer_banner_enabled": false,
            
        
    
        
        
            
                "footer_banner_text": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_banner_url": "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": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "copyright_text": "Alan Turing",
            
        
    
        
        
            
                "footer_banner_enabled": false,
            
        
    
        
        
            
                "footer_banner_text": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "footer_banner_url": "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 = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "facebook",
            
        
    
        
        
            
                "url": "Alan Turing",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "youtube",
            
        
    
        
        
            
                "url": "Marie Curie",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "facebook",
            
        
    
        
        
            
                "url": "Ada Lovelace",
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "platform": "tiktok",
            
        
    
        
        
            
                "url": "Grace Hopper",
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "sort_order": 8,
            
        
    
    },
    
];



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



const NewsletterSubscribersData = [
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "status": "bounced",
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "status": "unsubscribed",
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "status": "subscribed",
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "status": "unsubscribed",
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
];



const PaymentIconsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "google_pay",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "mastercard",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "sort_order": 5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "mastercard",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": false,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "method": "mastercard",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "active": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
];



const PushSubscriptionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Marie Curie",
            
        
    
        
        
            
                "p256dh_key": "Grace Hopper",
            
        
    
        
        
            
                "auth_key": "Ada Lovelace",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Ada Lovelace",
            
        
    
        
        
            
                "p256dh_key": "Grace Hopper",
            
        
    
        
        
            
                "auth_key": "Marie Curie",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Alan Turing",
            
        
    
        
        
            
                "p256dh_key": "Ada Lovelace",
            
        
    
        
        
            
                "auth_key": "Alan Turing",
            
        
    
        
        
            
                "active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "endpoint": "Marie Curie",
            
        
    
        
        
            
                "p256dh_key": "Alan Turing",
            
        
    
        
        
            
                "auth_key": "Alan Turing",
            
        
    
        
        
            
                "active": true,
            
        
    
    },
    
];



const NotificationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "channel": "sms",
            
        
    
        
        
            
                "status": "queued",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "channel": "push",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "channel": "push",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "channel": "sms",
            
        
    
        
        
            
                "status": "failed",
            
        
    
        
        
            
                "sent_at": new Date(Date.now()),
            
        
    
        
        
            
                "read_at": new Date(Date.now()),
            
        
    
        
        
            
                "deep_link": "Grace Hopper",
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
            
            async function associateUserRoleWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRole0 = await UserRoles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserRole0?.setUser)
                {
                    await
                    UserRole0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRole1 = await UserRoles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserRole1?.setUser)
                {
                    await
                    UserRole1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRole2 = await UserRoles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserRole2?.setUser)
                {
                    await
                    UserRole2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserRole3 = await UserRoles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserRole3?.setUser)
                {
                    await
                    UserRole3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    

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

    
    
    
        
            
            async function associateAuthSessionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuthSession0 = await AuthSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AuthSession0?.setUser)
                {
                    await
                    AuthSession0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuthSession1 = await AuthSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AuthSession1?.setUser)
                {
                    await
                    AuthSession1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuthSession2 = await AuthSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AuthSession2?.setUser)
                {
                    await
                    AuthSession2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const AuthSession3 = await AuthSessions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AuthSession3?.setUser)
                {
                    await
                    AuthSession3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateApiKeyWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey0 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ApiKey0?.setOwner)
                {
                    await
                    ApiKey0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey1 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ApiKey1?.setOwner)
                {
                    await
                    ApiKey1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey2 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ApiKey2?.setOwner)
                {
                    await
                    ApiKey2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ApiKey3 = await ApiKeys.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ApiKey3?.setOwner)
                {
                    await
                    ApiKey3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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);
                }
            
        }
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
            // 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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
        
            
            async function associateVariantAttributeWithVariant() {
            
                const relatedVariant0 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const VariantAttribute0 = await VariantAttributes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VariantAttribute0?.setVariant)
                {
                    await
                    VariantAttribute0.
                    setVariant(relatedVariant0);
                }
            
                const relatedVariant1 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const VariantAttribute1 = await VariantAttributes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VariantAttribute1?.setVariant)
                {
                    await
                    VariantAttribute1.
                    setVariant(relatedVariant1);
                }
            
                const relatedVariant2 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const VariantAttribute2 = await VariantAttributes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VariantAttribute2?.setVariant)
                {
                    await
                    VariantAttribute2.
                    setVariant(relatedVariant2);
                }
            
                const relatedVariant3 = await ProductVariants.findOne({
                    offset: Math.floor(Math.random() * (await ProductVariants.count())),
                });
                const VariantAttribute3 = await VariantAttributes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VariantAttribute3?.setVariant)
                {
                    await
                    VariantAttribute3.
                    setVariant(relatedVariant3);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateSeoEntryWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const SeoEntry0 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SeoEntry0?.setProduct)
                {
                    await
                    SeoEntry0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const SeoEntry1 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SeoEntry1?.setProduct)
                {
                    await
                    SeoEntry1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const SeoEntry2 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SeoEntry2?.setProduct)
                {
                    await
                    SeoEntry2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const SeoEntry3 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SeoEntry3?.setProduct)
                {
                    await
                    SeoEntry3.
                    setProduct(relatedProduct3);
                }
            
        }
        
    
        
            
            async function associateSeoEntryWithCategory() {
            
                const relatedCategory0 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const SeoEntry0 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SeoEntry0?.setCategory)
                {
                    await
                    SeoEntry0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const SeoEntry1 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SeoEntry1?.setCategory)
                {
                    await
                    SeoEntry1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const SeoEntry2 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SeoEntry2?.setCategory)
                {
                    await
                    SeoEntry2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await Categories.findOne({
                    offset: Math.floor(Math.random() * (await Categories.count())),
                });
                const SeoEntry3 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SeoEntry3?.setCategory)
                {
                    await
                    SeoEntry3.
                    setCategory(relatedCategory3);
                }
            
        }
        
    
        
            
            async function associateSeoEntryWithPage() {
            
                const relatedPage0 = await CmsPages.findOne({
                    offset: Math.floor(Math.random() * (await CmsPages.count())),
                });
                const SeoEntry0 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SeoEntry0?.setPage)
                {
                    await
                    SeoEntry0.
                    setPage(relatedPage0);
                }
            
                const relatedPage1 = await CmsPages.findOne({
                    offset: Math.floor(Math.random() * (await CmsPages.count())),
                });
                const SeoEntry1 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SeoEntry1?.setPage)
                {
                    await
                    SeoEntry1.
                    setPage(relatedPage1);
                }
            
                const relatedPage2 = await CmsPages.findOne({
                    offset: Math.floor(Math.random() * (await CmsPages.count())),
                });
                const SeoEntry2 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SeoEntry2?.setPage)
                {
                    await
                    SeoEntry2.
                    setPage(relatedPage2);
                }
            
                const relatedPage3 = await CmsPages.findOne({
                    offset: Math.floor(Math.random() * (await CmsPages.count())),
                });
                const SeoEntry3 = await SeoEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SeoEntry3?.setPage)
                {
                    await
                    SeoEntry3.
                    setPage(relatedPage3);
                }
            
        }
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
            
            async function associateProductReviewWithAuthor() {
            
                const relatedAuthor0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview0 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductReview0?.setAuthor)
                {
                    await
                    ProductReview0.
                    setAuthor(relatedAuthor0);
                }
            
                const relatedAuthor1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview1 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductReview1?.setAuthor)
                {
                    await
                    ProductReview1.
                    setAuthor(relatedAuthor1);
                }
            
                const relatedAuthor2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview2 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductReview2?.setAuthor)
                {
                    await
                    ProductReview2.
                    setAuthor(relatedAuthor2);
                }
            
                const relatedAuthor3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ProductReview3 = await ProductReviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductReview3?.setAuthor)
                {
                    await
                    ProductReview3.
                    setAuthor(relatedAuthor3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateComparisonItemWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComparisonItem0 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ComparisonItem0?.setUser)
                {
                    await
                    ComparisonItem0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComparisonItem1 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ComparisonItem1?.setUser)
                {
                    await
                    ComparisonItem1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComparisonItem2 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ComparisonItem2?.setUser)
                {
                    await
                    ComparisonItem2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const ComparisonItem3 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ComparisonItem3?.setUser)
                {
                    await
                    ComparisonItem3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
            
            async function associateComparisonItemWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComparisonItem0 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ComparisonItem0?.setProduct)
                {
                    await
                    ComparisonItem0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComparisonItem1 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ComparisonItem1?.setProduct)
                {
                    await
                    ComparisonItem1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComparisonItem2 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ComparisonItem2?.setProduct)
                {
                    await
                    ComparisonItem2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ComparisonItem3 = await ComparisonItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ComparisonItem3?.setProduct)
                {
                    await
                    ComparisonItem3.
                    setProduct(relatedProduct3);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateCartWithOwner() {
            
                const relatedOwner0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart0 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cart0?.setOwner)
                {
                    await
                    Cart0.
                    setOwner(relatedOwner0);
                }
            
                const relatedOwner1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart1 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cart1?.setOwner)
                {
                    await
                    Cart1.
                    setOwner(relatedOwner1);
                }
            
                const relatedOwner2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart2 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cart2?.setOwner)
                {
                    await
                    Cart2.
                    setOwner(relatedOwner2);
                }
            
                const relatedOwner3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart3 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Cart3?.setOwner)
                {
                    await
                    Cart3.
                    setOwner(relatedOwner3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            // 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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateUserAddressWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAddress0 = await UserAddresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (UserAddress0?.setUser)
                {
                    await
                    UserAddress0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAddress1 = await UserAddresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (UserAddress1?.setUser)
                {
                    await
                    UserAddress1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAddress2 = await UserAddresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (UserAddress2?.setUser)
                {
                    await
                    UserAddress2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const UserAddress3 = await UserAddresses.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (UserAddress3?.setUser)
                {
                    await
                    UserAddress3.
                    setUser(relatedUser3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateShippingMethodWithCarrier() {
            
                const relatedCarrier0 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const ShippingMethod0 = await ShippingMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ShippingMethod0?.setCarrier)
                {
                    await
                    ShippingMethod0.
                    setCarrier(relatedCarrier0);
                }
            
                const relatedCarrier1 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const ShippingMethod1 = await ShippingMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ShippingMethod1?.setCarrier)
                {
                    await
                    ShippingMethod1.
                    setCarrier(relatedCarrier1);
                }
            
                const relatedCarrier2 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const ShippingMethod2 = await ShippingMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ShippingMethod2?.setCarrier)
                {
                    await
                    ShippingMethod2.
                    setCarrier(relatedCarrier2);
                }
            
                const relatedCarrier3 = await ShippingCarriers.findOne({
                    offset: Math.floor(Math.random() * (await ShippingCarriers.count())),
                });
                const ShippingMethod3 = await ShippingMethods.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ShippingMethod3?.setCarrier)
                {
                    await
                    ShippingMethod3.
                    setCarrier(relatedCarrier3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateOrderWithCustomer() {
            
                const relatedCustomer0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setCustomer)
                {
                    await
                    Order0.
                    setCustomer(relatedCustomer0);
                }
            
                const relatedCustomer1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setCustomer)
                {
                    await
                    Order1.
                    setCustomer(relatedCustomer1);
                }
            
                const relatedCustomer2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setCustomer)
                {
                    await
                    Order2.
                    setCustomer(relatedCustomer2);
                }
            
                const relatedCustomer3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setCustomer)
                {
                    await
                    Order3.
                    setCustomer(relatedCustomer3);
                }
            
        }
        
    
        
            
            async function associateOrderWithShipping_addres() {
            
                const relatedShipping_addres0 = await UserAddresses.findOne({
                    offset: Math.floor(Math.random() * (await UserAddresses.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 UserAddresses.findOne({
                    offset: Math.floor(Math.random() * (await UserAddresses.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 UserAddresses.findOne({
                    offset: Math.floor(Math.random() * (await UserAddresses.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 UserAddresses.findOne({
                    offset: Math.floor(Math.random() * (await UserAddresses.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setShipping_addres)
                {
                    await
                    Order3.
                    setShipping_addres(relatedShipping_addres3);
                }
            
        }
        
    
        
            
            async function associateOrderWithShipping_method() {
            
                const relatedShipping_method0 = await ShippingMethods.findOne({
                    offset: Math.floor(Math.random() * (await ShippingMethods.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setShipping_method)
                {
                    await
                    Order0.
                    setShipping_method(relatedShipping_method0);
                }
            
                const relatedShipping_method1 = await ShippingMethods.findOne({
                    offset: Math.floor(Math.random() * (await ShippingMethods.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setShipping_method)
                {
                    await
                    Order1.
                    setShipping_method(relatedShipping_method1);
                }
            
                const relatedShipping_method2 = await ShippingMethods.findOne({
                    offset: Math.floor(Math.random() * (await ShippingMethods.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setShipping_method)
                {
                    await
                    Order2.
                    setShipping_method(relatedShipping_method2);
                }
            
                const relatedShipping_method3 = await ShippingMethods.findOne({
                    offset: Math.floor(Math.random() * (await ShippingMethods.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setShipping_method)
                {
                    await
                    Order3.
                    setShipping_method(relatedShipping_method3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateOrderWithCoupon() {
            
                const relatedCoupon0 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setCoupon)
                {
                    await
                    Order0.
                    setCoupon(relatedCoupon0);
                }
            
                const relatedCoupon1 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setCoupon)
                {
                    await
                    Order1.
                    setCoupon(relatedCoupon1);
                }
            
                const relatedCoupon2 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setCoupon)
                {
                    await
                    Order2.
                    setCoupon(relatedCoupon2);
                }
            
                const relatedCoupon3 = await Coupons.findOne({
                    offset: Math.floor(Math.random() * (await Coupons.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setCoupon)
                {
                    await
                    Order3.
                    setCoupon(relatedCoupon3);
                }
            
        }
        
    
        
    
        
    
        
    
        
            // 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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // 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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

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

    
    
    
        
            
            async function associateSocialLinkWithFooter() {
            
                const relatedFooter0 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const SocialLink0 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SocialLink0?.setFooter)
                {
                    await
                    SocialLink0.
                    setFooter(relatedFooter0);
                }
            
                const relatedFooter1 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const SocialLink1 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SocialLink1?.setFooter)
                {
                    await
                    SocialLink1.
                    setFooter(relatedFooter1);
                }
            
                const relatedFooter2 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const SocialLink2 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SocialLink2?.setFooter)
                {
                    await
                    SocialLink2.
                    setFooter(relatedFooter2);
                }
            
                const relatedFooter3 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const SocialLink3 = await SocialLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SocialLink3?.setFooter)
                {
                    await
                    SocialLink3.
                    setFooter(relatedFooter3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFooterLinkWithFooter() {
            
                const relatedFooter0 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const FooterLink0 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FooterLink0?.setFooter)
                {
                    await
                    FooterLink0.
                    setFooter(relatedFooter0);
                }
            
                const relatedFooter1 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const FooterLink1 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FooterLink1?.setFooter)
                {
                    await
                    FooterLink1.
                    setFooter(relatedFooter1);
                }
            
                const relatedFooter2 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const FooterLink2 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FooterLink2?.setFooter)
                {
                    await
                    FooterLink2.
                    setFooter(relatedFooter2);
                }
            
                const relatedFooter3 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const FooterLink3 = await FooterLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FooterLink3?.setFooter)
                {
                    await
                    FooterLink3.
                    setFooter(relatedFooter3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePaymentIconWithFooter() {
            
                const relatedFooter0 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const PaymentIcon0 = await PaymentIcons.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PaymentIcon0?.setFooter)
                {
                    await
                    PaymentIcon0.
                    setFooter(relatedFooter0);
                }
            
                const relatedFooter1 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const PaymentIcon1 = await PaymentIcons.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PaymentIcon1?.setFooter)
                {
                    await
                    PaymentIcon1.
                    setFooter(relatedFooter1);
                }
            
                const relatedFooter2 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const PaymentIcon2 = await PaymentIcons.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PaymentIcon2?.setFooter)
                {
                    await
                    PaymentIcon2.
                    setFooter(relatedFooter2);
                }
            
                const relatedFooter3 = await FooterSettings.findOne({
                    offset: Math.floor(Math.random() * (await FooterSettings.count())),
                });
                const PaymentIcon3 = await PaymentIcons.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PaymentIcon3?.setFooter)
                {
                    await
                    PaymentIcon3.
                    setFooter(relatedFooter3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            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);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateNotificationWithRecipient() {
            
                const relatedRecipient0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification0 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Notification0?.setRecipient)
                {
                    await
                    Notification0.
                    setRecipient(relatedRecipient0);
                }
            
                const relatedRecipient1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification1 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Notification1?.setRecipient)
                {
                    await
                    Notification1.
                    setRecipient(relatedRecipient1);
                }
            
                const relatedRecipient2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification2 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Notification2?.setRecipient)
                {
                    await
                    Notification2.
                    setRecipient(relatedRecipient2);
                }
            
                const relatedRecipient3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Notification3 = await Notifications.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Notification3?.setRecipient)
                {
                    await
                    Notification3.
                    setRecipient(relatedRecipient3);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await UserRoles.bulkCreate(UserRolesData);
                
            
            
                
                await RolePermissions.bulkCreate(RolePermissionsData);
                
            
            
                
                await AuthSessions.bulkCreate(AuthSessionsData);
                
            
            
                
                await ApiKeys.bulkCreate(ApiKeysData);
                
            
            
                
                await Categories.bulkCreate(CategoriesData);
                
            
            
                
                await Brands.bulkCreate(BrandsData);
                
            
            
                
                await Suppliers.bulkCreate(SuppliersData);
                
            
            
                
                await Products.bulkCreate(ProductsData);
                
            
            
                
                await ProductVariants.bulkCreate(ProductVariantsData);
                
            
            
                
                await VariantAttributes.bulkCreate(VariantAttributesData);
                
            
            
                
                await SeoEntries.bulkCreate(SeoEntriesData);
                
            
            
                
                await ProductReviews.bulkCreate(ProductReviewsData);
                
            
            
                
                await WishlistItems.bulkCreate(WishlistItemsData);
                
            
            
                
                await ComparisonItems.bulkCreate(ComparisonItemsData);
                
            
            
                
                await Carts.bulkCreate(CartsData);
                
            
            
                
                await CartItems.bulkCreate(CartItemsData);
                
            
            
                
                await Coupons.bulkCreate(CouponsData);
                
            
            
                
                await UserAddresses.bulkCreate(UserAddressesData);
                
            
            
                
                await ShippingCarriers.bulkCreate(ShippingCarriersData);
                
            
            
                
                await ShippingMethods.bulkCreate(ShippingMethodsData);
                
            
            
                
                await Orders.bulkCreate(OrdersData);
                
            
            
                
                await OrderItems.bulkCreate(OrderItemsData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await Shipments.bulkCreate(ShipmentsData);
                
            
            
                
                await AdPlacements.bulkCreate(AdPlacementsData);
                
            
            
                
                await Ads.bulkCreate(AdsData);
                
            
            
                
                await AdEvents.bulkCreate(AdEventsData);
                
            
            
                
                await AppSettings.bulkCreate(AppSettingsData);
                
            
            
                
                await CmsPages.bulkCreate(CmsPagesData);
                
            
            
                
                await FooterSettings.bulkCreate(FooterSettingsData);
                
            
            
                
                await SocialLinks.bulkCreate(SocialLinksData);
                
            
            
                
                await FooterLinks.bulkCreate(FooterLinksData);
                
            
            
                
                await NewsletterSubscribers.bulkCreate(NewsletterSubscribersData);
                
            
            
                
                await PaymentIcons.bulkCreate(PaymentIconsData);
                
            
            
                
                await PushSubscriptions.bulkCreate(PushSubscriptionsData);
                
            
            
                
                await Notifications.bulkCreate(NotificationsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                        
                        await associateUserRoleWithUser(),
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateRolePermissionWithPermission(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateAuthSessionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateApiKeyWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCategoryWithParent_category(),
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProductWithCategory(),
                    
                
                    
                        
                        await associateProductWithBrand(),
                    
                
                    
                        
                        await associateProductWithSupplier(),
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateProductVariantWithProduct(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateVariantAttributeWithVariant(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateSeoEntryWithProduct(),
                    
                
                    
                        
                        await associateSeoEntryWithCategory(),
                    
                
                    
                        
                        await associateSeoEntryWithPage(),
                    
                
            
                
                
                    
                        
                        await associateProductReviewWithProduct(),
                    
                
                    
                        
                        await associateProductReviewWithAuthor(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateWishlistItemWithUser(),
                    
                
                    
                        
                        await associateWishlistItemWithProduct(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateComparisonItemWithUser(),
                    
                
                    
                        
                        await associateComparisonItemWithProduct(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateCartWithOwner(),
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateCartItemWithCart(),
                    
                
                    
                        
                        await associateCartItemWithProduct(),
                    
                
                    
                        
                        await associateCartItemWithVariant(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateUserAddressWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateShippingMethodWithCarrier(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateOrderWithCustomer(),
                    
                
                    
                        
                        await associateOrderWithShipping_addres(),
                    
                
                    
                        
                        await associateOrderWithShipping_method(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateOrderWithCoupon(),
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                    
                        
                        await associateOrderItemWithOrder(),
                    
                
                    
                        
                        await associateOrderItemWithProduct(),
                    
                
                    
                        
                        await associateOrderItemWithVariant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePaymentWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateShipmentWithOrder(),
                    
                
                    
                        
                        await associateShipmentWithCarrier(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // 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(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFooterLinkWithFooter(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePaymentIconWithFooter(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePushSubscriptionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNotificationWithRecipient(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('user_roles', null, {});
            
            
            await queryInterface.bulkDelete('role_permissions', null, {});
            
            
            await queryInterface.bulkDelete('auth_sessions', null, {});
            
            
            await queryInterface.bulkDelete('api_keys', 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('variant_attributes', null, {});
            
            
            await queryInterface.bulkDelete('seo_entries', null, {});
            
            
            await queryInterface.bulkDelete('product_reviews', null, {});
            
            
            await queryInterface.bulkDelete('wishlist_items', null, {});
            
            
            await queryInterface.bulkDelete('comparison_items', null, {});
            
            
            await queryInterface.bulkDelete('carts', null, {});
            
            
            await queryInterface.bulkDelete('cart_items', null, {});
            
            
            await queryInterface.bulkDelete('coupons', null, {});
            
            
            await queryInterface.bulkDelete('user_addresses', null, {});
            
            
            await queryInterface.bulkDelete('shipping_carriers', null, {});
            
            
            await queryInterface.bulkDelete('shipping_methods', null, {});
            
            
            await queryInterface.bulkDelete('orders', null, {});
            
            
            await queryInterface.bulkDelete('order_items', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('shipments', null, {});
            
            
            await queryInterface.bulkDelete('ad_placements', null, {});
            
            
            await queryInterface.bulkDelete('ads', null, {});
            
            
            await queryInterface.bulkDelete('ad_events', null, {});
            
            
            await queryInterface.bulkDelete('app_settings', null, {});
            
            
            await queryInterface.bulkDelete('cms_pages', null, {});
            
            
            await queryInterface.bulkDelete('footer_settings', null, {});
            
            
            await queryInterface.bulkDelete('social_links', null, {});
            
            
            await queryInterface.bulkDelete('footer_links', null, {});
            
            
            await queryInterface.bulkDelete('newsletter_subscribers', null, {});
            
            
            await queryInterface.bulkDelete('payment_icons', null, {});
            
            
            await queryInterface.bulkDelete('push_subscriptions', null, {});
            
            
            await queryInterface.bulkDelete('notifications', null, {});
            
        
    },
};