





















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






const Brands = db.brands;

const ProductCategories = db.product_categories;

const Products = db.products;

const ProductVariants = db.product_variants;

const PaintColors = db.paint_colors;

const ProductColorSets = db.product_color_sets;

const BrushTypes = db.brush_types;

const ProductBrushKits = db.product_brush_kits;

const Reviews = db.reviews;

const Carts = db.carts;

const CartItems = db.cart_items;

const Orders = db.orders;

const OrderItems = db.order_items;

const Addresses = db.addresses;

const Shipments = db.shipments;

const DiscountCodes = db.discount_codes;

const NewsletterSubscriptions = db.newsletter_subscriptions;

const FaqItems = db.faq_items;

const ContentPages = db.content_pages;

const CustomArtworkRequests = db.custom_artwork_requests;

const AiGenerationJobs = db.ai_generation_jobs;

const SupportTickets = db.support_tickets;







const BrandsData = [
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tagline": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "primary_color": "Alan Turing",
            
        
    
        
        
            
                "secondary_color": "Grace Hopper",
            
        
    
        
        
            
                "support_email": "Alan Turing",
            
        
    
        
        
            
                "support_phone": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "tagline": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "primary_color": "Ada Lovelace",
            
        
    
        
        
            
                "secondary_color": "Marie Curie",
            
        
    
        
        
            
                "support_email": "Ada Lovelace",
            
        
    
        
        
            
                "support_phone": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "tagline": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "primary_color": "Ada Lovelace",
            
        
    
        
        
            
                "secondary_color": "Grace Hopper",
            
        
    
        
        
            
                "support_email": "Grace Hopper",
            
        
    
        
        
            
                "support_phone": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "tagline": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "primary_color": "Ada Lovelace",
            
        
    
        
        
            
                "secondary_color": "Alan Turing",
            
        
    
        
        
            
                "support_email": "Grace Hopper",
            
        
    
        
        
            
                "support_phone": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "tagline": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "primary_color": "Ada Lovelace",
            
        
    
        
        
            
                "secondary_color": "Marie Curie",
            
        
    
        
        
            
                "support_email": "Marie Curie",
            
        
    
        
        
            
                "support_phone": "Grace Hopper",
            
        
    
    },
    
];



const ProductCategoriesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "sort_order": 9,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_featured": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "slug": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_featured": false,
            
        
    
        
        
            
                "sort_order": 6,
            
        
    
    },
    
];



const ProductsData = [
    
    {
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "product_type": "custom_generator",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "is_best_seller": false,
            
        
    
        
        
            
                "is_new_arrival": true,
            
        
    
        
        
            
                "base_price": 6.62,
            
        
    
        
        
            
                "inventory_quantity": 1,
            
        
    
        
        
            
                "sku": "Marie Curie",
            
        
    
        
        
            
                "rating_average": 2.7,
            
        
    
        
        
            
                "rating_count": 4,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "product_type": "custom_generator",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "is_best_seller": true,
            
        
    
        
        
            
                "is_new_arrival": true,
            
        
    
        
        
            
                "base_price": 2.01,
            
        
    
        
        
            
                "inventory_quantity": 7,
            
        
    
        
        
            
                "sku": "Grace Hopper",
            
        
    
        
        
            
                "rating_average": 0.39,
            
        
    
        
        
            
                "rating_count": 4,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "subtitle": "Alan Turing",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "product_type": "custom_generator",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "is_best_seller": false,
            
        
    
        
        
            
                "is_new_arrival": true,
            
        
    
        
        
            
                "base_price": 2.96,
            
        
    
        
        
            
                "inventory_quantity": 6,
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "rating_average": 2.02,
            
        
    
        
        
            
                "rating_count": 3,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "subtitle": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "product_type": "custom_generator",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "is_best_seller": true,
            
        
    
        
        
            
                "is_new_arrival": true,
            
        
    
        
        
            
                "base_price": 5.13,
            
        
    
        
        
            
                "inventory_quantity": 8,
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "rating_average": 5.55,
            
        
    
        
        
            
                "rating_count": 2,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "subtitle": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "product_type": "ready_made",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "is_best_seller": false,
            
        
    
        
        
            
                "is_new_arrival": false,
            
        
    
        
        
            
                "base_price": 4.68,
            
        
    
        
        
            
                "inventory_quantity": 7,
            
        
    
        
        
            
                "sku": "Ada Lovelace",
            
        
    
        
        
            
                "rating_average": 6.98,
            
        
    
        
        
            
                "rating_count": 6,
            
        
    
    },
    
];



const ProductVariantsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Alan Turing",
            
        
    
        
        
            
                "sku": "Grace Hopper",
            
        
    
        
        
            
                "size": "30x40",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "price": 2.99,
            
        
    
        
        
            
                "inventory_quantity": 6,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Grace Hopper",
            
        
    
        
        
            
                "sku": "Ada Lovelace",
            
        
    
        
        
            
                "size": "60x80",
            
        
    
        
        
            
                "difficulty": "expert",
            
        
    
        
        
            
                "price": 9.2,
            
        
    
        
        
            
                "inventory_quantity": 1,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Alan Turing",
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "size": "40x50",
            
        
    
        
        
            
                "difficulty": "expert",
            
        
    
        
        
            
                "price": 4.29,
            
        
    
        
        
            
                "inventory_quantity": 4,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Grace Hopper",
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "size": "20x30",
            
        
    
        
        
            
                "difficulty": "expert",
            
        
    
        
        
            
                "price": 1.15,
            
        
    
        
        
            
                "inventory_quantity": 2,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "variant_name": "Grace Hopper",
            
        
    
        
        
            
                "sku": "Alan Turing",
            
        
    
        
        
            
                "size": "30x40",
            
        
    
        
        
            
                "difficulty": "medium",
            
        
    
        
        
            
                "price": 6.54,
            
        
    
        
        
            
                "inventory_quantity": 4,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const PaintColorsData = [
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "color_code": "Marie Curie",
            
        
    
        
        
            
                "hex_value": "Alan Turing",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "color_code": "Grace Hopper",
            
        
    
        
        
            
                "hex_value": "Alan Turing",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "color_code": "Grace Hopper",
            
        
    
        
        
            
                "hex_value": "Alan Turing",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "color_code": "Alan Turing",
            
        
    
        
        
            
                "hex_value": "Alan Turing",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "color_code": "Marie Curie",
            
        
    
        
        
            
                "hex_value": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
];



const ProductColorSetsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "set_name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "total_colors": 9,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "set_name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "total_colors": 7,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "set_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "total_colors": 6,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "set_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "total_colors": 5,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "set_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "total_colors": 3,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
];



const BrushTypesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "brush_shape": "flat",
            
        
    
        
        
            
                "size_number": 9,
            
        
    
        
        
            
                "material": "Alan Turing",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "brush_shape": "round",
            
        
    
        
        
            
                "size_number": 9,
            
        
    
        
        
            
                "material": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "brush_shape": "round",
            
        
    
        
        
            
                "size_number": 9,
            
        
    
        
        
            
                "material": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "brush_shape": "round",
            
        
    
        
        
            
                "size_number": 5,
            
        
    
        
        
            
                "material": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "brush_shape": "filbert",
            
        
    
        
        
            
                "size_number": 3,
            
        
    
        
        
            
                "material": "Marie Curie",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
    },
    
];



const ProductBrushKitsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kit_name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "brush_count": 8,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kit_name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "brush_count": 5,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kit_name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "brush_count": 2,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kit_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "brush_count": 4,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "kit_name": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_many" field
            
        
    
        
        
            
                "brush_count": 5,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
];



const ReviewsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 8,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_verified_purchase": false,
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 6,
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_verified_purchase": false,
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 6,
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_verified_purchase": true,
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 5,
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_verified_purchase": false,
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rating": 8,
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_verified_purchase": false,
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "reviewed_at": new Date(Date.now()),
            
        
    
    },
    
];



const CartsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "subtotal_amount": 3.48,
            
        
    
        
        
            
                "discount_amount": 6.12,
            
        
    
        
        
            
                "shipping_amount": 8.13,
            
        
    
        
        
            
                "tax_amount": 6.98,
            
        
    
        
        
            
                "total_amount": 7.04,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "abandoned",
            
        
    
        
        
            
                "subtotal_amount": 5.1,
            
        
    
        
        
            
                "discount_amount": 1.17,
            
        
    
        
        
            
                "shipping_amount": 1.29,
            
        
    
        
        
            
                "tax_amount": 9.93,
            
        
    
        
        
            
                "total_amount": 8.5,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "abandoned",
            
        
    
        
        
            
                "subtotal_amount": 4.7,
            
        
    
        
        
            
                "discount_amount": 4.06,
            
        
    
        
        
            
                "shipping_amount": 6.68,
            
        
    
        
        
            
                "tax_amount": 7.98,
            
        
    
        
        
            
                "total_amount": 6.97,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "converted",
            
        
    
        
        
            
                "subtotal_amount": 8.64,
            
        
    
        
        
            
                "discount_amount": 0.29,
            
        
    
        
        
            
                "shipping_amount": 6.33,
            
        
    
        
        
            
                "tax_amount": 7.59,
            
        
    
        
        
            
                "total_amount": 2.45,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "abandoned",
            
        
    
        
        
            
                "subtotal_amount": 5.08,
            
        
    
        
        
            
                "discount_amount": 7.68,
            
        
    
        
        
            
                "shipping_amount": 4.14,
            
        
    
        
        
            
                "tax_amount": 6.13,
            
        
    
        
        
            
                "total_amount": 7.31,
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
    },
    
];



const CartItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 2,
            
        
    
        
        
            
                "unit_price": 2.14,
            
        
    
        
        
            
                "line_total": 1.72,
            
        
    
    },
    
    {
    
        
        
            
                // 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": 6.29,
            
        
    
        
        
            
                "line_total": 7.96,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 9,
            
        
    
        
        
            
                "unit_price": 0.63,
            
        
    
        
        
            
                "line_total": 3.88,
            
        
    
    },
    
    {
    
        
        
            
                // 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": 9.57,
            
        
    
        
        
            
                "line_total": 2.36,
            
        
    
    },
    
    {
    
        
        
            
                // 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": 9.74,
            
        
    
        
        
            
                "line_total": 2.49,
            
        
    
    },
    
];



const OrdersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "Marie Curie",
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "payment_status": "authorized",
            
        
    
        
        
            
                "fulfillment_status": "shipped",
            
        
    
        
        
            
                "subtotal_amount": 4.43,
            
        
    
        
        
            
                "discount_amount": 7.58,
            
        
    
        
        
            
                "shipping_amount": 9.13,
            
        
    
        
        
            
                "tax_amount": 0.58,
            
        
    
        
        
            
                "total_amount": 6.4,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "customer_note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "Ada Lovelace",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "payment_status": "failed",
            
        
    
        
        
            
                "fulfillment_status": "packed",
            
        
    
        
        
            
                "subtotal_amount": 0.43,
            
        
    
        
        
            
                "discount_amount": 3.91,
            
        
    
        
        
            
                "shipping_amount": 3.78,
            
        
    
        
        
            
                "tax_amount": 7.86,
            
        
    
        
        
            
                "total_amount": 5.44,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "customer_note": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "Marie Curie",
            
        
    
        
        
            
                "status": "in_production",
            
        
    
        
        
            
                "payment_status": "failed",
            
        
    
        
        
            
                "fulfillment_status": "shipped",
            
        
    
        
        
            
                "subtotal_amount": 7.65,
            
        
    
        
        
            
                "discount_amount": 4.54,
            
        
    
        
        
            
                "shipping_amount": 4.51,
            
        
    
        
        
            
                "tax_amount": 8.4,
            
        
    
        
        
            
                "total_amount": 3.71,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "customer_note": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "Ada Lovelace",
            
        
    
        
        
            
                "status": "delivered",
            
        
    
        
        
            
                "payment_status": "unpaid",
            
        
    
        
        
            
                "fulfillment_status": "in_production",
            
        
    
        
        
            
                "subtotal_amount": 8.22,
            
        
    
        
        
            
                "discount_amount": 2.31,
            
        
    
        
        
            
                "shipping_amount": 4.52,
            
        
    
        
        
            
                "tax_amount": 8.8,
            
        
    
        
        
            
                "total_amount": 6.34,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "customer_note": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_number": "Grace Hopper",
            
        
    
        
        
            
                "status": "pending_payment",
            
        
    
        
        
            
                "payment_status": "refunded",
            
        
    
        
        
            
                "fulfillment_status": "returned",
            
        
    
        
        
            
                "subtotal_amount": 8.23,
            
        
    
        
        
            
                "discount_amount": 2.43,
            
        
    
        
        
            
                "shipping_amount": 8.22,
            
        
    
        
        
            
                "tax_amount": 9.23,
            
        
    
        
        
            
                "total_amount": 3.98,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "placed_at": new Date(Date.now()),
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "fulfilled_at": new Date(Date.now()),
            
        
    
        
        
            
                "customer_note": "Grace Hopper",
            
        
    
    },
    
];



const OrderItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 2,
            
        
    
        
        
            
                "unit_price": 1.74,
            
        
    
        
        
            
                "line_total": 9.22,
            
        
    
        
        
            
                "item_title_snapshot": "Marie Curie",
            
        
    
        
        
            
                "variant_snapshot": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // 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.25,
            
        
    
        
        
            
                "line_total": 9.15,
            
        
    
        
        
            
                "item_title_snapshot": "Grace Hopper",
            
        
    
        
        
            
                "variant_snapshot": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 2,
            
        
    
        
        
            
                "unit_price": 4.89,
            
        
    
        
        
            
                "line_total": 7.27,
            
        
    
        
        
            
                "item_title_snapshot": "Alan Turing",
            
        
    
        
        
            
                "variant_snapshot": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 6,
            
        
    
        
        
            
                "unit_price": 2.69,
            
        
    
        
        
            
                "line_total": 1.2,
            
        
    
        
        
            
                "item_title_snapshot": "Ada Lovelace",
            
        
    
        
        
            
                "variant_snapshot": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 9,
            
        
    
        
        
            
                "unit_price": 2.61,
            
        
    
        
        
            
                "line_total": 9.72,
            
        
    
        
        
            
                "item_title_snapshot": "Marie Curie",
            
        
    
        
        
            
                "variant_snapshot": "Ada Lovelace",
            
        
    
    },
    
];



const AddressesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "address_type": "billing",
            
        
    
        
        
            
                "full_name": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "line1": "Marie Curie",
            
        
    
        
        
            
                "line2": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state_region": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "address_type": "billing",
            
        
    
        
        
            
                "full_name": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "line1": "Ada Lovelace",
            
        
    
        
        
            
                "line2": "Grace Hopper",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "state_region": "Marie Curie",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "country": "Marie Curie",
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "address_type": "billing",
            
        
    
        
        
            
                "full_name": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "line1": "Ada Lovelace",
            
        
    
        
        
            
                "line2": "Marie Curie",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "state_region": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "is_default": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "address_type": "shipping",
            
        
    
        
        
            
                "full_name": "Alan Turing",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "line1": "Alan Turing",
            
        
    
        
        
            
                "line2": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state_region": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "country": "Grace Hopper",
            
        
    
        
        
            
                "is_default": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "address_type": "shipping",
            
        
    
        
        
            
                "full_name": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "line1": "Marie Curie",
            
        
    
        
        
            
                "line2": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "state_region": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "is_default": false,
            
        
    
    },
    
];



const ShipmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "fedex",
            
        
    
        
        
            
                "tracking_number": "Grace Hopper",
            
        
    
        
        
            
                "tracking_url": "Alan Turing",
            
        
    
        
        
            
                "status": "delivered",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "ups",
            
        
    
        
        
            
                "tracking_number": "Ada Lovelace",
            
        
    
        
        
            
                "tracking_url": "Marie Curie",
            
        
    
        
        
            
                "status": "exception",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "other",
            
        
    
        
        
            
                "tracking_number": "Ada Lovelace",
            
        
    
        
        
            
                "tracking_url": "Grace Hopper",
            
        
    
        
        
            
                "status": "delivered",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "ups",
            
        
    
        
        
            
                "tracking_number": "Marie Curie",
            
        
    
        
        
            
                "tracking_url": "Ada Lovelace",
            
        
    
        
        
            
                "status": "returned",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "carrier": "dhl",
            
        
    
        
        
            
                "tracking_number": "Marie Curie",
            
        
    
        
        
            
                "tracking_url": "Ada Lovelace",
            
        
    
        
        
            
                "status": "out_for_delivery",
            
        
    
        
        
            
                "shipped_at": new Date(Date.now()),
            
        
    
        
        
            
                "delivered_at": new Date(Date.now()),
            
        
    
    },
    
];



const DiscountCodesData = [
    
    {
    
        
        
            
                "code": "Grace Hopper",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "discount_type": "free_shipping",
            
        
    
        
        
            
                "value_amount": 8.79,
            
        
    
        
        
            
                "minimum_order_amount": 4.52,
            
        
    
        
        
            
                "usage_limit": 7,
            
        
    
        
        
            
                "usage_count": 8,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "discount_type": "percentage",
            
        
    
        
        
            
                "value_amount": 8.07,
            
        
    
        
        
            
                "minimum_order_amount": 7.14,
            
        
    
        
        
            
                "usage_limit": 9,
            
        
    
        
        
            
                "usage_count": 8,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "code": "Marie Curie",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "discount_type": "fixed_amount",
            
        
    
        
        
            
                "value_amount": 1.2,
            
        
    
        
        
            
                "minimum_order_amount": 2.05,
            
        
    
        
        
            
                "usage_limit": 6,
            
        
    
        
        
            
                "usage_count": 3,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "code": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "discount_type": "fixed_amount",
            
        
    
        
        
            
                "value_amount": 1.44,
            
        
    
        
        
            
                "minimum_order_amount": 5.74,
            
        
    
        
        
            
                "usage_limit": 4,
            
        
    
        
        
            
                "usage_count": 9,
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                "code": "Alan Turing",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "discount_type": "fixed_amount",
            
        
    
        
        
            
                "value_amount": 6.2,
            
        
    
        
        
            
                "minimum_order_amount": 4.87,
            
        
    
        
        
            
                "usage_limit": 1,
            
        
    
        
        
            
                "usage_count": 2,
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                "starts_at": new Date(Date.now()),
            
        
    
        
        
            
                "ends_at": new Date(Date.now()),
            
        
    
    },
    
];



const NewsletterSubscriptionsData = [
    
    {
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_confirmed": false,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_confirmed": true,
            
        
    
        
        
            
                "subscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "unsubscribed_at": new Date(Date.now()),
            
        
    
        
        
            
                "source": "Ada Lovelace",
            
        
    
    },
    
];



const FaqItemsData = [
    
    {
    
        
        
            
                "question": "Marie Curie",
            
        
    
        
        
            
                "answer": "Ada Lovelace",
            
        
    
        
        
            
                "faq_category": "other",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "sort_order": 2,
            
        
    
    },
    
    {
    
        
        
            
                "question": "Marie Curie",
            
        
    
        
        
            
                "answer": "Alan Turing",
            
        
    
        
        
            
                "faq_category": "returns",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "sort_order": 3,
            
        
    
    },
    
    {
    
        
        
            
                "question": "Alan Turing",
            
        
    
        
        
            
                "answer": "Alan Turing",
            
        
    
        
        
            
                "faq_category": "payments",
            
        
    
        
        
            
                "is_published": true,
            
        
    
        
        
            
                "sort_order": 4,
            
        
    
    },
    
    {
    
        
        
            
                "question": "Ada Lovelace",
            
        
    
        
        
            
                "answer": "Alan Turing",
            
        
    
        
        
            
                "faq_category": "returns",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "sort_order": 1,
            
        
    
    },
    
    {
    
        
        
            
                "question": "Ada Lovelace",
            
        
    
        
        
            
                "answer": "Ada Lovelace",
            
        
    
        
        
            
                "faq_category": "payments",
            
        
    
        
        
            
                "is_published": false,
            
        
    
        
        
            
                "sort_order": 7,
            
        
    
    },
    
];



const ContentPagesData = [
    
    {
    
        
        
            
                "page_type": "contact_us",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "slug": "Marie Curie",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "is_published": true,
            
        
    
    },
    
    {
    
        
        
            
                "page_type": "about",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "content": "Ada Lovelace",
            
        
    
        
        
            
                "is_published": false,
            
        
    
    },
    
    {
    
        
        
            
                "page_type": "privacy_policy",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "content": "Marie Curie",
            
        
    
        
        
            
                "is_published": false,
            
        
    
    },
    
    {
    
        
        
            
                "page_type": "contact_us",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Grace Hopper",
            
        
    
        
        
            
                "content": "Grace Hopper",
            
        
    
        
        
            
                "is_published": false,
            
        
    
    },
    
    {
    
        
        
            
                "page_type": "privacy_policy",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "slug": "Alan Turing",
            
        
    
        
        
            
                "content": "Alan Turing",
            
        
    
        
        
            
                "is_published": false,
            
        
    
    },
    
];



const CustomArtworkRequestsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "selected_size": "30x40",
            
        
    
        
        
            
                "selected_difficulty": "hard",
            
        
    
        
        
            
                "estimated_color_count": 5,
            
        
    
        
        
            
                "estimated_price": 7.73,
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "ai_model_version": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "selected_size": "40x50",
            
        
    
        
        
            
                "selected_difficulty": "medium",
            
        
    
        
        
            
                "estimated_color_count": 3,
            
        
    
        
        
            
                "estimated_price": 6.76,
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "ai_model_version": "Alan Turing",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "selected_size": "60x80",
            
        
    
        
        
            
                "selected_difficulty": "expert",
            
        
    
        
        
            
                "estimated_color_count": 4,
            
        
    
        
        
            
                "estimated_price": 2.62,
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "ai_model_version": "Marie Curie",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "processing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "selected_size": "60x80",
            
        
    
        
        
            
                "selected_difficulty": "expert",
            
        
    
        
        
            
                "estimated_color_count": 5,
            
        
    
        
        
            
                "estimated_price": 1.02,
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "ai_model_version": "Grace Hopper",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "uploaded",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "selected_size": "50x70",
            
        
    
        
        
            
                "selected_difficulty": "hard",
            
        
    
        
        
            
                "estimated_color_count": 7,
            
        
    
        
        
            
                "estimated_price": 6.63,
            
        
    
        
        
            
                "instructions": "Grace Hopper",
            
        
    
        
        
            
                "ai_model_version": "Ada Lovelace",
            
        
    
        
        
            
                "submitted_at": new Date(Date.now()),
            
        
    
        
        
            
                "processed_at": new Date(Date.now()),
            
        
    
        
        
            
                "approved_at": new Date(Date.now()),
            
        
    
    },
    
];



const AiGenerationJobsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_status": "succeeded",
            
        
    
        
        
            
                "provider": "Ada Lovelace",
            
        
    
        
        
            
                "provider_job_ref": "Alan Turing",
            
        
    
        
        
            
                "runtime_seconds": 9.88,
            
        
    
        
        
            
                "error_message": "Ada Lovelace",
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_status": "succeeded",
            
        
    
        
        
            
                "provider": "Ada Lovelace",
            
        
    
        
        
            
                "provider_job_ref": "Marie Curie",
            
        
    
        
        
            
                "runtime_seconds": 1.33,
            
        
    
        
        
            
                "error_message": "Grace Hopper",
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_status": "failed",
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "provider_job_ref": "Grace Hopper",
            
        
    
        
        
            
                "runtime_seconds": 2.16,
            
        
    
        
        
            
                "error_message": "Alan Turing",
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_status": "running",
            
        
    
        
        
            
                "provider": "Marie Curie",
            
        
    
        
        
            
                "provider_job_ref": "Grace Hopper",
            
        
    
        
        
            
                "runtime_seconds": 3.98,
            
        
    
        
        
            
                "error_message": "Alan Turing",
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_status": "failed",
            
        
    
        
        
            
                "provider": "Marie Curie",
            
        
    
        
        
            
                "provider_job_ref": "Ada Lovelace",
            
        
    
        
        
            
                "runtime_seconds": 1.0,
            
        
    
        
        
            
                "error_message": "Alan Turing",
            
        
    
        
        
            
                "queued_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
    },
    
];



const SupportTicketsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "message": "Ada Lovelace",
            
        
    
        
        
            
                "status": "pending",
            
        
    
        
        
            
                "priority": "urgent",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Marie Curie",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Ada Lovelace",
            
        
    
        
        
            
                "message": "Grace Hopper",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "subject": "Alan Turing",
            
        
    
        
        
            
                "message": "Alan Turing",
            
        
    
        
        
            
                "status": "closed",
            
        
    
        
        
            
                "priority": "low",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "opened_at": new Date(Date.now()),
            
        
    
        
        
            
                "resolved_at": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateProductWithCategory() {
            
                const relatedCategory0 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setCategory)
                {
                    await
                    Product0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setCategory)
                {
                    await
                    Product1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setCategory)
                {
                    await
                    Product2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setCategory)
                {
                    await
                    Product3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await ProductCategories.findOne({
                    offset: Math.floor(Math.random() * (await ProductCategories.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setCategory)
                {
                    await
                    Product4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
            
            async function associateProductWithBrand() {
            
                const relatedBrand0 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product0 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Product0?.setBrand)
                {
                    await
                    Product0.
                    setBrand(relatedBrand0);
                }
            
                const relatedBrand1 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product1 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Product1?.setBrand)
                {
                    await
                    Product1.
                    setBrand(relatedBrand1);
                }
            
                const relatedBrand2 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product2 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Product2?.setBrand)
                {
                    await
                    Product2.
                    setBrand(relatedBrand2);
                }
            
                const relatedBrand3 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product3 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Product3?.setBrand)
                {
                    await
                    Product3.
                    setBrand(relatedBrand3);
                }
            
                const relatedBrand4 = await Brands.findOne({
                    offset: Math.floor(Math.random() * (await Brands.count())),
                });
                const Product4 = await Products.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Product4?.setBrand)
                {
                    await
                    Product4.
                    setBrand(relatedBrand4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

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

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProductColorSetWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductColorSet0 = await ProductColorSets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductColorSet0?.setProduct)
                {
                    await
                    ProductColorSet0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductColorSet1 = await ProductColorSets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductColorSet1?.setProduct)
                {
                    await
                    ProductColorSet1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductColorSet2 = await ProductColorSets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductColorSet2?.setProduct)
                {
                    await
                    ProductColorSet2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductColorSet3 = await ProductColorSets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductColorSet3?.setProduct)
                {
                    await
                    ProductColorSet3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductColorSet4 = await ProductColorSets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductColorSet4?.setProduct)
                {
                    await
                    ProductColorSet4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateProductBrushKitWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductBrushKit0 = await ProductBrushKits.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ProductBrushKit0?.setProduct)
                {
                    await
                    ProductBrushKit0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductBrushKit1 = await ProductBrushKits.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ProductBrushKit1?.setProduct)
                {
                    await
                    ProductBrushKit1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductBrushKit2 = await ProductBrushKits.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ProductBrushKit2?.setProduct)
                {
                    await
                    ProductBrushKit2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductBrushKit3 = await ProductBrushKits.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ProductBrushKit3?.setProduct)
                {
                    await
                    ProductBrushKit3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const ProductBrushKit4 = await ProductBrushKits.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ProductBrushKit4?.setProduct)
                {
                    await
                    ProductBrushKit4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
    
        
            // Similar logic for "relation_many"
        
    
        
    
        
    

    
    
    
        
            
            async function associateReviewWithProduct() {
            
                const relatedProduct0 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setProduct)
                {
                    await
                    Review0.
                    setProduct(relatedProduct0);
                }
            
                const relatedProduct1 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setProduct)
                {
                    await
                    Review1.
                    setProduct(relatedProduct1);
                }
            
                const relatedProduct2 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setProduct)
                {
                    await
                    Review2.
                    setProduct(relatedProduct2);
                }
            
                const relatedProduct3 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setProduct)
                {
                    await
                    Review3.
                    setProduct(relatedProduct3);
                }
            
                const relatedProduct4 = await Products.findOne({
                    offset: Math.floor(Math.random() * (await Products.count())),
                });
                const Review4 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Review4?.setProduct)
                {
                    await
                    Review4.
                    setProduct(relatedProduct4);
                }
            
        }
        
    
        
            
            async function associateReviewWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review0 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Review0?.setUser)
                {
                    await
                    Review0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review1 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Review1?.setUser)
                {
                    await
                    Review1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review2 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Review2?.setUser)
                {
                    await
                    Review2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review3 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Review3?.setUser)
                {
                    await
                    Review3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Review4 = await Reviews.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Review4?.setUser)
                {
                    await
                    Review4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCartWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart0 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Cart0?.setUser)
                {
                    await
                    Cart0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart1 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Cart1?.setUser)
                {
                    await
                    Cart1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart2 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Cart2?.setUser)
                {
                    await
                    Cart2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart3 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Cart3?.setUser)
                {
                    await
                    Cart3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Cart4 = await Carts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Cart4?.setUser)
                {
                    await
                    Cart4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

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

    
    
    
        
            
            async function associateOrderWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setUser)
                {
                    await
                    Order0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setUser)
                {
                    await
                    Order1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setUser)
                {
                    await
                    Order2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setUser)
                {
                    await
                    Order3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setUser)
                {
                    await
                    Order4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

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

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

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

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateNewsletterSubscriptionWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NewsletterSubscription0 = await NewsletterSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NewsletterSubscription0?.setUser)
                {
                    await
                    NewsletterSubscription0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NewsletterSubscription1 = await NewsletterSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NewsletterSubscription1?.setUser)
                {
                    await
                    NewsletterSubscription1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NewsletterSubscription2 = await NewsletterSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NewsletterSubscription2?.setUser)
                {
                    await
                    NewsletterSubscription2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NewsletterSubscription3 = await NewsletterSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NewsletterSubscription3?.setUser)
                {
                    await
                    NewsletterSubscription3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const NewsletterSubscription4 = await NewsletterSubscriptions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NewsletterSubscription4?.setUser)
                {
                    await
                    NewsletterSubscription4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCustomArtworkRequestWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CustomArtworkRequest0 = await CustomArtworkRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CustomArtworkRequest0?.setUser)
                {
                    await
                    CustomArtworkRequest0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CustomArtworkRequest1 = await CustomArtworkRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CustomArtworkRequest1?.setUser)
                {
                    await
                    CustomArtworkRequest1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CustomArtworkRequest2 = await CustomArtworkRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CustomArtworkRequest2?.setUser)
                {
                    await
                    CustomArtworkRequest2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CustomArtworkRequest3 = await CustomArtworkRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CustomArtworkRequest3?.setUser)
                {
                    await
                    CustomArtworkRequest3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const CustomArtworkRequest4 = await CustomArtworkRequests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CustomArtworkRequest4?.setUser)
                {
                    await
                    CustomArtworkRequest4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateAiGenerationJobWithRequest() {
            
                const relatedRequest0 = await CustomArtworkRequests.findOne({
                    offset: Math.floor(Math.random() * (await CustomArtworkRequests.count())),
                });
                const AiGenerationJob0 = await AiGenerationJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (AiGenerationJob0?.setRequest)
                {
                    await
                    AiGenerationJob0.
                    setRequest(relatedRequest0);
                }
            
                const relatedRequest1 = await CustomArtworkRequests.findOne({
                    offset: Math.floor(Math.random() * (await CustomArtworkRequests.count())),
                });
                const AiGenerationJob1 = await AiGenerationJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (AiGenerationJob1?.setRequest)
                {
                    await
                    AiGenerationJob1.
                    setRequest(relatedRequest1);
                }
            
                const relatedRequest2 = await CustomArtworkRequests.findOne({
                    offset: Math.floor(Math.random() * (await CustomArtworkRequests.count())),
                });
                const AiGenerationJob2 = await AiGenerationJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (AiGenerationJob2?.setRequest)
                {
                    await
                    AiGenerationJob2.
                    setRequest(relatedRequest2);
                }
            
                const relatedRequest3 = await CustomArtworkRequests.findOne({
                    offset: Math.floor(Math.random() * (await CustomArtworkRequests.count())),
                });
                const AiGenerationJob3 = await AiGenerationJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (AiGenerationJob3?.setRequest)
                {
                    await
                    AiGenerationJob3.
                    setRequest(relatedRequest3);
                }
            
                const relatedRequest4 = await CustomArtworkRequests.findOne({
                    offset: Math.floor(Math.random() * (await CustomArtworkRequests.count())),
                });
                const AiGenerationJob4 = await AiGenerationJobs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (AiGenerationJob4?.setRequest)
                {
                    await
                    AiGenerationJob4.
                    setRequest(relatedRequest4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSupportTicketWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket0 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SupportTicket0?.setUser)
                {
                    await
                    SupportTicket0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket1 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SupportTicket1?.setUser)
                {
                    await
                    SupportTicket1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket2 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SupportTicket2?.setUser)
                {
                    await
                    SupportTicket2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket3 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SupportTicket3?.setUser)
                {
                    await
                    SupportTicket3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const SupportTicket4 = await SupportTickets.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SupportTicket4?.setUser)
                {
                    await
                    SupportTicket4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Brands.bulkCreate(BrandsData);
                
            
            
                
                await ProductCategories.bulkCreate(ProductCategoriesData);
                
            
            
                
                await Products.bulkCreate(ProductsData);
                
            
            
                
                await ProductVariants.bulkCreate(ProductVariantsData);
                
            
            
                
                await PaintColors.bulkCreate(PaintColorsData);
                
            
            
                
                await ProductColorSets.bulkCreate(ProductColorSetsData);
                
            
            
                
                await BrushTypes.bulkCreate(BrushTypesData);
                
            
            
                
                await ProductBrushKits.bulkCreate(ProductBrushKitsData);
                
            
            
                
                await Reviews.bulkCreate(ReviewsData);
                
            
            
                
                await Carts.bulkCreate(CartsData);
                
            
            
                
                await CartItems.bulkCreate(CartItemsData);
                
            
            
                
                await Orders.bulkCreate(OrdersData);
                
            
            
                
                await OrderItems.bulkCreate(OrderItemsData);
                
            
            
                
                await Addresses.bulkCreate(AddressesData);
                
            
            
                
                await Shipments.bulkCreate(ShipmentsData);
                
            
            
                
                await DiscountCodes.bulkCreate(DiscountCodesData);
                
            
            
                
                await NewsletterSubscriptions.bulkCreate(NewsletterSubscriptionsData);
                
            
            
                
                await FaqItems.bulkCreate(FaqItemsData);
                
            
            
                
                await ContentPages.bulkCreate(ContentPagesData);
                
            
            
                
                await CustomArtworkRequests.bulkCreate(CustomArtworkRequestsData);
                
            
            
                
                await AiGenerationJobs.bulkCreate(AiGenerationJobsData);
                
            
            
                
                await SupportTickets.bulkCreate(SupportTicketsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateProductWithCategory(),
                    
                
                    
                        
                        await associateProductWithBrand(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProductVariantWithProduct(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProductColorSetWithProduct(),
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateProductBrushKitWithProduct(),
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateReviewWithProduct(),
                    
                
                    
                        
                        await associateReviewWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCartWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCartItemWithCart(),
                    
                
                    
                        
                        await associateCartItemWithProduct(),
                    
                
                    
                        
                        await associateCartItemWithVariant(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateOrderWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateOrderItemWithOrder(),
                    
                
                    
                        
                        await associateOrderItemWithProduct(),
                    
                
                    
                        
                        await associateOrderItemWithVariant(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAddressWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateShipmentWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateNewsletterSubscriptionWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCustomArtworkRequestWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateAiGenerationJobWithRequest(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSupportTicketWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('brands', null, {});
            
            
            await queryInterface.bulkDelete('product_categories', null, {});
            
            
            await queryInterface.bulkDelete('products', null, {});
            
            
            await queryInterface.bulkDelete('product_variants', null, {});
            
            
            await queryInterface.bulkDelete('paint_colors', null, {});
            
            
            await queryInterface.bulkDelete('product_color_sets', null, {});
            
            
            await queryInterface.bulkDelete('brush_types', null, {});
            
            
            await queryInterface.bulkDelete('product_brush_kits', null, {});
            
            
            await queryInterface.bulkDelete('reviews', null, {});
            
            
            await queryInterface.bulkDelete('carts', null, {});
            
            
            await queryInterface.bulkDelete('cart_items', null, {});
            
            
            await queryInterface.bulkDelete('orders', null, {});
            
            
            await queryInterface.bulkDelete('order_items', null, {});
            
            
            await queryInterface.bulkDelete('addresses', null, {});
            
            
            await queryInterface.bulkDelete('shipments', null, {});
            
            
            await queryInterface.bulkDelete('discount_codes', null, {});
            
            
            await queryInterface.bulkDelete('newsletter_subscriptions', null, {});
            
            
            await queryInterface.bulkDelete('faq_items', null, {});
            
            
            await queryInterface.bulkDelete('content_pages', null, {});
            
            
            await queryInterface.bulkDelete('custom_artwork_requests', null, {});
            
            
            await queryInterface.bulkDelete('ai_generation_jobs', null, {});
            
            
            await queryInterface.bulkDelete('support_tickets', null, {});
            
        
    },
};