





















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






const WorldRegions = db.world_regions;

const Locations = db.locations;

const PlayerProfiles = db.player_profiles;

const CustomizationItems = db.customization_items;

const Tools = db.tools;

const ItemCategories = db.item_categories;

const Items = db.items;

const Npcs = db.npcs;

const Families = db.families;

const FamilyMemberships = db.family_memberships;

const NpcRelationships = db.npc_relationships;

const DialogueTopics = db.dialogue_topics;

const DialogueLines = db.dialogue_lines;

const Quests = db.quests;

const QuestObjectives = db.quest_objectives;

const MarketStores = db.market_stores;

const Employees = db.employees;

const Suppliers = db.suppliers;

const StoreProducts = db.store_products;

const StoreInventoryBatches = db.store_inventory_batches;

const PurchaseOrders = db.purchase_orders;

const PurchaseOrderLines = db.purchase_order_lines;

const Deliveries = db.deliveries;

const Shelves = db.shelves;

const ShelfSlots = db.shelf_slots;

const CashRegisters = db.cash_registers;

const SalesTransactions = db.sales_transactions;

const SalesTransactionLines = db.sales_transaction_lines;

const DailyReports = db.daily_reports;

const WeatherStates = db.weather_states;

const WorldCalendarDays = db.world_calendar_days;

const PriceModifiers = db.price_modifiers;

const Crops = db.crops;

const FarmPlots = db.farm_plots;

const Plantings = db.plantings;

const FishSpecies = db.fish_species;

const FishingSpots = db.fishing_spots;

const FishingCatches = db.fishing_catches;

const CraftingRecipes = db.crafting_recipes;

const RecipeIngredients = db.recipe_ingredients;

const Buildings = db.buildings;

const ConstructionProjects = db.construction_projects;

const Festivals = db.festivals;

const FestivalAttendance = db.festival_attendance;

const RandomEvents = db.random_events;







const WorldRegionsData = [
    
    {
    
        
        
            
                "name": "Village Center",
            
        
    
        
        
            
                "region_type": "farm",
            
        
    
        
        
            
                "description": "Heart of the island with the town square and key services",
            
        
    
        
        
            
                "latitude": -22.9981,
            
        
    
        
        
            
                "longitude": -43.2065,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_fast_travel_unlocked": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ilha Market District",
            
        
    
        
        
            
                "region_type": "secret_location",
            
        
    
        
        
            
                "description": "Commercial area around the supermarket and supply docks",
            
        
    
        
        
            
                "latitude": -22.9992,
            
        
    
        
        
            
                "longitude": -43.209,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_fast_travel_unlocked": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Porto da Esperanca",
            
        
    
        
        
            
                "region_type": "school",
            
        
    
        
        
            
                "description": "Harbor for imports, deliveries, and fishing boats",
            
        
    
        
        
            
                "latitude": -23.001,
            
        
    
        
        
            
                "longitude": -43.2142,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_fast_travel_unlocked": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mangrove Belt",
            
        
    
        
        
            
                "region_type": "school",
            
        
    
        
        
            
                "description": "Dense mangroves with unique fish and plants",
            
        
    
        
        
            
                "latitude": -23.0045,
            
        
    
        
        
            
                "longitude": -43.2191,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_fast_travel_unlocked": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mountain Lookout",
            
        
    
        
        
            
                "region_type": "farm",
            
        
    
        
        
            
                "description": "High viewpoint with trails and rare resources",
            
        
    
        
        
            
                "latitude": -23.0102,
            
        
    
        
        
            
                "longitude": -43.2215,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_fast_travel_unlocked": true,
            
        
    
    },
    
];



const LocationsData = [
    
    {
    
        
        
            
                "name": "Ilha Market",
            
        
    
        
        
            
                "location_kind": "poi",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Main supermarket building and stockroom",
            
        
    
        
        
            
                "latitude": -22.9993,
            
        
    
        
        
            
                "longitude": -43.2091,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_locked": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Town Square",
            
        
    
        
        
            
                "location_kind": "building",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Gathering place for meetings and festivals",
            
        
    
        
        
            
                "latitude": -22.998,
            
        
    
        
        
            
                "longitude": -43.2064,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_locked": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Porto Warehouse",
            
        
    
        
        
            
                "location_kind": "building",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Storage for incoming shipments and customs checks",
            
        
    
        
        
            
                "latitude": -23.0011,
            
        
    
        
        
            
                "longitude": -43.2141,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_locked": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Casa Horizonte",
            
        
    
        
        
            
                "location_kind": "poi",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Cozy hillside home with ocean view",
            
        
    
        
        
            
                "latitude": -23.0072,
            
        
    
        
        
            
                "longitude": -43.2169,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_locked": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mangrove Pier",
            
        
    
        
        
            
                "location_kind": "road",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Small dock for quiet fishing and canoe access",
            
        
    
        
        
            
                "latitude": -23.0047,
            
        
    
        
        
            
                "longitude": -43.2193,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_locked": false,
            
        
    
    },
    
];



const PlayerProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "gender": "male",
            
        
    
        
        
            
                "first_name": "Aline",
            
        
    
        
        
            
                "last_name": "Santos",
            
        
    
        
        
            
                "started_at": new Date('2026-07-01T12:00:00Z'),
            
        
    
        
        
            
                "level": 12,
            
        
    
        
        
            
                "experience_points": 3450,
            
        
    
        
        
            
                "money_balance": 1250.5,
            
        
    
        
        
            
                "pix_balance": 320.75,
            
        
    
        
        
            
                "reputation_score": 18.2,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "gender": "male",
            
        
    
        
        
            
                "first_name": "Bruno",
            
        
    
        
        
            
                "last_name": "Moraes",
            
        
    
        
        
            
                "started_at": new Date('2026-07-03T12:00:00Z'),
            
        
    
        
        
            
                "level": 9,
            
        
    
        
        
            
                "experience_points": 2100,
            
        
    
        
        
            
                "money_balance": 860,
            
        
    
        
        
            
                "pix_balance": 95,
            
        
    
        
        
            
                "reputation_score": 12.5,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "gender": "female",
            
        
    
        
        
            
                "first_name": "Carla",
            
        
    
        
        
            
                "last_name": "Ferreira",
            
        
    
        
        
            
                "started_at": new Date('2026-07-05T12:00:00Z'),
            
        
    
        
        
            
                "level": 7,
            
        
    
        
        
            
                "experience_points": 1550,
            
        
    
        
        
            
                "money_balance": 540.2,
            
        
    
        
        
            
                "pix_balance": 60.1,
            
        
    
        
        
            
                "reputation_score": 9.3,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "gender": "non_binary",
            
        
    
        
        
            
                "first_name": "Diego",
            
        
    
        
        
            
                "last_name": "Ribeiro",
            
        
    
        
        
            
                "started_at": new Date('2026-07-06T12:00:00Z'),
            
        
    
        
        
            
                "level": 6,
            
        
    
        
        
            
                "experience_points": 1200,
            
        
    
        
        
            
                "money_balance": 420.8,
            
        
    
        
        
            
                "pix_balance": 40.5,
            
        
    
        
        
            
                "reputation_score": 7.9,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "gender": "male",
            
        
    
        
        
            
                "first_name": "Eli",
            
        
    
        
        
            
                "last_name": "Pereira",
            
        
    
        
        
            
                "started_at": new Date('2026-07-07T12:00:00Z'),
            
        
    
        
        
            
                "level": 5,
            
        
    
        
        
            
                "experience_points": 980,
            
        
    
        
        
            
                "money_balance": 310,
            
        
    
        
        
            
                "pix_balance": 25,
            
        
    
        
        
            
                "reputation_score": 6.4,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const CustomizationItemsData = [
    
    {
    
        
        
            
                "name": "Curly Beach Hair",
            
        
    
        
        
            
                "slot": "top",
            
        
    
        
        
            
                "rarity": "legendary",
            
        
    
        
        
            
                "price": 120,
            
        
    
        
        
            
                "is_dyeable": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Sunset Tank Top",
            
        
    
        
        
            
                "slot": "bottom",
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "price": 60,
            
        
    
        
        
            
                "is_dyeable": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Island Sandals",
            
        
    
        
        
            
                "slot": "accessory",
            
        
    
        
        
            
                "rarity": "common",
            
        
    
        
        
            
                "price": 45,
            
        
    
        
        
            
                "is_dyeable": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Pearl Bracelet",
            
        
    
        
        
            
                "slot": "eyes",
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "price": 220,
            
        
    
        
        
            
                "is_dyeable": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Canvas Backpack",
            
        
    
        
        
            
                "slot": "hair",
            
        
    
        
        
            
                "rarity": "uncommon",
            
        
    
        
        
            
                "price": 150,
            
        
    
        
        
            
                "is_dyeable": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const ToolsData = [
    
    {
    
        
        
            
                "name": "Basic Fishing Rod",
            
        
    
        
        
            
                "tool_type": "hoe",
            
        
    
        
        
            
                "tier": "legendary",
            
        
    
        
        
            
                "durability_max": 100,
            
        
    
        
        
            
                "durability_current": 92,
            
        
    
        
        
            
                "repair_cost": 15,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Copper Axe",
            
        
    
        
        
            
                "tool_type": "axe",
            
        
    
        
        
            
                "tier": "copper",
            
        
    
        
        
            
                "durability_max": 140,
            
        
    
        
        
            
                "durability_current": 140,
            
        
    
        
        
            
                "repair_cost": 25,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Iron Pickaxe",
            
        
    
        
        
            
                "tool_type": "hoe",
            
        
    
        
        
            
                "tier": "basic",
            
        
    
        
        
            
                "durability_max": 180,
            
        
    
        
        
            
                "durability_current": 163,
            
        
    
        
        
            
                "repair_cost": 35,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Watering Can",
            
        
    
        
        
            
                "tool_type": "knife",
            
        
    
        
        
            
                "tier": "copper",
            
        
    
        
        
            
                "durability_max": 120,
            
        
    
        
        
            
                "durability_current": 110,
            
        
    
        
        
            
                "repair_cost": 18,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Utility Cart",
            
        
    
        
        
            
                "tool_type": "vehicle",
            
        
    
        
        
            
                "tier": "basic",
            
        
    
        
        
            
                "durability_max": 300,
            
        
    
        
        
            
                "durability_current": 285,
            
        
    
        
        
            
                "repair_cost": 55,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const ItemCategoriesData = [
    
    {
    
        
        
            
                "name": "Fresh Produce",
            
        
    
        
        
            
                "category_kind": "flowers",
            
        
    
        
        
            
                "description": "Fruits and vegetables grown locally and imported",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Bakery Goods",
            
        
    
        
        
            
                "category_kind": "seafood",
            
        
    
        
        
            
                "description": "Breads and pastries from island ovens",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Seafood",
            
        
    
        
        
            
                "category_kind": "beverages",
            
        
    
        
        
            
                "description": "Daily catch from the coast and mangroves",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Crafting Materials",
            
        
    
        
        
            
                "category_kind": "crafting_material",
            
        
    
        
        
            
                "description": "Resources used in crafting and building",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Seeds and Saplings",
            
        
    
        
        
            
                "category_kind": "bakery",
            
        
    
        
        
            
                "description": "Seeds for farming and trees",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const ItemsData = [
    
    {
    
        
        
            
                "name": "Banana Bunch",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "tool",
            
        
    
        
        
            
                "description": "Sweet bananas from hillside groves",
            
        
    
        
        
            
                "base_price": 6.5,
            
        
    
        
        
            
                "weight": 0.8,
            
        
    
        
        
            
                "is_stackable": true,
            
        
    
        
        
            
                "max_stack_size": 20,
            
        
    
        
        
            
                "is_perishable": true,
            
        
    
        
        
            
                "shelf_life_days": 5,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Pao Frances",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "decoration",
            
        
    
        
        
            
                "description": "Classic fresh bread rolls",
            
        
    
        
        
            
                "base_price": 4.2,
            
        
    
        
        
            
                "weight": 0.3,
            
        
    
        
        
            
                "is_stackable": true,
            
        
    
        
        
            
                "max_stack_size": 30,
            
        
    
        
        
            
                "is_perishable": true,
            
        
    
        
        
            
                "shelf_life_days": 2,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Coconut",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "consumable",
            
        
    
        
        
            
                "description": "Fresh coconut for drinks and cooking",
            
        
    
        
        
            
                "base_price": 7,
            
        
    
        
        
            
                "weight": 1.2,
            
        
    
        
        
            
                "is_stackable": true,
            
        
    
        
        
            
                "max_stack_size": 15,
            
        
    
        
        
            
                "is_perishable": true,
            
        
    
        
        
            
                "shelf_life_days": 10,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Coffee Beans",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "product",
            
        
    
        
        
            
                "description": "Aromatic beans used for drinks and recipes",
            
        
    
        
        
            
                "base_price": 18,
            
        
    
        
        
            
                "weight": 0.5,
            
        
    
        
        
            
                "is_stackable": true,
            
        
    
        
        
            
                "max_stack_size": 50,
            
        
    
        
        
            
                "is_perishable": false,
            
        
    
        
        
            
                "shelf_life_days": 0,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Tomato Seeds",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "item_type": "seed",
            
        
    
        
        
            
                "description": "Seeds for planting tomatoes",
            
        
    
        
        
            
                "base_price": 9.5,
            
        
    
        
        
            
                "weight": 0.05,
            
        
    
        
        
            
                "is_stackable": true,
            
        
    
        
        
            
                "max_stack_size": 99,
            
        
    
        
        
            
                "is_perishable": true,
            
        
    
        
        
            
                "shelf_life_days": 0,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const NpcsData = [
    
    {
    
        
        
            
                "name": "Dona Percilia",
            
        
    
        
        
            
                "age": 68,
            
        
    
        
        
            
                "profession": "tourist",
            
        
    
        
        
            
                "personality": "serious",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bio": "Retired merchant determined to revive the community supermarket",
            
        
    
        
        
            
                "emotion_state": "excited",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_main_character": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Helena Mendonca",
            
        
    
        
        
            
                "age": 38,
            
        
    
        
        
            
                "profession": "farmer",
            
        
    
        
        
            
                "personality": "bold",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bio": "Local teacher invested in the island future",
            
        
    
        
        
            
                "emotion_state": "tired",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_main_character": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Leonardo Mendonca",
            
        
    
        
        
            
                "age": 40,
            
        
    
        
        
            
                "profession": "farmer",
            
        
    
        
        
            
                "personality": "friendly",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bio": "Harbor logistics expert who knows every shipment route",
            
        
    
        
        
            
                "emotion_state": "tired",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_main_character": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Natasha",
            
        
    
        
        
            
                "age": 27,
            
        
    
        
        
            
                "profession": "student",
            
        
    
        
        
            
                "personality": "ambitious",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bio": "Craftsperson who loves festivals and new ideas",
            
        
    
        
        
            
                "emotion_state": "happy",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_main_character": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Joao Oliveira",
            
        
    
        
        
            
                "age": 45,
            
        
    
        
        
            
                "profession": "teacher",
            
        
    
        
        
            
                "personality": "bold",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "bio": "Experienced fisher who teaches advanced techniques",
            
        
    
        
        
            
                "emotion_state": "sad",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "is_main_character": true,
            
        
    
    },
    
];



const FamiliesData = [
    
    {
    
        
        
            
                "name": "Mendonca Family",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "family_story": "A hardworking family balancing school, harbor work, and community duty",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Oliveira Family",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "family_story": "Fishers and cooks known for generous meals",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Rita Household",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "family_story": "A small household with deep island roots and traditions",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Town Square Neighbors",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "family_story": "Neighbors who coordinate events and keep public spaces tidy",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Harbor Crew Home",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "family_story": "A group of workers sharing duties during peak season",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const FamilyMembershipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role_in_family": "child",
            
        
    
        
        
            
                "is_head_of_household": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role_in_family": "parent",
            
        
    
        
        
            
                "is_head_of_household": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role_in_family": "guardian",
            
        
    
        
        
            
                "is_head_of_household": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role_in_family": "guardian",
            
        
    
        
        
            
                "is_head_of_household": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role_in_family": "sibling",
            
        
    
        
        
            
                "is_head_of_household": true,
            
        
    
    },
    
];



const NpcRelationshipsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "relationship_type": "acquaintance",
            
        
    
        
        
            
                "friendship_points": 62,
            
        
    
        
        
            
                "trust_points": 58,
            
        
    
        
        
            
                "last_interaction_at": new Date('2026-07-15T16:20:00Z'),
            
        
    
        
        
            
                "is_unlocked": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "relationship_type": "acquaintance",
            
        
    
        
        
            
                "friendship_points": 22,
            
        
    
        
        
            
                "trust_points": 18,
            
        
    
        
        
            
                "last_interaction_at": new Date('2026-07-14T10:05:00Z'),
            
        
    
        
        
            
                "is_unlocked": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "relationship_type": "acquaintance",
            
        
    
        
        
            
                "friendship_points": 48,
            
        
    
        
        
            
                "trust_points": 41,
            
        
    
        
        
            
                "last_interaction_at": new Date('2026-07-14T18:35:00Z'),
            
        
    
        
        
            
                "is_unlocked": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "relationship_type": "best_friend",
            
        
    
        
        
            
                "friendship_points": 15,
            
        
    
        
        
            
                "trust_points": 12,
            
        
    
        
        
            
                "last_interaction_at": new Date('2026-07-13T19:10:00Z'),
            
        
    
        
        
            
                "is_unlocked": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "relationship_type": "friend",
            
        
    
        
        
            
                "friendship_points": 35,
            
        
    
        
        
            
                "trust_points": 33,
            
        
    
        
        
            
                "last_interaction_at": new Date('2026-07-12T06:50:00Z'),
            
        
    
        
        
            
                "is_unlocked": true,
            
        
    
    },
    
];



const DialogueTopicsData = [
    
    {
    
        
        
            
                "title": "Welcome to Ilha Market",
            
        
    
        
        
            
                "summary": "Intro conversation about reopening the market",
            
        
    
        
        
            
                "topic_type": "market",
            
        
    
        
        
            
                "is_repeatable": false,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Morning Catch",
            
        
    
        
        
            
                "summary": "Chat about fish activity and tides",
            
        
    
        
        
            
                "topic_type": "relationship",
            
        
    
        
        
            
                "is_repeatable": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Festival Preparations",
            
        
    
        
        
            
                "summary": "Planning tasks and invitations for the town festival",
            
        
    
        
        
            
                "topic_type": "greeting",
            
        
    
        
        
            
                "is_repeatable": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Pricing Advice",
            
        
    
        
        
            
                "summary": "Tips on dynamic pricing and customer moods",
            
        
    
        
        
            
                "topic_type": "small_talk",
            
        
    
        
        
            
                "is_repeatable": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Helping a Neighbor",
            
        
    
        
        
            
                "summary": "A friendly request that can lead to a quest",
            
        
    
        
        
            
                "topic_type": "festival",
            
        
    
        
        
            
                "is_repeatable": true,
            
        
    
    },
    
];



const DialogueLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_text": "Thank you for coming. The island needs this market open again.",
            
        
    
        
        
            
                "mood_tag": "serious",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "priority": 10,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_text": "When tourists arrive, basics sell fast. Keep stock and watch prices.",
            
        
    
        
        
            
                "mood_tag": "neutral",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "priority": 7,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_text": "If we decorate the square, more people will show up for sure.",
            
        
    
        
        
            
                "mood_tag": "angry",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "priority": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_text": "Cloudy mornings are good. Fish stay closer to the mangroves.",
            
        
    
        
        
            
                "mood_tag": "sad",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "priority": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "line_text": "Could you bring some fresh bread to the school later today?",
            
        
    
        
        
            
                "mood_tag": "serious",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                "priority": 9,
            
        
    
    },
    
];



const QuestsData = [
    
    {
    
        
        
            
                "title": "Reopen the Supermarket",
            
        
    
        
        
            
                "quest_type": "community",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "description": "Help Dona Percilia restore basic operations at Ilha Market",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "available_from": new Date('2026-07-01T12:00:00Z'),
            
        
    
        
        
            
                "available_until": new Date('2026-12-31T23:59:00Z'),
            
        
    
        
        
            
                "reward_money": 250,
            
        
    
        
        
            
                "reward_reputation": 5,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Bread for the School",
            
        
    
        
        
            
                "quest_type": "market",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "description": "Deliver fresh bread rolls to the school for lunch",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "available_from": new Date('2026-07-10T08:00:00Z'),
            
        
    
        
        
            
                "available_until": new Date('2026-07-30T20:00:00Z'),
            
        
    
        
        
            
                "reward_money": 60,
            
        
    
        
        
            
                "reward_reputation": 2,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Mangrove Fishing Lesson",
            
        
    
        
        
            
                "quest_type": "fishing",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "description": "Catch two mangrove fish with Joao guidance",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "available_from": new Date('2026-07-08T06:00:00Z'),
            
        
    
        
        
            
                "available_until": new Date('2026-08-15T22:00:00Z'),
            
        
    
        
        
            
                "reward_money": 80,
            
        
    
        
        
            
                "reward_reputation": 2.5,
            
        
    
    },
    
    {
    
        
        
            
                "title": "First Delivery Check In",
            
        
    
        
        
            
                "quest_type": "story",
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "description": "Receive the first shipment and stock the shelves",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "available_from": new Date('2026-07-05T09:00:00Z'),
            
        
    
        
        
            
                "available_until": new Date('2026-08-31T18:00:00Z'),
            
        
    
        
        
            
                "reward_money": 120,
            
        
    
        
        
            
                "reward_reputation": 3,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Decorate the Town Square",
            
        
    
        
        
            
                "quest_type": "market",
            
        
    
        
        
            
                "status": "active",
            
        
    
        
        
            
                "description": "Craft decorations and place them in the square for the festival",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "available_from": new Date('2026-07-20T09:00:00Z'),
            
        
    
        
        
            
                "available_until": new Date('2026-09-01T21:00:00Z'),
            
        
    
        
        
            
                "reward_money": 150,
            
        
    
        
        
            
                "reward_reputation": 4,
            
        
    
    },
    
];



const QuestObjectivesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "objective_type": "harvest_crop",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_quantity": 1,
            
        
    
        
        
            
                "sequence_order": 1,
            
        
    
        
        
            
                "is_optional": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "objective_type": "talk_to_npc",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_quantity": 10,
            
        
    
        
        
            
                "sequence_order": 1,
            
        
    
        
        
            
                "is_optional": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "objective_type": "craft_item",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_quantity": 6,
            
        
    
        
        
            
                "sequence_order": 1,
            
        
    
        
        
            
                "is_optional": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "objective_type": "craft_item",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_quantity": 2,
            
        
    
        
        
            
                "sequence_order": 1,
            
        
    
        
        
            
                "is_optional": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "objective_type": "collect_item",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "target_quantity": 3,
            
        
    
        
        
            
                "sequence_order": 1,
            
        
    
        
        
            
                "is_optional": true,
            
        
    
    },
    
];



const MarketStoresData = [
    
    {
    
        
        
            
                "name": "Ilha Market Main Store",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_status": "renovating",
            
        
    
        
        
            
                "opened_at": new Date('2026-07-05T09:30:00Z'),
            
        
    
        
        
            
                "closed_at": new Date('2026-07-05T20:00:00Z'),
            
        
    
        
        
            
                "cash_balance": 520.5,
            
        
    
        
        
            
                "pix_balance": 210.75,
            
        
    
        
        
            
                "card_balance": 980.2,
            
        
    
        
        
            
                "store_note": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Harbor Pop Up Stall",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_status": "renovating",
            
        
    
        
        
            
                "opened_at": new Date('2026-07-12T08:00:00Z'),
            
        
    
        
        
            
                "closed_at": new Date('2026-07-12T14:00:00Z'),
            
        
    
        
        
            
                "cash_balance": 80,
            
        
    
        
        
            
                "pix_balance": 25.5,
            
        
    
        
        
            
                "card_balance": 60,
            
        
    
        
        
            
                "store_note": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Beach Kiosk",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_status": "open",
            
        
    
        
        
            
                "opened_at": new Date('2026-07-01T10:00:00Z'),
            
        
    
        
        
            
                "closed_at": new Date('2026-07-01T12:00:00Z'),
            
        
    
        
        
            
                "cash_balance": 0,
            
        
    
        
        
            
                "pix_balance": 0,
            
        
    
        
        
            
                "card_balance": 0,
            
        
    
        
        
            
                "store_note": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Farm Stand",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_status": "open",
            
        
    
        
        
            
                "opened_at": new Date('2026-07-11T07:00:00Z'),
            
        
    
        
        
            
                "closed_at": new Date('2026-07-11T12:00:00Z'),
            
        
    
        
        
            
                "cash_balance": 40,
            
        
    
        
        
            
                "pix_balance": 10,
            
        
    
        
        
            
                "card_balance": 15,
            
        
    
        
        
            
                "store_note": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Tourist Corner Shop",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "store_status": "open",
            
        
    
        
        
            
                "opened_at": new Date('2026-07-15T10:00:00Z'),
            
        
    
        
        
            
                "closed_at": new Date('2026-07-15T18:00:00Z'),
            
        
    
        
        
            
                "cash_balance": 0,
            
        
    
        
        
            
                "pix_balance": 0,
            
        
    
        
        
            
                "card_balance": 0,
            
        
    
        
        
            
                "store_note": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const EmployeesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "cleaner",
            
        
    
        
        
            
                "employment_status": "terminated",
            
        
    
        
        
            
                "daily_wage": 0,
            
        
    
        
        
            
                "hired_at": new Date('2026-07-01T12:00:00Z'),
            
        
    
        
        
            
                "can_operate_register": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "cleaner",
            
        
    
        
        
            
                "employment_status": "on_leave",
            
        
    
        
        
            
                "daily_wage": 90,
            
        
    
        
        
            
                "hired_at": new Date('2026-07-08T09:00:00Z'),
            
        
    
        
        
            
                "can_operate_register": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "stocker",
            
        
    
        
        
            
                "employment_status": "terminated",
            
        
    
        
        
            
                "daily_wage": 110,
            
        
    
        
        
            
                "hired_at": new Date('2026-07-06T09:00:00Z'),
            
        
    
        
        
            
                "can_operate_register": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "manager",
            
        
    
        
        
            
                "employment_status": "hired",
            
        
    
        
        
            
                "daily_wage": 0,
            
        
    
        
        
            
                "hired_at": new Date('2026-07-01T00:00:00Z'),
            
        
    
        
        
            
                "can_operate_register": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "job_title": "manager",
            
        
    
        
        
            
                "employment_status": "on_leave",
            
        
    
        
        
            
                "daily_wage": 75,
            
        
    
        
        
            
                "hired_at": new Date('2026-07-10T09:00:00Z'),
            
        
    
        
        
            
                "can_operate_register": true,
            
        
    
    },
    
];



const SuppliersData = [
    
    {
    
        
        
            
                "name": "Porto Import Co",
            
        
    
        
        
            
                "supplier_type": "import_harbor",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contact_details": "Dispatch desk at Porto Warehouse, weekday mornings",
            
        
    
        
        
            
                "reliability_score": 0.82,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Costa Bakery",
            
        
    
        
        
            
                "supplier_type": "bakery",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contact_details": "Delivery before 07:00 daily",
            
        
    
        
        
            
                "reliability_score": 0.9,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Hillside Grove Farm",
            
        
    
        
        
            
                "supplier_type": "import_harbor",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contact_details": "Seasonal produce pickups on Tuesdays",
            
        
    
        
        
            
                "reliability_score": 0.78,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mangrove Fishers Coop",
            
        
    
        
        
            
                "supplier_type": "local_fishery",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contact_details": "Fresh seafood available at dawn",
            
        
    
        
        
            
                "reliability_score": 0.74,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Rio Coast Wholesale",
            
        
    
        
        
            
                "supplier_type": "bakery",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contact_details": "Bulk goods with 2 day lead time",
            
        
    
        
        
            
                "reliability_score": 0.8,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const StoreProductsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_price": 6.9,
            
        
    
        
        
            
                "pricing_mode": "dynamic",
            
        
    
        
        
            
                "reorder_point": 20,
            
        
    
        
        
            
                "target_stock": 80,
            
        
    
        
        
            
                "is_listed": true,
            
        
    
        
        
            
                "tax_rate": 0.07,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_price": 4.5,
            
        
    
        
        
            
                "pricing_mode": "promotion",
            
        
    
        
        
            
                "reorder_point": 30,
            
        
    
        
        
            
                "target_stock": 120,
            
        
    
        
        
            
                "is_listed": true,
            
        
    
        
        
            
                "tax_rate": 0.07,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_price": 7.5,
            
        
    
        
        
            
                "pricing_mode": "promotion",
            
        
    
        
        
            
                "reorder_point": 15,
            
        
    
        
        
            
                "target_stock": 50,
            
        
    
        
        
            
                "is_listed": true,
            
        
    
        
        
            
                "tax_rate": 0.07,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_price": 19.5,
            
        
    
        
        
            
                "pricing_mode": "promotion",
            
        
    
        
        
            
                "reorder_point": 10,
            
        
    
        
        
            
                "target_stock": 40,
            
        
    
        
        
            
                "is_listed": true,
            
        
    
        
        
            
                "tax_rate": 0.12,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "current_price": 10,
            
        
    
        
        
            
                "pricing_mode": "dynamic",
            
        
    
        
        
            
                "reorder_point": 8,
            
        
    
        
        
            
                "target_stock": 30,
            
        
    
        
        
            
                "is_listed": true,
            
        
    
        
        
            
                "tax_rate": 0.0,
            
        
    
    },
    
];



const StoreInventoryBatchesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_on_hand": 55,
            
        
    
        
        
            
                "received_at": new Date('2026-07-14T09:10:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-07-19T09:10:00Z'),
            
        
    
        
        
            
                "unit_cost": 4.1,
            
        
    
        
        
            
                "quality_grade": "fresh",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_on_hand": 90,
            
        
    
        
        
            
                "received_at": new Date('2026-07-15T06:20:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-07-17T06:20:00Z'),
            
        
    
        
        
            
                "unit_cost": 2.2,
            
        
    
        
        
            
                "quality_grade": "fresh",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_on_hand": 32,
            
        
    
        
        
            
                "received_at": new Date('2026-07-12T10:00:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2026-07-22T10:00:00Z'),
            
        
    
        
        
            
                "unit_cost": 4.6,
            
        
    
        
        
            
                "quality_grade": "premium",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_on_hand": 18,
            
        
    
        
        
            
                "received_at": new Date('2026-07-10T11:30:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2027-07-10T11:30:00Z'),
            
        
    
        
        
            
                "unit_cost": 12.5,
            
        
    
        
        
            
                "quality_grade": "fresh",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_on_hand": 24,
            
        
    
        
        
            
                "received_at": new Date('2026-07-09T15:15:00Z'),
            
        
    
        
        
            
                "expires_at": new Date('2028-07-09T15:15:00Z'),
            
        
    
        
        
            
                "unit_cost": 6,
            
        
    
        
        
            
                "quality_grade": "premium",
            
        
    
    },
    
];



const PurchaseOrdersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "shipped",
            
        
    
        
        
            
                "ordered_at": new Date('2026-07-15T05:30:00Z'),
            
        
    
        
        
            
                "expected_at": new Date('2026-07-15T06:15:00Z'),
            
        
    
        
        
            
                "subtotal_amount": 220,
            
        
    
        
        
            
                "tax_amount": 15.4,
            
        
    
        
        
            
                "total_amount": 235.4,
            
        
    
        
        
            
                "notes": "Daily bread order",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "draft",
            
        
    
        
        
            
                "ordered_at": new Date('2026-07-14T13:00:00Z'),
            
        
    
        
        
            
                "expected_at": new Date('2026-07-16T11:00:00Z'),
            
        
    
        
        
            
                "subtotal_amount": 480,
            
        
    
        
        
            
                "tax_amount": 57.6,
            
        
    
        
        
            
                "total_amount": 537.6,
            
        
    
        
        
            
                "notes": "Dry goods restock",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "shipped",
            
        
    
        
        
            
                "ordered_at": new Date('2026-07-13T12:10:00Z'),
            
        
    
        
        
            
                "expected_at": new Date('2026-07-17T09:00:00Z'),
            
        
    
        
        
            
                "subtotal_amount": 160,
            
        
    
        
        
            
                "tax_amount": 11.2,
            
        
    
        
        
            
                "total_amount": 171.2,
            
        
    
        
        
            
                "notes": "Fruit mix for weekend",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "shipped",
            
        
    
        
        
            
                "ordered_at": new Date('2026-07-12T05:40:00Z'),
            
        
    
        
        
            
                "expected_at": new Date('2026-07-12T07:00:00Z'),
            
        
    
        
        
            
                "subtotal_amount": 140,
            
        
    
        
        
            
                "tax_amount": 9.8,
            
        
    
        
        
            
                "total_amount": 149.8,
            
        
    
        
        
            
                "notes": "Cancelled due to storm",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "cancelled",
            
        
    
        
        
            
                "ordered_at": new Date('2026-07-16T09:20:00Z'),
            
        
    
        
        
            
                "expected_at": new Date('2026-07-18T10:00:00Z'),
            
        
    
        
        
            
                "subtotal_amount": 650,
            
        
    
        
        
            
                "tax_amount": 78,
            
        
    
        
        
            
                "total_amount": 728,
            
        
    
        
        
            
                "notes": "Bulk staples planning",
            
        
    
    },
    
];



const PurchaseOrderLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_ordered": 100,
            
        
    
        
        
            
                "unit_cost": 2.2,
            
        
    
        
        
            
                "line_total": 220,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_ordered": 30,
            
        
    
        
        
            
                "unit_cost": 12.5,
            
        
    
        
        
            
                "line_total": 375,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_ordered": 40,
            
        
    
        
        
            
                "unit_cost": 4.1,
            
        
    
        
        
            
                "line_total": 164,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_ordered": 50,
            
        
    
        
        
            
                "unit_cost": 12.2,
            
        
    
        
        
            
                "line_total": 610,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity_ordered": 20,
            
        
    
        
        
            
                "unit_cost": 6,
            
        
    
        
        
            
                "line_total": 120,
            
        
    
    },
    
];



const DeliveriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "returned",
            
        
    
        
        
            
                "departed_at": new Date('2026-07-15T05:55:00Z'),
            
        
    
        
        
            
                "arrived_at": new Date('2026-07-15T06:18:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_note": "Delivered fresh and warm",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "unloaded",
            
        
    
        
        
            
                "departed_at": new Date('2026-07-15T08:00:00Z'),
            
        
    
        
        
            
                "arrived_at": new Date('2026-07-16T11:10:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_note": "Awaiting harbor clearance",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "returned",
            
        
    
        
        
            
                "departed_at": new Date('2026-07-17T07:30:00Z'),
            
        
    
        
        
            
                "arrived_at": new Date('2026-07-17T09:05:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_note": "Handle bananas carefully",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "returned",
            
        
    
        
        
            
                "departed_at": new Date('2026-07-12T06:10:00Z'),
            
        
    
        
        
            
                "arrived_at": new Date('2026-07-12T06:40:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_note": "Storm warning issued",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_status": "unloaded",
            
        
    
        
        
            
                "departed_at": new Date('2026-07-18T08:00:00Z'),
            
        
    
        
        
            
                "arrived_at": new Date('2026-07-18T10:10:00Z'),
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "delivery_note": "Confirm counts on arrival",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const ShelvesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Aisle 1 Produce",
            
        
    
        
        
            
                "shelf_type": "bulk_bin",
            
        
    
        
        
            
                "capacity_units": 180,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_customer_accessible": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Aisle 2 Pantry",
            
        
    
        
        
            
                "shelf_type": "aisle",
            
        
    
        
        
            
                "capacity_units": 200,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_customer_accessible": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Endcap Promo",
            
        
    
        
        
            
                "shelf_type": "endcap",
            
        
    
        
        
            
                "capacity_units": 60,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_customer_accessible": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Fridge 1 Cold Items",
            
        
    
        
        
            
                "shelf_type": "bulk_bin",
            
        
    
        
        
            
                "capacity_units": 120,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_customer_accessible": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Checkout Rack",
            
        
    
        
        
            
                "shelf_type": "fridge",
            
        
    
        
        
            
                "capacity_units": 40,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "is_customer_accessible": true,
            
        
    
    },
    
];



const ShelfSlotsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "facings": 3,
            
        
    
        
        
            
                "max_quantity": 60,
            
        
    
        
        
            
                "current_quantity": 38,
            
        
    
        
        
            
                "slot_index": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "facings": 2,
            
        
    
        
        
            
                "max_quantity": 40,
            
        
    
        
        
            
                "current_quantity": 22,
            
        
    
        
        
            
                "slot_index": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "facings": 4,
            
        
    
        
        
            
                "max_quantity": 80,
            
        
    
        
        
            
                "current_quantity": 55,
            
        
    
        
        
            
                "slot_index": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "facings": 2,
            
        
    
        
        
            
                "max_quantity": 30,
            
        
    
        
        
            
                "current_quantity": 16,
            
        
    
        
        
            
                "slot_index": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "facings": 1,
            
        
    
        
        
            
                "max_quantity": 25,
            
        
    
        
        
            
                "current_quantity": 14,
            
        
    
        
        
            
                "slot_index": 4,
            
        
    
    },
    
];



const CashRegistersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Register 1",
            
        
    
        
        
            
                "status": "in_use",
            
        
    
        
        
            
                "cash_drawer_balance": 180,
            
        
    
        
        
            
                "pix_enabled": true,
            
        
    
        
        
            
                "credit_enabled": true,
            
        
    
        
        
            
                "debit_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Register 2",
            
        
    
        
        
            
                "status": "maintenance",
            
        
    
        
        
            
                "cash_drawer_balance": 60,
            
        
    
        
        
            
                "pix_enabled": true,
            
        
    
        
        
            
                "credit_enabled": true,
            
        
    
        
        
            
                "debit_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Harbor Register",
            
        
    
        
        
            
                "status": "offline",
            
        
    
        
        
            
                "cash_drawer_balance": 0,
            
        
    
        
        
            
                "pix_enabled": true,
            
        
    
        
        
            
                "credit_enabled": true,
            
        
    
        
        
            
                "debit_enabled": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Farm Register",
            
        
    
        
        
            
                "status": "offline",
            
        
    
        
        
            
                "cash_drawer_balance": 0,
            
        
    
        
        
            
                "pix_enabled": true,
            
        
    
        
        
            
                "credit_enabled": false,
            
        
    
        
        
            
                "debit_enabled": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Tourist Register",
            
        
    
        
        
            
                "status": "offline",
            
        
    
        
        
            
                "cash_drawer_balance": 0,
            
        
    
        
        
            
                "pix_enabled": true,
            
        
    
        
        
            
                "credit_enabled": true,
            
        
    
        
        
            
                "debit_enabled": true,
            
        
    
    },
    
];



const SalesTransactionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sold_at": new Date('2026-07-15T12:05:00Z'),
            
        
    
        
        
            
                "payment_method": "debit_card",
            
        
    
        
        
            
                "status": "open",
            
        
    
        
        
            
                "subtotal_amount": 18.0,
            
        
    
        
        
            
                "tax_amount": 1.26,
            
        
    
        
        
            
                "total_amount": 19.26,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sold_at": new Date('2026-07-15T17:40:00Z'),
            
        
    
        
        
            
                "payment_method": "credit_card",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "subtotal_amount": 11.4,
            
        
    
        
        
            
                "tax_amount": 0.8,
            
        
    
        
        
            
                "total_amount": 12.2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sold_at": new Date('2026-07-14T09:25:00Z'),
            
        
    
        
        
            
                "payment_method": "credit_card",
            
        
    
        
        
            
                "status": "refunded",
            
        
    
        
        
            
                "subtotal_amount": 19.5,
            
        
    
        
        
            
                "tax_amount": 2.34,
            
        
    
        
        
            
                "total_amount": 21.84,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sold_at": new Date('2026-07-14T19:10:00Z'),
            
        
    
        
        
            
                "payment_method": "credit_card",
            
        
    
        
        
            
                "status": "voided",
            
        
    
        
        
            
                "subtotal_amount": 7.5,
            
        
    
        
        
            
                "tax_amount": 0.53,
            
        
    
        
        
            
                "total_amount": 8.03,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sold_at": new Date('2026-07-13T11:15:00Z'),
            
        
    
        
        
            
                "payment_method": "cash",
            
        
    
        
        
            
                "status": "paid",
            
        
    
        
        
            
                "subtotal_amount": 4.5,
            
        
    
        
        
            
                "tax_amount": 0.32,
            
        
    
        
        
            
                "total_amount": 4.82,
            
        
    
    },
    
];



const SalesTransactionLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 2,
            
        
    
        
        
            
                "unit_price": 6.9,
            
        
    
        
        
            
                "line_total": 13.8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 4.5,
            
        
    
        
        
            
                "line_total": 4.5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 7.5,
            
        
    
        
        
            
                "line_total": 7.5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 19.5,
            
        
    
        
        
            
                "line_total": 19.5,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
        
        
            
                "unit_price": 4.5,
            
        
    
        
        
            
                "line_total": 4.5,
            
        
    
    },
    
];



const DailyReportsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "business_date": new Date('2026-07-15T00:00:00Z'),
            
        
    
        
        
            
                "gross_sales": 520.4,
            
        
    
        
        
            
                "net_sales": 485.1,
            
        
    
        
        
            
                "transactions_count": 48,
            
        
    
        
        
            
                "cash_total": 140.2,
            
        
    
        
        
            
                "pix_total": 120.5,
            
        
    
        
        
            
                "card_total": 224.4,
            
        
    
        
        
            
                "wages_paid": 200,
            
        
    
        
        
            
                "inventory_purchases": 235.4,
            
        
    
        
        
            
                "notes": "Strong lunch rush; bread sold out early",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "business_date": new Date('2026-07-14T00:00:00Z'),
            
        
    
        
        
            
                "gross_sales": 430.0,
            
        
    
        
        
            
                "net_sales": 401.8,
            
        
    
        
        
            
                "transactions_count": 39,
            
        
    
        
        
            
                "cash_total": 110.0,
            
        
    
        
        
            
                "pix_total": 95.3,
            
        
    
        
        
            
                "card_total": 196.5,
            
        
    
        
        
            
                "wages_paid": 190,
            
        
    
        
        
            
                "inventory_purchases": 0,
            
        
    
        
        
            
                "notes": "Register 2 required maintenance",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "business_date": new Date('2026-07-13T00:00:00Z'),
            
        
    
        
        
            
                "gross_sales": 390.2,
            
        
    
        
        
            
                "net_sales": 360.0,
            
        
    
        
        
            
                "transactions_count": 33,
            
        
    
        
        
            
                "cash_total": 98.4,
            
        
    
        
        
            
                "pix_total": 88.0,
            
        
    
        
        
            
                "card_total": 173.6,
            
        
    
        
        
            
                "wages_paid": 180,
            
        
    
        
        
            
                "inventory_purchases": 171.2,
            
        
    
        
        
            
                "notes": "Fruit display improved conversion",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "business_date": new Date('2026-07-12T00:00:00Z'),
            
        
    
        
        
            
                "gross_sales": 95.0,
            
        
    
        
        
            
                "net_sales": 88.1,
            
        
    
        
        
            
                "transactions_count": 12,
            
        
    
        
        
            
                "cash_total": 55.0,
            
        
    
        
        
            
                "pix_total": 33.1,
            
        
    
        
        
            
                "card_total": 0,
            
        
    
        
        
            
                "wages_paid": 60,
            
        
    
        
        
            
                "inventory_purchases": 0,
            
        
    
        
        
            
                "notes": "Storm reduced foot traffic",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "business_date": new Date('2026-07-11T00:00:00Z'),
            
        
    
        
        
            
                "gross_sales": 120.5,
            
        
    
        
        
            
                "net_sales": 112.0,
            
        
    
        
        
            
                "transactions_count": 15,
            
        
    
        
        
            
                "cash_total": 40.0,
            
        
    
        
        
            
                "pix_total": 62.0,
            
        
    
        
        
            
                "card_total": 10.0,
            
        
    
        
        
            
                "wages_paid": 0,
            
        
    
        
        
            
                "inventory_purchases": 0,
            
        
    
        
        
            
                "notes": "Local produce demand increased",
            
        
    
    },
    
];



const WeatherStatesData = [
    
    {
    
        
        
            
                "name": "Sunny Breeze",
            
        
    
        
        
            
                "weather_type": "heat_wave",
            
        
    
        
        
            
                "temperature_c": 28,
            
        
    
        
        
            
                "wind_speed": 10,
            
        
    
        
        
            
                "rain_intensity": 0,
            
        
    
        
        
            
                "has_thunder": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Afternoon Rain",
            
        
    
        
        
            
                "weather_type": "cloudy",
            
        
    
        
        
            
                "temperature_c": 25,
            
        
    
        
        
            
                "wind_speed": 8,
            
        
    
        
        
            
                "rain_intensity": 0.6,
            
        
    
        
        
            
                "has_thunder": false,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Coastal Storm",
            
        
    
        
        
            
                "weather_type": "rain",
            
        
    
        
        
            
                "temperature_c": 24,
            
        
    
        
        
            
                "wind_speed": 22,
            
        
    
        
        
            
                "rain_intensity": 0.9,
            
        
    
        
        
            
                "has_thunder": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Morning Fog",
            
        
    
        
        
            
                "weather_type": "fog",
            
        
    
        
        
            
                "temperature_c": 23,
            
        
    
        
        
            
                "wind_speed": 4,
            
        
    
        
        
            
                "rain_intensity": 0.1,
            
        
    
        
        
            
                "has_thunder": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Heat Wave",
            
        
    
        
        
            
                "weather_type": "heat_wave",
            
        
    
        
        
            
                "temperature_c": 34,
            
        
    
        
        
            
                "wind_speed": 6,
            
        
    
        
        
            
                "rain_intensity": 0,
            
        
    
        
        
            
                "has_thunder": true,
            
        
    
    },
    
];



const WorldCalendarDaysData = [
    
    {
    
        
        
            
                "day_start_at": new Date('2026-07-13T00:00:00Z'),
            
        
    
        
        
            
                "day_end_at": new Date('2026-07-13T23:59:59Z'),
            
        
    
        
        
            
                "season": "spring",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tourism_index": 0.6,
            
        
    
        
        
            
                "inflation_index": 1.02,
            
        
    
    },
    
    {
    
        
        
            
                "day_start_at": new Date('2026-07-14T00:00:00Z'),
            
        
    
        
        
            
                "day_end_at": new Date('2026-07-14T23:59:59Z'),
            
        
    
        
        
            
                "season": "autumn",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tourism_index": 0.55,
            
        
    
        
        
            
                "inflation_index": 1.02,
            
        
    
    },
    
    {
    
        
        
            
                "day_start_at": new Date('2026-07-15T00:00:00Z'),
            
        
    
        
        
            
                "day_end_at": new Date('2026-07-15T23:59:59Z'),
            
        
    
        
        
            
                "season": "spring",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tourism_index": 0.7,
            
        
    
        
        
            
                "inflation_index": 1.03,
            
        
    
    },
    
    {
    
        
        
            
                "day_start_at": new Date('2026-07-16T00:00:00Z'),
            
        
    
        
        
            
                "day_end_at": new Date('2026-07-16T23:59:59Z'),
            
        
    
        
        
            
                "season": "winter",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tourism_index": 0.5,
            
        
    
        
        
            
                "inflation_index": 1.03,
            
        
    
    },
    
    {
    
        
        
            
                "day_start_at": new Date('2026-07-12T00:00:00Z'),
            
        
    
        
        
            
                "day_end_at": new Date('2026-07-12T23:59:59Z'),
            
        
    
        
        
            
                "season": "autumn",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "tourism_index": 0.35,
            
        
    
        
        
            
                "inflation_index": 1.02,
            
        
    
    },
    
];



const PriceModifiersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "cause": "seasonal",
            
        
    
        
        
            
                "multiplier": 1.08,
            
        
    
        
        
            
                "notes": "Higher demand from visitors",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "cause": "tourism",
            
        
    
        
        
            
                "multiplier": 1.12,
            
        
    
        
        
            
                "notes": "Sold out risk near lunch",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "cause": "weather",
            
        
    
        
        
            
                "multiplier": 0.95,
            
        
    
        
        
            
                "notes": "Abundant harvest week",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "cause": "weather",
            
        
    
        
        
            
                "multiplier": 1.03,
            
        
    
        
        
            
                "notes": "Import costs rising",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "cause": "tourism",
            
        
    
        
        
            
                "multiplier": 0.9,
            
        
    
        
        
            
                "notes": "Storm reduced sales volume",
            
        
    
    },
    
];



const CropsData = [
    
    {
    
        
        
            
                "name": "Tomato",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "growth_days": 6,
            
        
    
        
        
            
                "regrowth_days": 0,
            
        
    
        
        
            
                "is_perennial": true,
            
        
    
        
        
            
                "preferred_season": "summer",
            
        
    
        
        
            
                "water_per_day": 1,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Coffee Plant",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "growth_days": 14,
            
        
    
        
        
            
                "regrowth_days": 7,
            
        
    
        
        
            
                "is_perennial": true,
            
        
    
        
        
            
                "preferred_season": "autumn",
            
        
    
        
        
            
                "water_per_day": 1,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Sugar Cane",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "growth_days": 10,
            
        
    
        
        
            
                "regrowth_days": 5,
            
        
    
        
        
            
                "is_perennial": true,
            
        
    
        
        
            
                "preferred_season": "winter",
            
        
    
        
        
            
                "water_per_day": 2,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Medicinal Herb",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "growth_days": 5,
            
        
    
        
        
            
                "regrowth_days": 0,
            
        
    
        
        
            
                "is_perennial": true,
            
        
    
        
        
            
                "preferred_season": "wet",
            
        
    
        
        
            
                "water_per_day": 1,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Island Flowers",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "growth_days": 4,
            
        
    
        
        
            
                "regrowth_days": 0,
            
        
    
        
        
            
                "is_perennial": false,
            
        
    
        
        
            
                "preferred_season": "spring",
            
        
    
        
        
            
                "water_per_day": 1,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const FarmPlotsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Hillside Garden",
            
        
    
        
        
            
                "width_tiles": 8,
            
        
    
        
        
            
                "height_tiles": 6,
            
        
    
        
        
            
                "is_irrigated": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Backyard Patch",
            
        
    
        
        
            
                "width_tiles": 6,
            
        
    
        
        
            
                "height_tiles": 4,
            
        
    
        
        
            
                "is_irrigated": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Coffee Corner",
            
        
    
        
        
            
                "width_tiles": 5,
            
        
    
        
        
            
                "height_tiles": 5,
            
        
    
        
        
            
                "is_irrigated": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Herb Bed",
            
        
    
        
        
            
                "width_tiles": 4,
            
        
    
        
        
            
                "height_tiles": 3,
            
        
    
        
        
            
                "is_irrigated": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Flower Strip",
            
        
    
        
        
            
                "width_tiles": 7,
            
        
    
        
        
            
                "height_tiles": 2,
            
        
    
        
        
            
                "is_irrigated": false,
            
        
    
    },
    
];



const PlantingsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planted_at": new Date('2026-07-12T08:00:00Z'),
            
        
    
        
        
            
                "estimated_harvest_at": new Date('2026-07-18T08:00:00Z'),
            
        
    
        
        
            
                "status": "growing",
            
        
    
        
        
            
                "quantity_planted": 12,
            
        
    
        
        
            
                "watered_today": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planted_at": new Date('2026-07-10T08:00:00Z'),
            
        
    
        
        
            
                "estimated_harvest_at": new Date('2026-07-20T08:00:00Z'),
            
        
    
        
        
            
                "status": "harvested",
            
        
    
        
        
            
                "quantity_planted": 8,
            
        
    
        
        
            
                "watered_today": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planted_at": new Date('2026-07-01T08:00:00Z'),
            
        
    
        
        
            
                "estimated_harvest_at": new Date('2026-07-15T08:00:00Z'),
            
        
    
        
        
            
                "status": "planted",
            
        
    
        
        
            
                "quantity_planted": 6,
            
        
    
        
        
            
                "watered_today": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planted_at": new Date('2026-07-13T08:00:00Z'),
            
        
    
        
        
            
                "estimated_harvest_at": new Date('2026-07-18T08:00:00Z'),
            
        
    
        
        
            
                "status": "planted",
            
        
    
        
        
            
                "quantity_planted": 10,
            
        
    
        
        
            
                "watered_today": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planted_at": new Date('2026-07-14T08:00:00Z'),
            
        
    
        
        
            
                "estimated_harvest_at": new Date('2026-07-18T08:00:00Z'),
            
        
    
        
        
            
                "status": "withered",
            
        
    
        
        
            
                "quantity_planted": 14,
            
        
    
        
        
            
                "watered_today": 0,
            
        
    
    },
    
];



const FishSpeciesData = [
    
    {
    
        
        
            
                "name": "Robalo",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rarity": "uncommon",
            
        
    
        
        
            
                "active_time": "night",
            
        
    
        
        
            
                "preferred_weather": "rain",
            
        
    
        
        
            
                "base_bite_rate": 0.35,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Tainha",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "active_time": "day",
            
        
    
        
        
            
                "preferred_weather": "storm",
            
        
    
        
        
            
                "base_bite_rate": 0.55,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Tilapia",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rarity": "rare",
            
        
    
        
        
            
                "active_time": "day",
            
        
    
        
        
            
                "preferred_weather": "any",
            
        
    
        
        
            
                "base_bite_rate": 0.5,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Garoupa",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rarity": "common",
            
        
    
        
        
            
                "active_time": "night",
            
        
    
        
        
            
                "preferred_weather": "rain",
            
        
    
        
        
            
                "base_bite_rate": 0.22,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Cavala",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "rarity": "epic",
            
        
    
        
        
            
                "active_time": "day",
            
        
    
        
        
            
                "preferred_weather": "wind",
            
        
    
        
        
            
                "base_bite_rate": 0.12,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const FishingSpotsData = [
    
    {
    
        
        
            
                "name": "Mangrove Quiet Water",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "water_type": "pond",
            
        
    
        
        
            
                "difficulty_rating": 0.35,
            
        
    
        
        
            
                "is_tournament_site": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Harbor Breakwater",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "water_type": "ocean",
            
        
    
        
        
            
                "difficulty_rating": 0.5,
            
        
    
        
        
            
                "is_tournament_site": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Beachline Cast",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "water_type": "lake",
            
        
    
        
        
            
                "difficulty_rating": 0.45,
            
        
    
        
        
            
                "is_tournament_site": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "River Mouth",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "water_type": "river",
            
        
    
        
        
            
                "difficulty_rating": 0.4,
            
        
    
        
        
            
                "is_tournament_site": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Hidden Cove",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "water_type": "river",
            
        
    
        
        
            
                "difficulty_rating": 0.7,
            
        
    
        
        
            
                "is_tournament_site": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const FishingCatchesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "caught_at": new Date('2026-07-15T06:40:00Z'),
            
        
    
        
        
            
                "weight": 1.2,
            
        
    
        
        
            
                "length": 32,
            
        
    
        
        
            
                "quality_grade": "premium",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "caught_at": new Date('2026-07-14T07:10:00Z'),
            
        
    
        
        
            
                "weight": 1.5,
            
        
    
        
        
            
                "length": 38,
            
        
    
        
        
            
                "quality_grade": "standard",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "caught_at": new Date('2026-07-13T16:25:00Z'),
            
        
    
        
        
            
                "weight": 2.1,
            
        
    
        
        
            
                "length": 45,
            
        
    
        
        
            
                "quality_grade": "fresh",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "caught_at": new Date('2026-07-12T18:05:00Z'),
            
        
    
        
        
            
                "weight": 1.0,
            
        
    
        
        
            
                "length": 29,
            
        
    
        
        
            
                "quality_grade": "fresh",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "caught_at": new Date('2026-07-15T20:30:00Z'),
            
        
    
        
        
            
                "weight": 3.4,
            
        
    
        
        
            
                "length": 52,
            
        
    
        
        
            
                "quality_grade": "fresh",
            
        
    
    },
    
];



const CraftingRecipesData = [
    
    {
    
        
        
            
                "name": "Coconut Water",
            
        
    
        
        
            
                "recipe_type": "decoration",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "output_quantity": 1,
            
        
    
        
        
            
                "craft_time_seconds": 20,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Chilled drink made from fresh coconut",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Simple Fruit Basket",
            
        
    
        
        
            
                "recipe_type": "food",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "output_quantity": 1,
            
        
    
        
        
            
                "craft_time_seconds": 60,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "A decorative basket for the home",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Coffee Brew",
            
        
    
        
        
            
                "recipe_type": "equipment",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "output_quantity": 1,
            
        
    
        
        
            
                "craft_time_seconds": 30,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "A basic cup of coffee",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Market Signboard",
            
        
    
        
        
            
                "recipe_type": "furniture",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "output_quantity": 1,
            
        
    
        
        
            
                "craft_time_seconds": 120,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "A wooden signboard for store branding",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Seed Packet Set",
            
        
    
        
        
            
                "recipe_type": "tool",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "output_quantity": 5,
            
        
    
        
        
            
                "craft_time_seconds": 45,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "description": "Organized seed packets for planting",
            
        
    
    },
    
];



const RecipeIngredientsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 3,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "quantity": 5,
            
        
    
    },
    
];



const BuildingsData = [
    
    {
    
        
        
            
                "name": "Ilha Market Building",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "building_type": "bakery",
            
        
    
        
        
            
                "condition_state": "excellent",
            
        
    
        
        
            
                "upgrade_level": 2,
            
        
    
        
        
            
                "restored_at": new Date('2026-07-05T09:00:00Z'),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Porto Warehouse Facility",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "building_type": "bakery",
            
        
    
        
        
            
                "condition_state": "poor",
            
        
    
        
        
            
                "upgrade_level": 1,
            
        
    
        
        
            
                "restored_at": new Date('2026-07-02T10:00:00Z'),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Town Square Pavilion",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "building_type": "harbor",
            
        
    
        
        
            
                "condition_state": "good",
            
        
    
        
        
            
                "upgrade_level": 0,
            
        
    
        
        
            
                "restored_at": new Date('2026-07-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Casa Horizonte Home",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "building_type": "school",
            
        
    
        
        
            
                "condition_state": "excellent",
            
        
    
        
        
            
                "upgrade_level": 1,
            
        
    
        
        
            
                "restored_at": new Date('2026-07-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                "name": "Old Beach Kiosk",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "building_type": "market",
            
        
    
        
        
            
                "condition_state": "fair",
            
        
    
        
        
            
                "upgrade_level": 0,
            
        
    
        
        
            
                "restored_at": new Date('2026-07-01T00:00:00Z'),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const ConstructionProjectsData = [
    
    {
    
        
        
            
                "name": "Expand Store Stockroom",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "project_type": "build_attraction",
            
        
    
        
        
            
                "status": "paused",
            
        
    
        
        
            
                "started_at": new Date('2026-07-12T09:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-07-30T18:00:00Z'),
            
        
    
        
        
            
                "budget_cost": 1200,
            
        
    
        
        
            
                "description": "Add shelving and cold storage capacity",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Harbor Handling Upgrade",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "project_type": "build_attraction",
            
        
    
        
        
            
                "status": "funding",
            
        
    
        
        
            
                "started_at": new Date('2026-07-20T09:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-08-20T18:00:00Z'),
            
        
    
        
        
            
                "budget_cost": 1800,
            
        
    
        
        
            
                "description": "Improve unloading speed and reduce delivery delays",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Restore Town Pavilion",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "project_type": "restore_building",
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date('2026-07-16T10:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-08-05T18:00:00Z'),
            
        
    
        
        
            
                "budget_cost": 900,
            
        
    
        
        
            
                "description": "Repair roof and add lighting for events",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Beach Kiosk Renovation",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "project_type": "restore_building",
            
        
    
        
        
            
                "status": "in_progress",
            
        
    
        
        
            
                "started_at": new Date('2026-07-10T10:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-08-10T18:00:00Z'),
            
        
    
        
        
            
                "budget_cost": 650,
            
        
    
        
        
            
                "description": "Rebuild kiosk for tourist snacks",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Scenic Road Improvements",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "project_type": "build_attraction",
            
        
    
        
        
            
                "status": "completed",
            
        
    
        
        
            
                "started_at": new Date('2026-07-02T08:00:00Z'),
            
        
    
        
        
            
                "completed_at": new Date('2026-07-09T18:00:00Z'),
            
        
    
        
        
            
                "budget_cost": 400,
            
        
    
        
        
            
                "description": "Fix potholes and add signage",
            
        
    
    },
    
];



const FestivalsData = [
    
    {
    
        
        
            
                "name": "Island Market Day",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-07-25T10:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-07-25T20:00:00Z'),
            
        
    
        
        
            
                "festival_type": "seasonal",
            
        
    
        
        
            
                "description": "Local vendors, samples, and store promotions",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Mangrove Fishing Tournament",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-08-02T06:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-08-02T14:00:00Z'),
            
        
    
        
        
            
                "festival_type": "seasonal",
            
        
    
        
        
            
                "description": "Friendly competition with prizes for rare catches",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Winter Culture Night",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-08-15T18:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-08-15T23:00:00Z'),
            
        
    
        
        
            
                "festival_type": "fishing_tournament",
            
        
    
        
        
            
                "description": "Music, crafts, and community stories",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "School Community Lunch",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-07-30T12:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-07-30T15:00:00Z'),
            
        
    
        
        
            
                "festival_type": "tourism",
            
        
    
        
        
            
                "description": "Shared lunch to celebrate progress and new friendships",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                "name": "Harbor Welcome Weekend",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-08-08T09:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-08-09T18:00:00Z'),
            
        
    
        
        
            
                "festival_type": "tourism",
            
        
    
        
        
            
                "description": "Guided tours of the port and tasting booths",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const FestivalAttendanceData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attendance_role": "staff",
            
        
    
        
        
            
                "did_attend": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attendance_role": "staff",
            
        
    
        
        
            
                "did_attend": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attendance_role": "visitor",
            
        
    
        
        
            
                "did_attend": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attendance_role": "vendor",
            
        
    
        
        
            
                "did_attend": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "attendance_role": "performer",
            
        
    
        
        
            
                "did_attend": false,
            
        
    
    },
    
];



const RandomEventsData = [
    
    {
    
        
        
            
                "title": "Unexpected Tourist Bus",
            
        
    
        
        
            
                "event_type": "economy",
            
        
    
        
        
            
                "severity": "medium",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-07-16T11:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-07-16T15:00:00Z'),
            
        
    
        
        
            
                "description": "A bus of visitors arrives, increasing demand for snacks and drinks",
            
        
    
        
        
            
                "is_resolved": false,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Storm Warning Issued",
            
        
    
        
        
            
                "event_type": "environment",
            
        
    
        
        
            
                "severity": "high",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-07-12T05:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-07-12T12:00:00Z'),
            
        
    
        
        
            
                "description": "High winds delay deliveries and reduce foot traffic",
            
        
    
        
        
            
                "is_resolved": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Local Coffee Trend",
            
        
    
        
        
            
                "event_type": "npc",
            
        
    
        
        
            
                "severity": "low",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-07-14T09:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-07-18T21:00:00Z'),
            
        
    
        
        
            
                "description": "Residents talk about coffee; sales rise for beans and recipes",
            
        
    
        
        
            
                "is_resolved": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Power Outage at Market",
            
        
    
        
        
            
                "event_type": "environment",
            
        
    
        
        
            
                "severity": "low",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-07-17T18:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-07-17T20:30:00Z'),
            
        
    
        
        
            
                "description": "Registers go offline; cash-only operation recommended",
            
        
    
        
        
            
                "is_resolved": true,
            
        
    
    },
    
    {
    
        
        
            
                "title": "Cleanup Volunteer Day",
            
        
    
        
        
            
                "event_type": "tourism",
            
        
    
        
        
            
                "severity": "low",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "starts_at": new Date('2026-07-19T08:00:00Z'),
            
        
    
        
        
            
                "ends_at": new Date('2026-07-19T12:00:00Z'),
            
        
    
        
        
            
                "description": "Community cleanup improves reputation and tourism perception",
            
        
    
        
        
            
                "is_resolved": false,
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            
            async function associateLocationWithRegion() {
            
                const relatedRegion0 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const Location0 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Location0?.setRegion)
                {
                    await
                    Location0.
                    setRegion(relatedRegion0);
                }
            
                const relatedRegion1 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const Location1 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Location1?.setRegion)
                {
                    await
                    Location1.
                    setRegion(relatedRegion1);
                }
            
                const relatedRegion2 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const Location2 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Location2?.setRegion)
                {
                    await
                    Location2.
                    setRegion(relatedRegion2);
                }
            
                const relatedRegion3 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const Location3 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Location3?.setRegion)
                {
                    await
                    Location3.
                    setRegion(relatedRegion3);
                }
            
                const relatedRegion4 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const Location4 = await Locations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Location4?.setRegion)
                {
                    await
                    Location4.
                    setRegion(relatedRegion4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePlayerProfileWithUser() {
            
                const relatedUser0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PlayerProfile0 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlayerProfile0?.setUser)
                {
                    await
                    PlayerProfile0.
                    setUser(relatedUser0);
                }
            
                const relatedUser1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PlayerProfile1 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlayerProfile1?.setUser)
                {
                    await
                    PlayerProfile1.
                    setUser(relatedUser1);
                }
            
                const relatedUser2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PlayerProfile2 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlayerProfile2?.setUser)
                {
                    await
                    PlayerProfile2.
                    setUser(relatedUser2);
                }
            
                const relatedUser3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PlayerProfile3 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlayerProfile3?.setUser)
                {
                    await
                    PlayerProfile3.
                    setUser(relatedUser3);
                }
            
                const relatedUser4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const PlayerProfile4 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PlayerProfile4?.setUser)
                {
                    await
                    PlayerProfile4.
                    setUser(relatedUser4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associatePlayerProfileWithHome_location() {
            
                const relatedHome_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const PlayerProfile0 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PlayerProfile0?.setHome_location)
                {
                    await
                    PlayerProfile0.
                    setHome_location(relatedHome_location0);
                }
            
                const relatedHome_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const PlayerProfile1 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PlayerProfile1?.setHome_location)
                {
                    await
                    PlayerProfile1.
                    setHome_location(relatedHome_location1);
                }
            
                const relatedHome_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const PlayerProfile2 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PlayerProfile2?.setHome_location)
                {
                    await
                    PlayerProfile2.
                    setHome_location(relatedHome_location2);
                }
            
                const relatedHome_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const PlayerProfile3 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PlayerProfile3?.setHome_location)
                {
                    await
                    PlayerProfile3.
                    setHome_location(relatedHome_location3);
                }
            
                const relatedHome_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const PlayerProfile4 = await PlayerProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PlayerProfile4?.setHome_location)
                {
                    await
                    PlayerProfile4.
                    setHome_location(relatedHome_location4);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateItemWithCategory() {
            
                const relatedCategory0 = await ItemCategories.findOne({
                    offset: Math.floor(Math.random() * (await ItemCategories.count())),
                });
                const Item0 = await Items.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Item0?.setCategory)
                {
                    await
                    Item0.
                    setCategory(relatedCategory0);
                }
            
                const relatedCategory1 = await ItemCategories.findOne({
                    offset: Math.floor(Math.random() * (await ItemCategories.count())),
                });
                const Item1 = await Items.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Item1?.setCategory)
                {
                    await
                    Item1.
                    setCategory(relatedCategory1);
                }
            
                const relatedCategory2 = await ItemCategories.findOne({
                    offset: Math.floor(Math.random() * (await ItemCategories.count())),
                });
                const Item2 = await Items.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Item2?.setCategory)
                {
                    await
                    Item2.
                    setCategory(relatedCategory2);
                }
            
                const relatedCategory3 = await ItemCategories.findOne({
                    offset: Math.floor(Math.random() * (await ItemCategories.count())),
                });
                const Item3 = await Items.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Item3?.setCategory)
                {
                    await
                    Item3.
                    setCategory(relatedCategory3);
                }
            
                const relatedCategory4 = await ItemCategories.findOne({
                    offset: Math.floor(Math.random() * (await ItemCategories.count())),
                });
                const Item4 = await Items.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Item4?.setCategory)
                {
                    await
                    Item4.
                    setCategory(relatedCategory4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateNpcWithHome_location() {
            
                const relatedHome_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc0 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Npc0?.setHome_location)
                {
                    await
                    Npc0.
                    setHome_location(relatedHome_location0);
                }
            
                const relatedHome_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc1 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Npc1?.setHome_location)
                {
                    await
                    Npc1.
                    setHome_location(relatedHome_location1);
                }
            
                const relatedHome_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc2 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Npc2?.setHome_location)
                {
                    await
                    Npc2.
                    setHome_location(relatedHome_location2);
                }
            
                const relatedHome_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc3 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Npc3?.setHome_location)
                {
                    await
                    Npc3.
                    setHome_location(relatedHome_location3);
                }
            
                const relatedHome_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc4 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Npc4?.setHome_location)
                {
                    await
                    Npc4.
                    setHome_location(relatedHome_location4);
                }
            
        }
        
    
        
            
            async function associateNpcWithWork_location() {
            
                const relatedWork_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc0 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Npc0?.setWork_location)
                {
                    await
                    Npc0.
                    setWork_location(relatedWork_location0);
                }
            
                const relatedWork_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc1 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Npc1?.setWork_location)
                {
                    await
                    Npc1.
                    setWork_location(relatedWork_location1);
                }
            
                const relatedWork_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc2 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Npc2?.setWork_location)
                {
                    await
                    Npc2.
                    setWork_location(relatedWork_location2);
                }
            
                const relatedWork_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc3 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Npc3?.setWork_location)
                {
                    await
                    Npc3.
                    setWork_location(relatedWork_location3);
                }
            
                const relatedWork_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Npc4 = await Npcs.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Npc4?.setWork_location)
                {
                    await
                    Npc4.
                    setWork_location(relatedWork_location4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateFamilyWithHome_location() {
            
                const relatedHome_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Family0 = await Families.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Family0?.setHome_location)
                {
                    await
                    Family0.
                    setHome_location(relatedHome_location0);
                }
            
                const relatedHome_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Family1 = await Families.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Family1?.setHome_location)
                {
                    await
                    Family1.
                    setHome_location(relatedHome_location1);
                }
            
                const relatedHome_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Family2 = await Families.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Family2?.setHome_location)
                {
                    await
                    Family2.
                    setHome_location(relatedHome_location2);
                }
            
                const relatedHome_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Family3 = await Families.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Family3?.setHome_location)
                {
                    await
                    Family3.
                    setHome_location(relatedHome_location3);
                }
            
                const relatedHome_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Family4 = await Families.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Family4?.setHome_location)
                {
                    await
                    Family4.
                    setHome_location(relatedHome_location4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateFamilyMembershipWithFamily() {
            
                const relatedFamily0 = await Families.findOne({
                    offset: Math.floor(Math.random() * (await Families.count())),
                });
                const FamilyMembership0 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FamilyMembership0?.setFamily)
                {
                    await
                    FamilyMembership0.
                    setFamily(relatedFamily0);
                }
            
                const relatedFamily1 = await Families.findOne({
                    offset: Math.floor(Math.random() * (await Families.count())),
                });
                const FamilyMembership1 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FamilyMembership1?.setFamily)
                {
                    await
                    FamilyMembership1.
                    setFamily(relatedFamily1);
                }
            
                const relatedFamily2 = await Families.findOne({
                    offset: Math.floor(Math.random() * (await Families.count())),
                });
                const FamilyMembership2 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FamilyMembership2?.setFamily)
                {
                    await
                    FamilyMembership2.
                    setFamily(relatedFamily2);
                }
            
                const relatedFamily3 = await Families.findOne({
                    offset: Math.floor(Math.random() * (await Families.count())),
                });
                const FamilyMembership3 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FamilyMembership3?.setFamily)
                {
                    await
                    FamilyMembership3.
                    setFamily(relatedFamily3);
                }
            
                const relatedFamily4 = await Families.findOne({
                    offset: Math.floor(Math.random() * (await Families.count())),
                });
                const FamilyMembership4 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FamilyMembership4?.setFamily)
                {
                    await
                    FamilyMembership4.
                    setFamily(relatedFamily4);
                }
            
        }
        
    
        
            
            async function associateFamilyMembershipWithNpc() {
            
                const relatedNpc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FamilyMembership0 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FamilyMembership0?.setNpc)
                {
                    await
                    FamilyMembership0.
                    setNpc(relatedNpc0);
                }
            
                const relatedNpc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FamilyMembership1 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FamilyMembership1?.setNpc)
                {
                    await
                    FamilyMembership1.
                    setNpc(relatedNpc1);
                }
            
                const relatedNpc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FamilyMembership2 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FamilyMembership2?.setNpc)
                {
                    await
                    FamilyMembership2.
                    setNpc(relatedNpc2);
                }
            
                const relatedNpc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FamilyMembership3 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FamilyMembership3?.setNpc)
                {
                    await
                    FamilyMembership3.
                    setNpc(relatedNpc3);
                }
            
                const relatedNpc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FamilyMembership4 = await FamilyMemberships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FamilyMembership4?.setNpc)
                {
                    await
                    FamilyMembership4.
                    setNpc(relatedNpc4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateNpcRelationshipWithPlayer_profile() {
            
                const relatedPlayer_profile0 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const NpcRelationship0 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NpcRelationship0?.setPlayer_profile)
                {
                    await
                    NpcRelationship0.
                    setPlayer_profile(relatedPlayer_profile0);
                }
            
                const relatedPlayer_profile1 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const NpcRelationship1 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NpcRelationship1?.setPlayer_profile)
                {
                    await
                    NpcRelationship1.
                    setPlayer_profile(relatedPlayer_profile1);
                }
            
                const relatedPlayer_profile2 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const NpcRelationship2 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NpcRelationship2?.setPlayer_profile)
                {
                    await
                    NpcRelationship2.
                    setPlayer_profile(relatedPlayer_profile2);
                }
            
                const relatedPlayer_profile3 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const NpcRelationship3 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NpcRelationship3?.setPlayer_profile)
                {
                    await
                    NpcRelationship3.
                    setPlayer_profile(relatedPlayer_profile3);
                }
            
                const relatedPlayer_profile4 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const NpcRelationship4 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NpcRelationship4?.setPlayer_profile)
                {
                    await
                    NpcRelationship4.
                    setPlayer_profile(relatedPlayer_profile4);
                }
            
        }
        
    
        
            
            async function associateNpcRelationshipWithNpc() {
            
                const relatedNpc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const NpcRelationship0 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (NpcRelationship0?.setNpc)
                {
                    await
                    NpcRelationship0.
                    setNpc(relatedNpc0);
                }
            
                const relatedNpc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const NpcRelationship1 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (NpcRelationship1?.setNpc)
                {
                    await
                    NpcRelationship1.
                    setNpc(relatedNpc1);
                }
            
                const relatedNpc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const NpcRelationship2 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (NpcRelationship2?.setNpc)
                {
                    await
                    NpcRelationship2.
                    setNpc(relatedNpc2);
                }
            
                const relatedNpc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const NpcRelationship3 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (NpcRelationship3?.setNpc)
                {
                    await
                    NpcRelationship3.
                    setNpc(relatedNpc3);
                }
            
                const relatedNpc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const NpcRelationship4 = await NpcRelationships.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (NpcRelationship4?.setNpc)
                {
                    await
                    NpcRelationship4.
                    setNpc(relatedNpc4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDialogueLineWithTopic() {
            
                const relatedTopic0 = await DialogueTopics.findOne({
                    offset: Math.floor(Math.random() * (await DialogueTopics.count())),
                });
                const DialogueLine0 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DialogueLine0?.setTopic)
                {
                    await
                    DialogueLine0.
                    setTopic(relatedTopic0);
                }
            
                const relatedTopic1 = await DialogueTopics.findOne({
                    offset: Math.floor(Math.random() * (await DialogueTopics.count())),
                });
                const DialogueLine1 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DialogueLine1?.setTopic)
                {
                    await
                    DialogueLine1.
                    setTopic(relatedTopic1);
                }
            
                const relatedTopic2 = await DialogueTopics.findOne({
                    offset: Math.floor(Math.random() * (await DialogueTopics.count())),
                });
                const DialogueLine2 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DialogueLine2?.setTopic)
                {
                    await
                    DialogueLine2.
                    setTopic(relatedTopic2);
                }
            
                const relatedTopic3 = await DialogueTopics.findOne({
                    offset: Math.floor(Math.random() * (await DialogueTopics.count())),
                });
                const DialogueLine3 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DialogueLine3?.setTopic)
                {
                    await
                    DialogueLine3.
                    setTopic(relatedTopic3);
                }
            
                const relatedTopic4 = await DialogueTopics.findOne({
                    offset: Math.floor(Math.random() * (await DialogueTopics.count())),
                });
                const DialogueLine4 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DialogueLine4?.setTopic)
                {
                    await
                    DialogueLine4.
                    setTopic(relatedTopic4);
                }
            
        }
        
    
        
            
            async function associateDialogueLineWithNpc() {
            
                const relatedNpc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const DialogueLine0 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DialogueLine0?.setNpc)
                {
                    await
                    DialogueLine0.
                    setNpc(relatedNpc0);
                }
            
                const relatedNpc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const DialogueLine1 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DialogueLine1?.setNpc)
                {
                    await
                    DialogueLine1.
                    setNpc(relatedNpc1);
                }
            
                const relatedNpc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const DialogueLine2 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DialogueLine2?.setNpc)
                {
                    await
                    DialogueLine2.
                    setNpc(relatedNpc2);
                }
            
                const relatedNpc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const DialogueLine3 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DialogueLine3?.setNpc)
                {
                    await
                    DialogueLine3.
                    setNpc(relatedNpc3);
                }
            
                const relatedNpc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const DialogueLine4 = await DialogueLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DialogueLine4?.setNpc)
                {
                    await
                    DialogueLine4.
                    setNpc(relatedNpc4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
            
            async function associateQuestWithGiver_npc() {
            
                const relatedGiver_npc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Quest0 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quest0?.setGiver_npc)
                {
                    await
                    Quest0.
                    setGiver_npc(relatedGiver_npc0);
                }
            
                const relatedGiver_npc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Quest1 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quest1?.setGiver_npc)
                {
                    await
                    Quest1.
                    setGiver_npc(relatedGiver_npc1);
                }
            
                const relatedGiver_npc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Quest2 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quest2?.setGiver_npc)
                {
                    await
                    Quest2.
                    setGiver_npc(relatedGiver_npc2);
                }
            
                const relatedGiver_npc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Quest3 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Quest3?.setGiver_npc)
                {
                    await
                    Quest3.
                    setGiver_npc(relatedGiver_npc3);
                }
            
                const relatedGiver_npc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Quest4 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Quest4?.setGiver_npc)
                {
                    await
                    Quest4.
                    setGiver_npc(relatedGiver_npc4);
                }
            
        }
        
    
        
            
            async function associateQuestWithStart_location() {
            
                const relatedStart_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest0 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quest0?.setStart_location)
                {
                    await
                    Quest0.
                    setStart_location(relatedStart_location0);
                }
            
                const relatedStart_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest1 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quest1?.setStart_location)
                {
                    await
                    Quest1.
                    setStart_location(relatedStart_location1);
                }
            
                const relatedStart_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest2 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quest2?.setStart_location)
                {
                    await
                    Quest2.
                    setStart_location(relatedStart_location2);
                }
            
                const relatedStart_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest3 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Quest3?.setStart_location)
                {
                    await
                    Quest3.
                    setStart_location(relatedStart_location3);
                }
            
                const relatedStart_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest4 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Quest4?.setStart_location)
                {
                    await
                    Quest4.
                    setStart_location(relatedStart_location4);
                }
            
        }
        
    
        
            
            async function associateQuestWithEnd_location() {
            
                const relatedEnd_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest0 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Quest0?.setEnd_location)
                {
                    await
                    Quest0.
                    setEnd_location(relatedEnd_location0);
                }
            
                const relatedEnd_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest1 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Quest1?.setEnd_location)
                {
                    await
                    Quest1.
                    setEnd_location(relatedEnd_location1);
                }
            
                const relatedEnd_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest2 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Quest2?.setEnd_location)
                {
                    await
                    Quest2.
                    setEnd_location(relatedEnd_location2);
                }
            
                const relatedEnd_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest3 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Quest3?.setEnd_location)
                {
                    await
                    Quest3.
                    setEnd_location(relatedEnd_location3);
                }
            
                const relatedEnd_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Quest4 = await Quests.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Quest4?.setEnd_location)
                {
                    await
                    Quest4.
                    setEnd_location(relatedEnd_location4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateQuestObjectiveWithQuest() {
            
                const relatedQuest0 = await Quests.findOne({
                    offset: Math.floor(Math.random() * (await Quests.count())),
                });
                const QuestObjective0 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuestObjective0?.setQuest)
                {
                    await
                    QuestObjective0.
                    setQuest(relatedQuest0);
                }
            
                const relatedQuest1 = await Quests.findOne({
                    offset: Math.floor(Math.random() * (await Quests.count())),
                });
                const QuestObjective1 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuestObjective1?.setQuest)
                {
                    await
                    QuestObjective1.
                    setQuest(relatedQuest1);
                }
            
                const relatedQuest2 = await Quests.findOne({
                    offset: Math.floor(Math.random() * (await Quests.count())),
                });
                const QuestObjective2 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuestObjective2?.setQuest)
                {
                    await
                    QuestObjective2.
                    setQuest(relatedQuest2);
                }
            
                const relatedQuest3 = await Quests.findOne({
                    offset: Math.floor(Math.random() * (await Quests.count())),
                });
                const QuestObjective3 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuestObjective3?.setQuest)
                {
                    await
                    QuestObjective3.
                    setQuest(relatedQuest3);
                }
            
                const relatedQuest4 = await Quests.findOne({
                    offset: Math.floor(Math.random() * (await Quests.count())),
                });
                const QuestObjective4 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuestObjective4?.setQuest)
                {
                    await
                    QuestObjective4.
                    setQuest(relatedQuest4);
                }
            
        }
        
    
        
    
        
            
            async function associateQuestObjectiveWithTarget_item() {
            
                const relatedTarget_item0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const QuestObjective0 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuestObjective0?.setTarget_item)
                {
                    await
                    QuestObjective0.
                    setTarget_item(relatedTarget_item0);
                }
            
                const relatedTarget_item1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const QuestObjective1 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuestObjective1?.setTarget_item)
                {
                    await
                    QuestObjective1.
                    setTarget_item(relatedTarget_item1);
                }
            
                const relatedTarget_item2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const QuestObjective2 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuestObjective2?.setTarget_item)
                {
                    await
                    QuestObjective2.
                    setTarget_item(relatedTarget_item2);
                }
            
                const relatedTarget_item3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const QuestObjective3 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuestObjective3?.setTarget_item)
                {
                    await
                    QuestObjective3.
                    setTarget_item(relatedTarget_item3);
                }
            
                const relatedTarget_item4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const QuestObjective4 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuestObjective4?.setTarget_item)
                {
                    await
                    QuestObjective4.
                    setTarget_item(relatedTarget_item4);
                }
            
        }
        
    
        
            
            async function associateQuestObjectiveWithTarget_npc() {
            
                const relatedTarget_npc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const QuestObjective0 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuestObjective0?.setTarget_npc)
                {
                    await
                    QuestObjective0.
                    setTarget_npc(relatedTarget_npc0);
                }
            
                const relatedTarget_npc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const QuestObjective1 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuestObjective1?.setTarget_npc)
                {
                    await
                    QuestObjective1.
                    setTarget_npc(relatedTarget_npc1);
                }
            
                const relatedTarget_npc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const QuestObjective2 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuestObjective2?.setTarget_npc)
                {
                    await
                    QuestObjective2.
                    setTarget_npc(relatedTarget_npc2);
                }
            
                const relatedTarget_npc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const QuestObjective3 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuestObjective3?.setTarget_npc)
                {
                    await
                    QuestObjective3.
                    setTarget_npc(relatedTarget_npc3);
                }
            
                const relatedTarget_npc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const QuestObjective4 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuestObjective4?.setTarget_npc)
                {
                    await
                    QuestObjective4.
                    setTarget_npc(relatedTarget_npc4);
                }
            
        }
        
    
        
            
            async function associateQuestObjectiveWithTarget_location() {
            
                const relatedTarget_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const QuestObjective0 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (QuestObjective0?.setTarget_location)
                {
                    await
                    QuestObjective0.
                    setTarget_location(relatedTarget_location0);
                }
            
                const relatedTarget_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const QuestObjective1 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (QuestObjective1?.setTarget_location)
                {
                    await
                    QuestObjective1.
                    setTarget_location(relatedTarget_location1);
                }
            
                const relatedTarget_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const QuestObjective2 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (QuestObjective2?.setTarget_location)
                {
                    await
                    QuestObjective2.
                    setTarget_location(relatedTarget_location2);
                }
            
                const relatedTarget_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const QuestObjective3 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (QuestObjective3?.setTarget_location)
                {
                    await
                    QuestObjective3.
                    setTarget_location(relatedTarget_location3);
                }
            
                const relatedTarget_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const QuestObjective4 = await QuestObjectives.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (QuestObjective4?.setTarget_location)
                {
                    await
                    QuestObjective4.
                    setTarget_location(relatedTarget_location4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateMarketStoreWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const MarketStore0 = await MarketStores.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (MarketStore0?.setLocation)
                {
                    await
                    MarketStore0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const MarketStore1 = await MarketStores.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (MarketStore1?.setLocation)
                {
                    await
                    MarketStore1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const MarketStore2 = await MarketStores.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (MarketStore2?.setLocation)
                {
                    await
                    MarketStore2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const MarketStore3 = await MarketStores.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (MarketStore3?.setLocation)
                {
                    await
                    MarketStore3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const MarketStore4 = await MarketStores.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (MarketStore4?.setLocation)
                {
                    await
                    MarketStore4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateEmployeeWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Employee0 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Employee0?.setStore)
                {
                    await
                    Employee0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Employee1 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Employee1?.setStore)
                {
                    await
                    Employee1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Employee2 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Employee2?.setStore)
                {
                    await
                    Employee2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Employee3 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Employee3?.setStore)
                {
                    await
                    Employee3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Employee4 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Employee4?.setStore)
                {
                    await
                    Employee4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
            
            async function associateEmployeeWithNpc() {
            
                const relatedNpc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Employee0 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Employee0?.setNpc)
                {
                    await
                    Employee0.
                    setNpc(relatedNpc0);
                }
            
                const relatedNpc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Employee1 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Employee1?.setNpc)
                {
                    await
                    Employee1.
                    setNpc(relatedNpc1);
                }
            
                const relatedNpc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Employee2 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Employee2?.setNpc)
                {
                    await
                    Employee2.
                    setNpc(relatedNpc2);
                }
            
                const relatedNpc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Employee3 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Employee3?.setNpc)
                {
                    await
                    Employee3.
                    setNpc(relatedNpc3);
                }
            
                const relatedNpc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const Employee4 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Employee4?.setNpc)
                {
                    await
                    Employee4.
                    setNpc(relatedNpc4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            
            async function associateSupplierWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Supplier0 = await Suppliers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Supplier0?.setLocation)
                {
                    await
                    Supplier0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Supplier1 = await Suppliers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Supplier1?.setLocation)
                {
                    await
                    Supplier1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Supplier2 = await Suppliers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Supplier2?.setLocation)
                {
                    await
                    Supplier2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Supplier3 = await Suppliers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Supplier3?.setLocation)
                {
                    await
                    Supplier3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Supplier4 = await Suppliers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Supplier4?.setLocation)
                {
                    await
                    Supplier4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateStoreProductWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const StoreProduct0 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoreProduct0?.setStore)
                {
                    await
                    StoreProduct0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const StoreProduct1 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoreProduct1?.setStore)
                {
                    await
                    StoreProduct1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const StoreProduct2 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoreProduct2?.setStore)
                {
                    await
                    StoreProduct2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const StoreProduct3 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoreProduct3?.setStore)
                {
                    await
                    StoreProduct3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const StoreProduct4 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StoreProduct4?.setStore)
                {
                    await
                    StoreProduct4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
            
            async function associateStoreProductWithItem() {
            
                const relatedItem0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const StoreProduct0 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoreProduct0?.setItem)
                {
                    await
                    StoreProduct0.
                    setItem(relatedItem0);
                }
            
                const relatedItem1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const StoreProduct1 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoreProduct1?.setItem)
                {
                    await
                    StoreProduct1.
                    setItem(relatedItem1);
                }
            
                const relatedItem2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const StoreProduct2 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoreProduct2?.setItem)
                {
                    await
                    StoreProduct2.
                    setItem(relatedItem2);
                }
            
                const relatedItem3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const StoreProduct3 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoreProduct3?.setItem)
                {
                    await
                    StoreProduct3.
                    setItem(relatedItem3);
                }
            
                const relatedItem4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const StoreProduct4 = await StoreProducts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StoreProduct4?.setItem)
                {
                    await
                    StoreProduct4.
                    setItem(relatedItem4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateStoreInventoryBatcheWithStore_product() {
            
                const relatedStore_product0 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const StoreInventoryBatche0 = await StoreInventoryBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (StoreInventoryBatche0?.setStore_product)
                {
                    await
                    StoreInventoryBatche0.
                    setStore_product(relatedStore_product0);
                }
            
                const relatedStore_product1 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const StoreInventoryBatche1 = await StoreInventoryBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (StoreInventoryBatche1?.setStore_product)
                {
                    await
                    StoreInventoryBatche1.
                    setStore_product(relatedStore_product1);
                }
            
                const relatedStore_product2 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const StoreInventoryBatche2 = await StoreInventoryBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (StoreInventoryBatche2?.setStore_product)
                {
                    await
                    StoreInventoryBatche2.
                    setStore_product(relatedStore_product2);
                }
            
                const relatedStore_product3 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const StoreInventoryBatche3 = await StoreInventoryBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (StoreInventoryBatche3?.setStore_product)
                {
                    await
                    StoreInventoryBatche3.
                    setStore_product(relatedStore_product3);
                }
            
                const relatedStore_product4 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const StoreInventoryBatche4 = await StoreInventoryBatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (StoreInventoryBatche4?.setStore_product)
                {
                    await
                    StoreInventoryBatche4.
                    setStore_product(relatedStore_product4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePurchaseOrderWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const PurchaseOrder0 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PurchaseOrder0?.setStore)
                {
                    await
                    PurchaseOrder0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const PurchaseOrder1 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PurchaseOrder1?.setStore)
                {
                    await
                    PurchaseOrder1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const PurchaseOrder2 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PurchaseOrder2?.setStore)
                {
                    await
                    PurchaseOrder2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const PurchaseOrder3 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PurchaseOrder3?.setStore)
                {
                    await
                    PurchaseOrder3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const PurchaseOrder4 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PurchaseOrder4?.setStore)
                {
                    await
                    PurchaseOrder4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
            
            async function associatePurchaseOrderWithSupplier() {
            
                const relatedSupplier0 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const PurchaseOrder0 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PurchaseOrder0?.setSupplier)
                {
                    await
                    PurchaseOrder0.
                    setSupplier(relatedSupplier0);
                }
            
                const relatedSupplier1 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const PurchaseOrder1 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PurchaseOrder1?.setSupplier)
                {
                    await
                    PurchaseOrder1.
                    setSupplier(relatedSupplier1);
                }
            
                const relatedSupplier2 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const PurchaseOrder2 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PurchaseOrder2?.setSupplier)
                {
                    await
                    PurchaseOrder2.
                    setSupplier(relatedSupplier2);
                }
            
                const relatedSupplier3 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const PurchaseOrder3 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PurchaseOrder3?.setSupplier)
                {
                    await
                    PurchaseOrder3.
                    setSupplier(relatedSupplier3);
                }
            
                const relatedSupplier4 = await Suppliers.findOne({
                    offset: Math.floor(Math.random() * (await Suppliers.count())),
                });
                const PurchaseOrder4 = await PurchaseOrders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PurchaseOrder4?.setSupplier)
                {
                    await
                    PurchaseOrder4.
                    setSupplier(relatedSupplier4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePurchaseOrderLineWithPurchase_order() {
            
                const relatedPurchase_order0 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const PurchaseOrderLine0 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PurchaseOrderLine0?.setPurchase_order)
                {
                    await
                    PurchaseOrderLine0.
                    setPurchase_order(relatedPurchase_order0);
                }
            
                const relatedPurchase_order1 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const PurchaseOrderLine1 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PurchaseOrderLine1?.setPurchase_order)
                {
                    await
                    PurchaseOrderLine1.
                    setPurchase_order(relatedPurchase_order1);
                }
            
                const relatedPurchase_order2 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const PurchaseOrderLine2 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PurchaseOrderLine2?.setPurchase_order)
                {
                    await
                    PurchaseOrderLine2.
                    setPurchase_order(relatedPurchase_order2);
                }
            
                const relatedPurchase_order3 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const PurchaseOrderLine3 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PurchaseOrderLine3?.setPurchase_order)
                {
                    await
                    PurchaseOrderLine3.
                    setPurchase_order(relatedPurchase_order3);
                }
            
                const relatedPurchase_order4 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const PurchaseOrderLine4 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PurchaseOrderLine4?.setPurchase_order)
                {
                    await
                    PurchaseOrderLine4.
                    setPurchase_order(relatedPurchase_order4);
                }
            
        }
        
    
        
            
            async function associatePurchaseOrderLineWithItem() {
            
                const relatedItem0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PurchaseOrderLine0 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PurchaseOrderLine0?.setItem)
                {
                    await
                    PurchaseOrderLine0.
                    setItem(relatedItem0);
                }
            
                const relatedItem1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PurchaseOrderLine1 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PurchaseOrderLine1?.setItem)
                {
                    await
                    PurchaseOrderLine1.
                    setItem(relatedItem1);
                }
            
                const relatedItem2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PurchaseOrderLine2 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PurchaseOrderLine2?.setItem)
                {
                    await
                    PurchaseOrderLine2.
                    setItem(relatedItem2);
                }
            
                const relatedItem3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PurchaseOrderLine3 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PurchaseOrderLine3?.setItem)
                {
                    await
                    PurchaseOrderLine3.
                    setItem(relatedItem3);
                }
            
                const relatedItem4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PurchaseOrderLine4 = await PurchaseOrderLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PurchaseOrderLine4?.setItem)
                {
                    await
                    PurchaseOrderLine4.
                    setItem(relatedItem4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDeliveryWithPurchase_order() {
            
                const relatedPurchase_order0 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const Delivery0 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Delivery0?.setPurchase_order)
                {
                    await
                    Delivery0.
                    setPurchase_order(relatedPurchase_order0);
                }
            
                const relatedPurchase_order1 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const Delivery1 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Delivery1?.setPurchase_order)
                {
                    await
                    Delivery1.
                    setPurchase_order(relatedPurchase_order1);
                }
            
                const relatedPurchase_order2 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const Delivery2 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Delivery2?.setPurchase_order)
                {
                    await
                    Delivery2.
                    setPurchase_order(relatedPurchase_order2);
                }
            
                const relatedPurchase_order3 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const Delivery3 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Delivery3?.setPurchase_order)
                {
                    await
                    Delivery3.
                    setPurchase_order(relatedPurchase_order3);
                }
            
                const relatedPurchase_order4 = await PurchaseOrders.findOne({
                    offset: Math.floor(Math.random() * (await PurchaseOrders.count())),
                });
                const Delivery4 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Delivery4?.setPurchase_order)
                {
                    await
                    Delivery4.
                    setPurchase_order(relatedPurchase_order4);
                }
            
        }
        
    
        
            
            async function associateDeliveryWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Delivery0 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Delivery0?.setStore)
                {
                    await
                    Delivery0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Delivery1 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Delivery1?.setStore)
                {
                    await
                    Delivery1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Delivery2 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Delivery2?.setStore)
                {
                    await
                    Delivery2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Delivery3 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Delivery3?.setStore)
                {
                    await
                    Delivery3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Delivery4 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Delivery4?.setStore)
                {
                    await
                    Delivery4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateDeliveryWithReceived_by_employee() {
            
                const relatedReceived_by_employee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Delivery0 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Delivery0?.setReceived_by_employee)
                {
                    await
                    Delivery0.
                    setReceived_by_employee(relatedReceived_by_employee0);
                }
            
                const relatedReceived_by_employee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Delivery1 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Delivery1?.setReceived_by_employee)
                {
                    await
                    Delivery1.
                    setReceived_by_employee(relatedReceived_by_employee1);
                }
            
                const relatedReceived_by_employee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Delivery2 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Delivery2?.setReceived_by_employee)
                {
                    await
                    Delivery2.
                    setReceived_by_employee(relatedReceived_by_employee2);
                }
            
                const relatedReceived_by_employee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Delivery3 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Delivery3?.setReceived_by_employee)
                {
                    await
                    Delivery3.
                    setReceived_by_employee(relatedReceived_by_employee3);
                }
            
                const relatedReceived_by_employee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Delivery4 = await Deliveries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Delivery4?.setReceived_by_employee)
                {
                    await
                    Delivery4.
                    setReceived_by_employee(relatedReceived_by_employee4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associateShelveWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Shelve0 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Shelve0?.setStore)
                {
                    await
                    Shelve0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Shelve1 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Shelve1?.setStore)
                {
                    await
                    Shelve1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Shelve2 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Shelve2?.setStore)
                {
                    await
                    Shelve2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Shelve3 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Shelve3?.setStore)
                {
                    await
                    Shelve3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const Shelve4 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Shelve4?.setStore)
                {
                    await
                    Shelve4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateShelveWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Shelve0 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Shelve0?.setLocation)
                {
                    await
                    Shelve0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Shelve1 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Shelve1?.setLocation)
                {
                    await
                    Shelve1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Shelve2 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Shelve2?.setLocation)
                {
                    await
                    Shelve2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Shelve3 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Shelve3?.setLocation)
                {
                    await
                    Shelve3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Shelve4 = await Shelves.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Shelve4?.setLocation)
                {
                    await
                    Shelve4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateShelfSlotWithShelf() {
            
                const relatedShelf0 = await Shelves.findOne({
                    offset: Math.floor(Math.random() * (await Shelves.count())),
                });
                const ShelfSlot0 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ShelfSlot0?.setShelf)
                {
                    await
                    ShelfSlot0.
                    setShelf(relatedShelf0);
                }
            
                const relatedShelf1 = await Shelves.findOne({
                    offset: Math.floor(Math.random() * (await Shelves.count())),
                });
                const ShelfSlot1 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ShelfSlot1?.setShelf)
                {
                    await
                    ShelfSlot1.
                    setShelf(relatedShelf1);
                }
            
                const relatedShelf2 = await Shelves.findOne({
                    offset: Math.floor(Math.random() * (await Shelves.count())),
                });
                const ShelfSlot2 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ShelfSlot2?.setShelf)
                {
                    await
                    ShelfSlot2.
                    setShelf(relatedShelf2);
                }
            
                const relatedShelf3 = await Shelves.findOne({
                    offset: Math.floor(Math.random() * (await Shelves.count())),
                });
                const ShelfSlot3 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ShelfSlot3?.setShelf)
                {
                    await
                    ShelfSlot3.
                    setShelf(relatedShelf3);
                }
            
                const relatedShelf4 = await Shelves.findOne({
                    offset: Math.floor(Math.random() * (await Shelves.count())),
                });
                const ShelfSlot4 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ShelfSlot4?.setShelf)
                {
                    await
                    ShelfSlot4.
                    setShelf(relatedShelf4);
                }
            
        }
        
    
        
            
            async function associateShelfSlotWithStore_product() {
            
                const relatedStore_product0 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const ShelfSlot0 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ShelfSlot0?.setStore_product)
                {
                    await
                    ShelfSlot0.
                    setStore_product(relatedStore_product0);
                }
            
                const relatedStore_product1 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const ShelfSlot1 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ShelfSlot1?.setStore_product)
                {
                    await
                    ShelfSlot1.
                    setStore_product(relatedStore_product1);
                }
            
                const relatedStore_product2 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const ShelfSlot2 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ShelfSlot2?.setStore_product)
                {
                    await
                    ShelfSlot2.
                    setStore_product(relatedStore_product2);
                }
            
                const relatedStore_product3 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const ShelfSlot3 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ShelfSlot3?.setStore_product)
                {
                    await
                    ShelfSlot3.
                    setStore_product(relatedStore_product3);
                }
            
                const relatedStore_product4 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const ShelfSlot4 = await ShelfSlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ShelfSlot4?.setStore_product)
                {
                    await
                    ShelfSlot4.
                    setStore_product(relatedStore_product4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCashRegisterWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const CashRegister0 = await CashRegisters.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CashRegister0?.setStore)
                {
                    await
                    CashRegister0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const CashRegister1 = await CashRegisters.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CashRegister1?.setStore)
                {
                    await
                    CashRegister1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const CashRegister2 = await CashRegisters.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CashRegister2?.setStore)
                {
                    await
                    CashRegister2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const CashRegister3 = await CashRegisters.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CashRegister3?.setStore)
                {
                    await
                    CashRegister3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const CashRegister4 = await CashRegisters.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CashRegister4?.setStore)
                {
                    await
                    CashRegister4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSalesTransactionWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const SalesTransaction0 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SalesTransaction0?.setStore)
                {
                    await
                    SalesTransaction0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const SalesTransaction1 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SalesTransaction1?.setStore)
                {
                    await
                    SalesTransaction1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const SalesTransaction2 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SalesTransaction2?.setStore)
                {
                    await
                    SalesTransaction2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const SalesTransaction3 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SalesTransaction3?.setStore)
                {
                    await
                    SalesTransaction3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const SalesTransaction4 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SalesTransaction4?.setStore)
                {
                    await
                    SalesTransaction4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
            
            async function associateSalesTransactionWithRegister() {
            
                const relatedRegister0 = await CashRegisters.findOne({
                    offset: Math.floor(Math.random() * (await CashRegisters.count())),
                });
                const SalesTransaction0 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SalesTransaction0?.setRegister)
                {
                    await
                    SalesTransaction0.
                    setRegister(relatedRegister0);
                }
            
                const relatedRegister1 = await CashRegisters.findOne({
                    offset: Math.floor(Math.random() * (await CashRegisters.count())),
                });
                const SalesTransaction1 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SalesTransaction1?.setRegister)
                {
                    await
                    SalesTransaction1.
                    setRegister(relatedRegister1);
                }
            
                const relatedRegister2 = await CashRegisters.findOne({
                    offset: Math.floor(Math.random() * (await CashRegisters.count())),
                });
                const SalesTransaction2 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SalesTransaction2?.setRegister)
                {
                    await
                    SalesTransaction2.
                    setRegister(relatedRegister2);
                }
            
                const relatedRegister3 = await CashRegisters.findOne({
                    offset: Math.floor(Math.random() * (await CashRegisters.count())),
                });
                const SalesTransaction3 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SalesTransaction3?.setRegister)
                {
                    await
                    SalesTransaction3.
                    setRegister(relatedRegister3);
                }
            
                const relatedRegister4 = await CashRegisters.findOne({
                    offset: Math.floor(Math.random() * (await CashRegisters.count())),
                });
                const SalesTransaction4 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SalesTransaction4?.setRegister)
                {
                    await
                    SalesTransaction4.
                    setRegister(relatedRegister4);
                }
            
        }
        
    
        
            
            async function associateSalesTransactionWithCashier_employee() {
            
                const relatedCashier_employee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const SalesTransaction0 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SalesTransaction0?.setCashier_employee)
                {
                    await
                    SalesTransaction0.
                    setCashier_employee(relatedCashier_employee0);
                }
            
                const relatedCashier_employee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const SalesTransaction1 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SalesTransaction1?.setCashier_employee)
                {
                    await
                    SalesTransaction1.
                    setCashier_employee(relatedCashier_employee1);
                }
            
                const relatedCashier_employee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const SalesTransaction2 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SalesTransaction2?.setCashier_employee)
                {
                    await
                    SalesTransaction2.
                    setCashier_employee(relatedCashier_employee2);
                }
            
                const relatedCashier_employee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const SalesTransaction3 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SalesTransaction3?.setCashier_employee)
                {
                    await
                    SalesTransaction3.
                    setCashier_employee(relatedCashier_employee3);
                }
            
                const relatedCashier_employee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const SalesTransaction4 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SalesTransaction4?.setCashier_employee)
                {
                    await
                    SalesTransaction4.
                    setCashier_employee(relatedCashier_employee4);
                }
            
        }
        
    
        
            
            async function associateSalesTransactionWithCustomer_npc() {
            
                const relatedCustomer_npc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const SalesTransaction0 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SalesTransaction0?.setCustomer_npc)
                {
                    await
                    SalesTransaction0.
                    setCustomer_npc(relatedCustomer_npc0);
                }
            
                const relatedCustomer_npc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const SalesTransaction1 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SalesTransaction1?.setCustomer_npc)
                {
                    await
                    SalesTransaction1.
                    setCustomer_npc(relatedCustomer_npc1);
                }
            
                const relatedCustomer_npc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const SalesTransaction2 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SalesTransaction2?.setCustomer_npc)
                {
                    await
                    SalesTransaction2.
                    setCustomer_npc(relatedCustomer_npc2);
                }
            
                const relatedCustomer_npc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const SalesTransaction3 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SalesTransaction3?.setCustomer_npc)
                {
                    await
                    SalesTransaction3.
                    setCustomer_npc(relatedCustomer_npc3);
                }
            
                const relatedCustomer_npc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const SalesTransaction4 = await SalesTransactions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SalesTransaction4?.setCustomer_npc)
                {
                    await
                    SalesTransaction4.
                    setCustomer_npc(relatedCustomer_npc4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateSalesTransactionLineWithSales_transaction() {
            
                const relatedSales_transaction0 = await SalesTransactions.findOne({
                    offset: Math.floor(Math.random() * (await SalesTransactions.count())),
                });
                const SalesTransactionLine0 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SalesTransactionLine0?.setSales_transaction)
                {
                    await
                    SalesTransactionLine0.
                    setSales_transaction(relatedSales_transaction0);
                }
            
                const relatedSales_transaction1 = await SalesTransactions.findOne({
                    offset: Math.floor(Math.random() * (await SalesTransactions.count())),
                });
                const SalesTransactionLine1 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SalesTransactionLine1?.setSales_transaction)
                {
                    await
                    SalesTransactionLine1.
                    setSales_transaction(relatedSales_transaction1);
                }
            
                const relatedSales_transaction2 = await SalesTransactions.findOne({
                    offset: Math.floor(Math.random() * (await SalesTransactions.count())),
                });
                const SalesTransactionLine2 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SalesTransactionLine2?.setSales_transaction)
                {
                    await
                    SalesTransactionLine2.
                    setSales_transaction(relatedSales_transaction2);
                }
            
                const relatedSales_transaction3 = await SalesTransactions.findOne({
                    offset: Math.floor(Math.random() * (await SalesTransactions.count())),
                });
                const SalesTransactionLine3 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SalesTransactionLine3?.setSales_transaction)
                {
                    await
                    SalesTransactionLine3.
                    setSales_transaction(relatedSales_transaction3);
                }
            
                const relatedSales_transaction4 = await SalesTransactions.findOne({
                    offset: Math.floor(Math.random() * (await SalesTransactions.count())),
                });
                const SalesTransactionLine4 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SalesTransactionLine4?.setSales_transaction)
                {
                    await
                    SalesTransactionLine4.
                    setSales_transaction(relatedSales_transaction4);
                }
            
        }
        
    
        
            
            async function associateSalesTransactionLineWithStore_product() {
            
                const relatedStore_product0 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const SalesTransactionLine0 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (SalesTransactionLine0?.setStore_product)
                {
                    await
                    SalesTransactionLine0.
                    setStore_product(relatedStore_product0);
                }
            
                const relatedStore_product1 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const SalesTransactionLine1 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (SalesTransactionLine1?.setStore_product)
                {
                    await
                    SalesTransactionLine1.
                    setStore_product(relatedStore_product1);
                }
            
                const relatedStore_product2 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const SalesTransactionLine2 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (SalesTransactionLine2?.setStore_product)
                {
                    await
                    SalesTransactionLine2.
                    setStore_product(relatedStore_product2);
                }
            
                const relatedStore_product3 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const SalesTransactionLine3 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (SalesTransactionLine3?.setStore_product)
                {
                    await
                    SalesTransactionLine3.
                    setStore_product(relatedStore_product3);
                }
            
                const relatedStore_product4 = await StoreProducts.findOne({
                    offset: Math.floor(Math.random() * (await StoreProducts.count())),
                });
                const SalesTransactionLine4 = await SalesTransactionLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (SalesTransactionLine4?.setStore_product)
                {
                    await
                    SalesTransactionLine4.
                    setStore_product(relatedStore_product4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDailyReportWithStore() {
            
                const relatedStore0 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const DailyReport0 = await DailyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DailyReport0?.setStore)
                {
                    await
                    DailyReport0.
                    setStore(relatedStore0);
                }
            
                const relatedStore1 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const DailyReport1 = await DailyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DailyReport1?.setStore)
                {
                    await
                    DailyReport1.
                    setStore(relatedStore1);
                }
            
                const relatedStore2 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const DailyReport2 = await DailyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DailyReport2?.setStore)
                {
                    await
                    DailyReport2.
                    setStore(relatedStore2);
                }
            
                const relatedStore3 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const DailyReport3 = await DailyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DailyReport3?.setStore)
                {
                    await
                    DailyReport3.
                    setStore(relatedStore3);
                }
            
                const relatedStore4 = await MarketStores.findOne({
                    offset: Math.floor(Math.random() * (await MarketStores.count())),
                });
                const DailyReport4 = await DailyReports.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DailyReport4?.setStore)
                {
                    await
                    DailyReport4.
                    setStore(relatedStore4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateWorldCalendarDayWithWeather_state() {
            
                const relatedWeather_state0 = await WeatherStates.findOne({
                    offset: Math.floor(Math.random() * (await WeatherStates.count())),
                });
                const WorldCalendarDay0 = await WorldCalendarDays.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (WorldCalendarDay0?.setWeather_state)
                {
                    await
                    WorldCalendarDay0.
                    setWeather_state(relatedWeather_state0);
                }
            
                const relatedWeather_state1 = await WeatherStates.findOne({
                    offset: Math.floor(Math.random() * (await WeatherStates.count())),
                });
                const WorldCalendarDay1 = await WorldCalendarDays.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (WorldCalendarDay1?.setWeather_state)
                {
                    await
                    WorldCalendarDay1.
                    setWeather_state(relatedWeather_state1);
                }
            
                const relatedWeather_state2 = await WeatherStates.findOne({
                    offset: Math.floor(Math.random() * (await WeatherStates.count())),
                });
                const WorldCalendarDay2 = await WorldCalendarDays.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (WorldCalendarDay2?.setWeather_state)
                {
                    await
                    WorldCalendarDay2.
                    setWeather_state(relatedWeather_state2);
                }
            
                const relatedWeather_state3 = await WeatherStates.findOne({
                    offset: Math.floor(Math.random() * (await WeatherStates.count())),
                });
                const WorldCalendarDay3 = await WorldCalendarDays.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (WorldCalendarDay3?.setWeather_state)
                {
                    await
                    WorldCalendarDay3.
                    setWeather_state(relatedWeather_state3);
                }
            
                const relatedWeather_state4 = await WeatherStates.findOne({
                    offset: Math.floor(Math.random() * (await WeatherStates.count())),
                });
                const WorldCalendarDay4 = await WorldCalendarDays.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (WorldCalendarDay4?.setWeather_state)
                {
                    await
                    WorldCalendarDay4.
                    setWeather_state(relatedWeather_state4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
            
            async function associatePriceModifierWithItem() {
            
                const relatedItem0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PriceModifier0 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PriceModifier0?.setItem)
                {
                    await
                    PriceModifier0.
                    setItem(relatedItem0);
                }
            
                const relatedItem1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PriceModifier1 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PriceModifier1?.setItem)
                {
                    await
                    PriceModifier1.
                    setItem(relatedItem1);
                }
            
                const relatedItem2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PriceModifier2 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PriceModifier2?.setItem)
                {
                    await
                    PriceModifier2.
                    setItem(relatedItem2);
                }
            
                const relatedItem3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PriceModifier3 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PriceModifier3?.setItem)
                {
                    await
                    PriceModifier3.
                    setItem(relatedItem3);
                }
            
                const relatedItem4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const PriceModifier4 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PriceModifier4?.setItem)
                {
                    await
                    PriceModifier4.
                    setItem(relatedItem4);
                }
            
        }
        
    
        
            
            async function associatePriceModifierWithCalendar_day() {
            
                const relatedCalendar_day0 = await WorldCalendarDays.findOne({
                    offset: Math.floor(Math.random() * (await WorldCalendarDays.count())),
                });
                const PriceModifier0 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PriceModifier0?.setCalendar_day)
                {
                    await
                    PriceModifier0.
                    setCalendar_day(relatedCalendar_day0);
                }
            
                const relatedCalendar_day1 = await WorldCalendarDays.findOne({
                    offset: Math.floor(Math.random() * (await WorldCalendarDays.count())),
                });
                const PriceModifier1 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PriceModifier1?.setCalendar_day)
                {
                    await
                    PriceModifier1.
                    setCalendar_day(relatedCalendar_day1);
                }
            
                const relatedCalendar_day2 = await WorldCalendarDays.findOne({
                    offset: Math.floor(Math.random() * (await WorldCalendarDays.count())),
                });
                const PriceModifier2 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PriceModifier2?.setCalendar_day)
                {
                    await
                    PriceModifier2.
                    setCalendar_day(relatedCalendar_day2);
                }
            
                const relatedCalendar_day3 = await WorldCalendarDays.findOne({
                    offset: Math.floor(Math.random() * (await WorldCalendarDays.count())),
                });
                const PriceModifier3 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PriceModifier3?.setCalendar_day)
                {
                    await
                    PriceModifier3.
                    setCalendar_day(relatedCalendar_day3);
                }
            
                const relatedCalendar_day4 = await WorldCalendarDays.findOne({
                    offset: Math.floor(Math.random() * (await WorldCalendarDays.count())),
                });
                const PriceModifier4 = await PriceModifiers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PriceModifier4?.setCalendar_day)
                {
                    await
                    PriceModifier4.
                    setCalendar_day(relatedCalendar_day4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateCropWithSeed_item() {
            
                const relatedSeed_item0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop0 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Crop0?.setSeed_item)
                {
                    await
                    Crop0.
                    setSeed_item(relatedSeed_item0);
                }
            
                const relatedSeed_item1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop1 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Crop1?.setSeed_item)
                {
                    await
                    Crop1.
                    setSeed_item(relatedSeed_item1);
                }
            
                const relatedSeed_item2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop2 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Crop2?.setSeed_item)
                {
                    await
                    Crop2.
                    setSeed_item(relatedSeed_item2);
                }
            
                const relatedSeed_item3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop3 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Crop3?.setSeed_item)
                {
                    await
                    Crop3.
                    setSeed_item(relatedSeed_item3);
                }
            
                const relatedSeed_item4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop4 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Crop4?.setSeed_item)
                {
                    await
                    Crop4.
                    setSeed_item(relatedSeed_item4);
                }
            
        }
        
    
        
            
            async function associateCropWithHarvest_item() {
            
                const relatedHarvest_item0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop0 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Crop0?.setHarvest_item)
                {
                    await
                    Crop0.
                    setHarvest_item(relatedHarvest_item0);
                }
            
                const relatedHarvest_item1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop1 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Crop1?.setHarvest_item)
                {
                    await
                    Crop1.
                    setHarvest_item(relatedHarvest_item1);
                }
            
                const relatedHarvest_item2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop2 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Crop2?.setHarvest_item)
                {
                    await
                    Crop2.
                    setHarvest_item(relatedHarvest_item2);
                }
            
                const relatedHarvest_item3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop3 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Crop3?.setHarvest_item)
                {
                    await
                    Crop3.
                    setHarvest_item(relatedHarvest_item3);
                }
            
                const relatedHarvest_item4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const Crop4 = await Crops.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Crop4?.setHarvest_item)
                {
                    await
                    Crop4.
                    setHarvest_item(relatedHarvest_item4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFarmPlotWithOwner_profile() {
            
                const relatedOwner_profile0 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FarmPlot0 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FarmPlot0?.setOwner_profile)
                {
                    await
                    FarmPlot0.
                    setOwner_profile(relatedOwner_profile0);
                }
            
                const relatedOwner_profile1 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FarmPlot1 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FarmPlot1?.setOwner_profile)
                {
                    await
                    FarmPlot1.
                    setOwner_profile(relatedOwner_profile1);
                }
            
                const relatedOwner_profile2 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FarmPlot2 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FarmPlot2?.setOwner_profile)
                {
                    await
                    FarmPlot2.
                    setOwner_profile(relatedOwner_profile2);
                }
            
                const relatedOwner_profile3 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FarmPlot3 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FarmPlot3?.setOwner_profile)
                {
                    await
                    FarmPlot3.
                    setOwner_profile(relatedOwner_profile3);
                }
            
                const relatedOwner_profile4 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FarmPlot4 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FarmPlot4?.setOwner_profile)
                {
                    await
                    FarmPlot4.
                    setOwner_profile(relatedOwner_profile4);
                }
            
        }
        
    
        
            
            async function associateFarmPlotWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FarmPlot0 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FarmPlot0?.setLocation)
                {
                    await
                    FarmPlot0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FarmPlot1 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FarmPlot1?.setLocation)
                {
                    await
                    FarmPlot1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FarmPlot2 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FarmPlot2?.setLocation)
                {
                    await
                    FarmPlot2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FarmPlot3 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FarmPlot3?.setLocation)
                {
                    await
                    FarmPlot3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FarmPlot4 = await FarmPlots.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FarmPlot4?.setLocation)
                {
                    await
                    FarmPlot4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associatePlantingWithFarm_plot() {
            
                const relatedFarm_plot0 = await FarmPlots.findOne({
                    offset: Math.floor(Math.random() * (await FarmPlots.count())),
                });
                const Planting0 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Planting0?.setFarm_plot)
                {
                    await
                    Planting0.
                    setFarm_plot(relatedFarm_plot0);
                }
            
                const relatedFarm_plot1 = await FarmPlots.findOne({
                    offset: Math.floor(Math.random() * (await FarmPlots.count())),
                });
                const Planting1 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Planting1?.setFarm_plot)
                {
                    await
                    Planting1.
                    setFarm_plot(relatedFarm_plot1);
                }
            
                const relatedFarm_plot2 = await FarmPlots.findOne({
                    offset: Math.floor(Math.random() * (await FarmPlots.count())),
                });
                const Planting2 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Planting2?.setFarm_plot)
                {
                    await
                    Planting2.
                    setFarm_plot(relatedFarm_plot2);
                }
            
                const relatedFarm_plot3 = await FarmPlots.findOne({
                    offset: Math.floor(Math.random() * (await FarmPlots.count())),
                });
                const Planting3 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Planting3?.setFarm_plot)
                {
                    await
                    Planting3.
                    setFarm_plot(relatedFarm_plot3);
                }
            
                const relatedFarm_plot4 = await FarmPlots.findOne({
                    offset: Math.floor(Math.random() * (await FarmPlots.count())),
                });
                const Planting4 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Planting4?.setFarm_plot)
                {
                    await
                    Planting4.
                    setFarm_plot(relatedFarm_plot4);
                }
            
        }
        
    
        
            
            async function associatePlantingWithCrop() {
            
                const relatedCrop0 = await Crops.findOne({
                    offset: Math.floor(Math.random() * (await Crops.count())),
                });
                const Planting0 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Planting0?.setCrop)
                {
                    await
                    Planting0.
                    setCrop(relatedCrop0);
                }
            
                const relatedCrop1 = await Crops.findOne({
                    offset: Math.floor(Math.random() * (await Crops.count())),
                });
                const Planting1 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Planting1?.setCrop)
                {
                    await
                    Planting1.
                    setCrop(relatedCrop1);
                }
            
                const relatedCrop2 = await Crops.findOne({
                    offset: Math.floor(Math.random() * (await Crops.count())),
                });
                const Planting2 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Planting2?.setCrop)
                {
                    await
                    Planting2.
                    setCrop(relatedCrop2);
                }
            
                const relatedCrop3 = await Crops.findOne({
                    offset: Math.floor(Math.random() * (await Crops.count())),
                });
                const Planting3 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Planting3?.setCrop)
                {
                    await
                    Planting3.
                    setCrop(relatedCrop3);
                }
            
                const relatedCrop4 = await Crops.findOne({
                    offset: Math.floor(Math.random() * (await Crops.count())),
                });
                const Planting4 = await Plantings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Planting4?.setCrop)
                {
                    await
                    Planting4.
                    setCrop(relatedCrop4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateFishSpecyWithItem() {
            
                const relatedItem0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const FishSpecy0 = await FishSpecies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FishSpecy0?.setItem)
                {
                    await
                    FishSpecy0.
                    setItem(relatedItem0);
                }
            
                const relatedItem1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const FishSpecy1 = await FishSpecies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FishSpecy1?.setItem)
                {
                    await
                    FishSpecy1.
                    setItem(relatedItem1);
                }
            
                const relatedItem2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const FishSpecy2 = await FishSpecies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FishSpecy2?.setItem)
                {
                    await
                    FishSpecy2.
                    setItem(relatedItem2);
                }
            
                const relatedItem3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const FishSpecy3 = await FishSpecies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FishSpecy3?.setItem)
                {
                    await
                    FishSpecy3.
                    setItem(relatedItem3);
                }
            
                const relatedItem4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const FishSpecy4 = await FishSpecies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FishSpecy4?.setItem)
                {
                    await
                    FishSpecy4.
                    setItem(relatedItem4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateFishingSpotWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FishingSpot0 = await FishingSpots.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FishingSpot0?.setLocation)
                {
                    await
                    FishingSpot0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FishingSpot1 = await FishingSpots.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FishingSpot1?.setLocation)
                {
                    await
                    FishingSpot1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FishingSpot2 = await FishingSpots.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FishingSpot2?.setLocation)
                {
                    await
                    FishingSpot2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FishingSpot3 = await FishingSpots.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FishingSpot3?.setLocation)
                {
                    await
                    FishingSpot3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const FishingSpot4 = await FishingSpots.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FishingSpot4?.setLocation)
                {
                    await
                    FishingSpot4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFishingCatcheWithPlayer_profile() {
            
                const relatedPlayer_profile0 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FishingCatche0 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FishingCatche0?.setPlayer_profile)
                {
                    await
                    FishingCatche0.
                    setPlayer_profile(relatedPlayer_profile0);
                }
            
                const relatedPlayer_profile1 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FishingCatche1 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FishingCatche1?.setPlayer_profile)
                {
                    await
                    FishingCatche1.
                    setPlayer_profile(relatedPlayer_profile1);
                }
            
                const relatedPlayer_profile2 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FishingCatche2 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FishingCatche2?.setPlayer_profile)
                {
                    await
                    FishingCatche2.
                    setPlayer_profile(relatedPlayer_profile2);
                }
            
                const relatedPlayer_profile3 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FishingCatche3 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FishingCatche3?.setPlayer_profile)
                {
                    await
                    FishingCatche3.
                    setPlayer_profile(relatedPlayer_profile3);
                }
            
                const relatedPlayer_profile4 = await PlayerProfiles.findOne({
                    offset: Math.floor(Math.random() * (await PlayerProfiles.count())),
                });
                const FishingCatche4 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FishingCatche4?.setPlayer_profile)
                {
                    await
                    FishingCatche4.
                    setPlayer_profile(relatedPlayer_profile4);
                }
            
        }
        
    
        
            
            async function associateFishingCatcheWithFishing_spot() {
            
                const relatedFishing_spot0 = await FishingSpots.findOne({
                    offset: Math.floor(Math.random() * (await FishingSpots.count())),
                });
                const FishingCatche0 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FishingCatche0?.setFishing_spot)
                {
                    await
                    FishingCatche0.
                    setFishing_spot(relatedFishing_spot0);
                }
            
                const relatedFishing_spot1 = await FishingSpots.findOne({
                    offset: Math.floor(Math.random() * (await FishingSpots.count())),
                });
                const FishingCatche1 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FishingCatche1?.setFishing_spot)
                {
                    await
                    FishingCatche1.
                    setFishing_spot(relatedFishing_spot1);
                }
            
                const relatedFishing_spot2 = await FishingSpots.findOne({
                    offset: Math.floor(Math.random() * (await FishingSpots.count())),
                });
                const FishingCatche2 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FishingCatche2?.setFishing_spot)
                {
                    await
                    FishingCatche2.
                    setFishing_spot(relatedFishing_spot2);
                }
            
                const relatedFishing_spot3 = await FishingSpots.findOne({
                    offset: Math.floor(Math.random() * (await FishingSpots.count())),
                });
                const FishingCatche3 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FishingCatche3?.setFishing_spot)
                {
                    await
                    FishingCatche3.
                    setFishing_spot(relatedFishing_spot3);
                }
            
                const relatedFishing_spot4 = await FishingSpots.findOne({
                    offset: Math.floor(Math.random() * (await FishingSpots.count())),
                });
                const FishingCatche4 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FishingCatche4?.setFishing_spot)
                {
                    await
                    FishingCatche4.
                    setFishing_spot(relatedFishing_spot4);
                }
            
        }
        
    
        
            
            async function associateFishingCatcheWithFish_specy() {
            
                const relatedFish_specy0 = await FishSpecies.findOne({
                    offset: Math.floor(Math.random() * (await FishSpecies.count())),
                });
                const FishingCatche0 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FishingCatche0?.setFish_specy)
                {
                    await
                    FishingCatche0.
                    setFish_specy(relatedFish_specy0);
                }
            
                const relatedFish_specy1 = await FishSpecies.findOne({
                    offset: Math.floor(Math.random() * (await FishSpecies.count())),
                });
                const FishingCatche1 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FishingCatche1?.setFish_specy)
                {
                    await
                    FishingCatche1.
                    setFish_specy(relatedFish_specy1);
                }
            
                const relatedFish_specy2 = await FishSpecies.findOne({
                    offset: Math.floor(Math.random() * (await FishSpecies.count())),
                });
                const FishingCatche2 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FishingCatche2?.setFish_specy)
                {
                    await
                    FishingCatche2.
                    setFish_specy(relatedFish_specy2);
                }
            
                const relatedFish_specy3 = await FishSpecies.findOne({
                    offset: Math.floor(Math.random() * (await FishSpecies.count())),
                });
                const FishingCatche3 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FishingCatche3?.setFish_specy)
                {
                    await
                    FishingCatche3.
                    setFish_specy(relatedFish_specy3);
                }
            
                const relatedFish_specy4 = await FishSpecies.findOne({
                    offset: Math.floor(Math.random() * (await FishSpecies.count())),
                });
                const FishingCatche4 = await FishingCatches.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FishingCatche4?.setFish_specy)
                {
                    await
                    FishingCatche4.
                    setFish_specy(relatedFish_specy4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
    
        
            
            async function associateCraftingRecipeWithOutput_item() {
            
                const relatedOutput_item0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const CraftingRecipe0 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CraftingRecipe0?.setOutput_item)
                {
                    await
                    CraftingRecipe0.
                    setOutput_item(relatedOutput_item0);
                }
            
                const relatedOutput_item1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const CraftingRecipe1 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CraftingRecipe1?.setOutput_item)
                {
                    await
                    CraftingRecipe1.
                    setOutput_item(relatedOutput_item1);
                }
            
                const relatedOutput_item2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const CraftingRecipe2 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CraftingRecipe2?.setOutput_item)
                {
                    await
                    CraftingRecipe2.
                    setOutput_item(relatedOutput_item2);
                }
            
                const relatedOutput_item3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const CraftingRecipe3 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CraftingRecipe3?.setOutput_item)
                {
                    await
                    CraftingRecipe3.
                    setOutput_item(relatedOutput_item3);
                }
            
                const relatedOutput_item4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const CraftingRecipe4 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CraftingRecipe4?.setOutput_item)
                {
                    await
                    CraftingRecipe4.
                    setOutput_item(relatedOutput_item4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateCraftingRecipeWithRequired_station_location() {
            
                const relatedRequired_station_location0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const CraftingRecipe0 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CraftingRecipe0?.setRequired_station_location)
                {
                    await
                    CraftingRecipe0.
                    setRequired_station_location(relatedRequired_station_location0);
                }
            
                const relatedRequired_station_location1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const CraftingRecipe1 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CraftingRecipe1?.setRequired_station_location)
                {
                    await
                    CraftingRecipe1.
                    setRequired_station_location(relatedRequired_station_location1);
                }
            
                const relatedRequired_station_location2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const CraftingRecipe2 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CraftingRecipe2?.setRequired_station_location)
                {
                    await
                    CraftingRecipe2.
                    setRequired_station_location(relatedRequired_station_location2);
                }
            
                const relatedRequired_station_location3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const CraftingRecipe3 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CraftingRecipe3?.setRequired_station_location)
                {
                    await
                    CraftingRecipe3.
                    setRequired_station_location(relatedRequired_station_location3);
                }
            
                const relatedRequired_station_location4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const CraftingRecipe4 = await CraftingRecipes.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CraftingRecipe4?.setRequired_station_location)
                {
                    await
                    CraftingRecipe4.
                    setRequired_station_location(relatedRequired_station_location4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associateRecipeIngredientWithRecipe() {
            
                const relatedRecipe0 = await CraftingRecipes.findOne({
                    offset: Math.floor(Math.random() * (await CraftingRecipes.count())),
                });
                const RecipeIngredient0 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecipeIngredient0?.setRecipe)
                {
                    await
                    RecipeIngredient0.
                    setRecipe(relatedRecipe0);
                }
            
                const relatedRecipe1 = await CraftingRecipes.findOne({
                    offset: Math.floor(Math.random() * (await CraftingRecipes.count())),
                });
                const RecipeIngredient1 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecipeIngredient1?.setRecipe)
                {
                    await
                    RecipeIngredient1.
                    setRecipe(relatedRecipe1);
                }
            
                const relatedRecipe2 = await CraftingRecipes.findOne({
                    offset: Math.floor(Math.random() * (await CraftingRecipes.count())),
                });
                const RecipeIngredient2 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecipeIngredient2?.setRecipe)
                {
                    await
                    RecipeIngredient2.
                    setRecipe(relatedRecipe2);
                }
            
                const relatedRecipe3 = await CraftingRecipes.findOne({
                    offset: Math.floor(Math.random() * (await CraftingRecipes.count())),
                });
                const RecipeIngredient3 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecipeIngredient3?.setRecipe)
                {
                    await
                    RecipeIngredient3.
                    setRecipe(relatedRecipe3);
                }
            
                const relatedRecipe4 = await CraftingRecipes.findOne({
                    offset: Math.floor(Math.random() * (await CraftingRecipes.count())),
                });
                const RecipeIngredient4 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RecipeIngredient4?.setRecipe)
                {
                    await
                    RecipeIngredient4.
                    setRecipe(relatedRecipe4);
                }
            
        }
        
    
        
            
            async function associateRecipeIngredientWithItem() {
            
                const relatedItem0 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const RecipeIngredient0 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RecipeIngredient0?.setItem)
                {
                    await
                    RecipeIngredient0.
                    setItem(relatedItem0);
                }
            
                const relatedItem1 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const RecipeIngredient1 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RecipeIngredient1?.setItem)
                {
                    await
                    RecipeIngredient1.
                    setItem(relatedItem1);
                }
            
                const relatedItem2 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const RecipeIngredient2 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RecipeIngredient2?.setItem)
                {
                    await
                    RecipeIngredient2.
                    setItem(relatedItem2);
                }
            
                const relatedItem3 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const RecipeIngredient3 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RecipeIngredient3?.setItem)
                {
                    await
                    RecipeIngredient3.
                    setItem(relatedItem3);
                }
            
                const relatedItem4 = await Items.findOne({
                    offset: Math.floor(Math.random() * (await Items.count())),
                });
                const RecipeIngredient4 = await RecipeIngredients.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RecipeIngredient4?.setItem)
                {
                    await
                    RecipeIngredient4.
                    setItem(relatedItem4);
                }
            
        }
        
    
        
    

    
    
    
        
    
        
            
            async function associateBuildingWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Building0 = await Buildings.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Building0?.setLocation)
                {
                    await
                    Building0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Building1 = await Buildings.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Building1?.setLocation)
                {
                    await
                    Building1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Building2 = await Buildings.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Building2?.setLocation)
                {
                    await
                    Building2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Building3 = await Buildings.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Building3?.setLocation)
                {
                    await
                    Building3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Building4 = await Buildings.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Building4?.setLocation)
                {
                    await
                    Building4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateConstructionProjectWithBuilding() {
            
                const relatedBuilding0 = await Buildings.findOne({
                    offset: Math.floor(Math.random() * (await Buildings.count())),
                });
                const ConstructionProject0 = await ConstructionProjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (ConstructionProject0?.setBuilding)
                {
                    await
                    ConstructionProject0.
                    setBuilding(relatedBuilding0);
                }
            
                const relatedBuilding1 = await Buildings.findOne({
                    offset: Math.floor(Math.random() * (await Buildings.count())),
                });
                const ConstructionProject1 = await ConstructionProjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (ConstructionProject1?.setBuilding)
                {
                    await
                    ConstructionProject1.
                    setBuilding(relatedBuilding1);
                }
            
                const relatedBuilding2 = await Buildings.findOne({
                    offset: Math.floor(Math.random() * (await Buildings.count())),
                });
                const ConstructionProject2 = await ConstructionProjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (ConstructionProject2?.setBuilding)
                {
                    await
                    ConstructionProject2.
                    setBuilding(relatedBuilding2);
                }
            
                const relatedBuilding3 = await Buildings.findOne({
                    offset: Math.floor(Math.random() * (await Buildings.count())),
                });
                const ConstructionProject3 = await ConstructionProjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (ConstructionProject3?.setBuilding)
                {
                    await
                    ConstructionProject3.
                    setBuilding(relatedBuilding3);
                }
            
                const relatedBuilding4 = await Buildings.findOne({
                    offset: Math.floor(Math.random() * (await Buildings.count())),
                });
                const ConstructionProject4 = await ConstructionProjects.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (ConstructionProject4?.setBuilding)
                {
                    await
                    ConstructionProject4.
                    setBuilding(relatedBuilding4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
    
        
            
            async function associateFestivalWithLocation() {
            
                const relatedLocation0 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Festival0 = await Festivals.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Festival0?.setLocation)
                {
                    await
                    Festival0.
                    setLocation(relatedLocation0);
                }
            
                const relatedLocation1 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Festival1 = await Festivals.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Festival1?.setLocation)
                {
                    await
                    Festival1.
                    setLocation(relatedLocation1);
                }
            
                const relatedLocation2 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Festival2 = await Festivals.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Festival2?.setLocation)
                {
                    await
                    Festival2.
                    setLocation(relatedLocation2);
                }
            
                const relatedLocation3 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Festival3 = await Festivals.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Festival3?.setLocation)
                {
                    await
                    Festival3.
                    setLocation(relatedLocation3);
                }
            
                const relatedLocation4 = await Locations.findOne({
                    offset: Math.floor(Math.random() * (await Locations.count())),
                });
                const Festival4 = await Festivals.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Festival4?.setLocation)
                {
                    await
                    Festival4.
                    setLocation(relatedLocation4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFestivalAttendanceWithFestival() {
            
                const relatedFestival0 = await Festivals.findOne({
                    offset: Math.floor(Math.random() * (await Festivals.count())),
                });
                const FestivalAttendance0 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FestivalAttendance0?.setFestival)
                {
                    await
                    FestivalAttendance0.
                    setFestival(relatedFestival0);
                }
            
                const relatedFestival1 = await Festivals.findOne({
                    offset: Math.floor(Math.random() * (await Festivals.count())),
                });
                const FestivalAttendance1 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FestivalAttendance1?.setFestival)
                {
                    await
                    FestivalAttendance1.
                    setFestival(relatedFestival1);
                }
            
                const relatedFestival2 = await Festivals.findOne({
                    offset: Math.floor(Math.random() * (await Festivals.count())),
                });
                const FestivalAttendance2 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FestivalAttendance2?.setFestival)
                {
                    await
                    FestivalAttendance2.
                    setFestival(relatedFestival2);
                }
            
                const relatedFestival3 = await Festivals.findOne({
                    offset: Math.floor(Math.random() * (await Festivals.count())),
                });
                const FestivalAttendance3 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FestivalAttendance3?.setFestival)
                {
                    await
                    FestivalAttendance3.
                    setFestival(relatedFestival3);
                }
            
                const relatedFestival4 = await Festivals.findOne({
                    offset: Math.floor(Math.random() * (await Festivals.count())),
                });
                const FestivalAttendance4 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FestivalAttendance4?.setFestival)
                {
                    await
                    FestivalAttendance4.
                    setFestival(relatedFestival4);
                }
            
        }
        
    
        
            
            async function associateFestivalAttendanceWithNpc() {
            
                const relatedNpc0 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FestivalAttendance0 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FestivalAttendance0?.setNpc)
                {
                    await
                    FestivalAttendance0.
                    setNpc(relatedNpc0);
                }
            
                const relatedNpc1 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FestivalAttendance1 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FestivalAttendance1?.setNpc)
                {
                    await
                    FestivalAttendance1.
                    setNpc(relatedNpc1);
                }
            
                const relatedNpc2 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FestivalAttendance2 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FestivalAttendance2?.setNpc)
                {
                    await
                    FestivalAttendance2.
                    setNpc(relatedNpc2);
                }
            
                const relatedNpc3 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FestivalAttendance3 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FestivalAttendance3?.setNpc)
                {
                    await
                    FestivalAttendance3.
                    setNpc(relatedNpc3);
                }
            
                const relatedNpc4 = await Npcs.findOne({
                    offset: Math.floor(Math.random() * (await Npcs.count())),
                });
                const FestivalAttendance4 = await FestivalAttendance.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FestivalAttendance4?.setNpc)
                {
                    await
                    FestivalAttendance4.
                    setNpc(relatedNpc4);
                }
            
        }
        
    
        
    
        
    

    
    
    
        
    
        
    
        
    
        
            
            async function associateRandomEventWithRegion() {
            
                const relatedRegion0 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const RandomEvent0 = await RandomEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (RandomEvent0?.setRegion)
                {
                    await
                    RandomEvent0.
                    setRegion(relatedRegion0);
                }
            
                const relatedRegion1 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const RandomEvent1 = await RandomEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (RandomEvent1?.setRegion)
                {
                    await
                    RandomEvent1.
                    setRegion(relatedRegion1);
                }
            
                const relatedRegion2 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const RandomEvent2 = await RandomEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (RandomEvent2?.setRegion)
                {
                    await
                    RandomEvent2.
                    setRegion(relatedRegion2);
                }
            
                const relatedRegion3 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const RandomEvent3 = await RandomEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (RandomEvent3?.setRegion)
                {
                    await
                    RandomEvent3.
                    setRegion(relatedRegion3);
                }
            
                const relatedRegion4 = await WorldRegions.findOne({
                    offset: Math.floor(Math.random() * (await WorldRegions.count())),
                });
                const RandomEvent4 = await RandomEvents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (RandomEvent4?.setRegion)
                {
                    await
                    RandomEvent4.
                    setRegion(relatedRegion4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await WorldRegions.bulkCreate(WorldRegionsData);
                
            
            
                
                await Locations.bulkCreate(LocationsData);
                
            
            
                
                await PlayerProfiles.bulkCreate(PlayerProfilesData);
                
            
            
                
                await CustomizationItems.bulkCreate(CustomizationItemsData);
                
            
            
                
                await Tools.bulkCreate(ToolsData);
                
            
            
                
                await ItemCategories.bulkCreate(ItemCategoriesData);
                
            
            
                
                await Items.bulkCreate(ItemsData);
                
            
            
                
                await Npcs.bulkCreate(NpcsData);
                
            
            
                
                await Families.bulkCreate(FamiliesData);
                
            
            
                
                await FamilyMemberships.bulkCreate(FamilyMembershipsData);
                
            
            
                
                await NpcRelationships.bulkCreate(NpcRelationshipsData);
                
            
            
                
                await DialogueTopics.bulkCreate(DialogueTopicsData);
                
            
            
                
                await DialogueLines.bulkCreate(DialogueLinesData);
                
            
            
                
                await Quests.bulkCreate(QuestsData);
                
            
            
                
                await QuestObjectives.bulkCreate(QuestObjectivesData);
                
            
            
                
                await MarketStores.bulkCreate(MarketStoresData);
                
            
            
                
                await Employees.bulkCreate(EmployeesData);
                
            
            
                
                await Suppliers.bulkCreate(SuppliersData);
                
            
            
                
                await StoreProducts.bulkCreate(StoreProductsData);
                
            
            
                
                await StoreInventoryBatches.bulkCreate(StoreInventoryBatchesData);
                
            
            
                
                await PurchaseOrders.bulkCreate(PurchaseOrdersData);
                
            
            
                
                await PurchaseOrderLines.bulkCreate(PurchaseOrderLinesData);
                
            
            
                
                await Deliveries.bulkCreate(DeliveriesData);
                
            
            
                
                await Shelves.bulkCreate(ShelvesData);
                
            
            
                
                await ShelfSlots.bulkCreate(ShelfSlotsData);
                
            
            
                
                await CashRegisters.bulkCreate(CashRegistersData);
                
            
            
                
                await SalesTransactions.bulkCreate(SalesTransactionsData);
                
            
            
                
                await SalesTransactionLines.bulkCreate(SalesTransactionLinesData);
                
            
            
                
                await DailyReports.bulkCreate(DailyReportsData);
                
            
            
                
                await WeatherStates.bulkCreate(WeatherStatesData);
                
            
            
                
                await WorldCalendarDays.bulkCreate(WorldCalendarDaysData);
                
            
            
                
                await PriceModifiers.bulkCreate(PriceModifiersData);
                
            
            
                
                await Crops.bulkCreate(CropsData);
                
            
            
                
                await FarmPlots.bulkCreate(FarmPlotsData);
                
            
            
                
                await Plantings.bulkCreate(PlantingsData);
                
            
            
                
                await FishSpecies.bulkCreate(FishSpeciesData);
                
            
            
                
                await FishingSpots.bulkCreate(FishingSpotsData);
                
            
            
                
                await FishingCatches.bulkCreate(FishingCatchesData);
                
            
            
                
                await CraftingRecipes.bulkCreate(CraftingRecipesData);
                
            
            
                
                await RecipeIngredients.bulkCreate(RecipeIngredientsData);
                
            
            
                
                await Buildings.bulkCreate(BuildingsData);
                
            
            
                
                await ConstructionProjects.bulkCreate(ConstructionProjectsData);
                
            
            
                
                await Festivals.bulkCreate(FestivalsData);
                
            
            
                
                await FestivalAttendance.bulkCreate(FestivalAttendanceData);
                
            
            
                
                await RandomEvents.bulkCreate(RandomEventsData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateLocationWithRegion(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePlayerProfileWithUser(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associatePlayerProfileWithHome_location(),
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateItemWithCategory(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateNpcWithHome_location(),
                    
                
                    
                        
                        await associateNpcWithWork_location(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateFamilyWithHome_location(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFamilyMembershipWithFamily(),
                    
                
                    
                        
                        await associateFamilyMembershipWithNpc(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateNpcRelationshipWithPlayer_profile(),
                    
                
                    
                        
                        await associateNpcRelationshipWithNpc(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDialogueLineWithTopic(),
                    
                
                    
                        
                        await associateDialogueLineWithNpc(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateQuestWithGiver_npc(),
                    
                
                    
                        
                        await associateQuestWithStart_location(),
                    
                
                    
                        
                        await associateQuestWithEnd_location(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateQuestObjectiveWithQuest(),
                    
                
                    
                
                    
                        
                        await associateQuestObjectiveWithTarget_item(),
                    
                
                    
                        
                        await associateQuestObjectiveWithTarget_npc(),
                    
                
                    
                        
                        await associateQuestObjectiveWithTarget_location(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateMarketStoreWithLocation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEmployeeWithStore(),
                    
                
                    
                        
                        await associateEmployeeWithNpc(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateSupplierWithLocation(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStoreProductWithStore(),
                    
                
                    
                        
                        await associateStoreProductWithItem(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateStoreInventoryBatcheWithStore_product(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePurchaseOrderWithStore(),
                    
                
                    
                        
                        await associatePurchaseOrderWithSupplier(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePurchaseOrderLineWithPurchase_order(),
                    
                
                    
                        
                        await associatePurchaseOrderLineWithItem(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDeliveryWithPurchase_order(),
                    
                
                    
                        
                        await associateDeliveryWithStore(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDeliveryWithReceived_by_employee(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateShelveWithStore(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateShelveWithLocation(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateShelfSlotWithShelf(),
                    
                
                    
                        
                        await associateShelfSlotWithStore_product(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCashRegisterWithStore(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSalesTransactionWithStore(),
                    
                
                    
                        
                        await associateSalesTransactionWithRegister(),
                    
                
                    
                        
                        await associateSalesTransactionWithCashier_employee(),
                    
                
                    
                        
                        await associateSalesTransactionWithCustomer_npc(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateSalesTransactionLineWithSales_transaction(),
                    
                
                    
                        
                        await associateSalesTransactionLineWithStore_product(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDailyReportWithStore(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateWorldCalendarDayWithWeather_state(),
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePriceModifierWithItem(),
                    
                
                    
                        
                        await associatePriceModifierWithCalendar_day(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateCropWithSeed_item(),
                    
                
                    
                        
                        await associateCropWithHarvest_item(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFarmPlotWithOwner_profile(),
                    
                
                    
                        
                        await associateFarmPlotWithLocation(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associatePlantingWithFarm_plot(),
                    
                
                    
                        
                        await associatePlantingWithCrop(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateFishSpecyWithItem(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateFishingSpotWithLocation(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFishingCatcheWithPlayer_profile(),
                    
                
                    
                        
                        await associateFishingCatcheWithFishing_spot(),
                    
                
                    
                        
                        await associateFishingCatcheWithFish_specy(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                        
                        await associateCraftingRecipeWithOutput_item(),
                    
                
                    
                
                    
                
                    
                        
                        await associateCraftingRecipeWithRequired_station_location(),
                    
                
                    
                
            
                
                
                    
                        
                        await associateRecipeIngredientWithRecipe(),
                    
                
                    
                        
                        await associateRecipeIngredientWithItem(),
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateBuildingWithLocation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateConstructionProjectWithBuilding(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                        
                        await associateFestivalWithLocation(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFestivalAttendanceWithFestival(),
                    
                
                    
                        
                        await associateFestivalAttendanceWithNpc(),
                    
                
                    
                
                    
                
            
                
                
                    
                
                    
                
                    
                
                    
                        
                        await associateRandomEventWithRegion(),
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('world_regions', null, {});
            
            
            await queryInterface.bulkDelete('locations', null, {});
            
            
            await queryInterface.bulkDelete('player_profiles', null, {});
            
            
            await queryInterface.bulkDelete('customization_items', null, {});
            
            
            await queryInterface.bulkDelete('tools', null, {});
            
            
            await queryInterface.bulkDelete('item_categories', null, {});
            
            
            await queryInterface.bulkDelete('items', null, {});
            
            
            await queryInterface.bulkDelete('npcs', null, {});
            
            
            await queryInterface.bulkDelete('families', null, {});
            
            
            await queryInterface.bulkDelete('family_memberships', null, {});
            
            
            await queryInterface.bulkDelete('npc_relationships', null, {});
            
            
            await queryInterface.bulkDelete('dialogue_topics', null, {});
            
            
            await queryInterface.bulkDelete('dialogue_lines', null, {});
            
            
            await queryInterface.bulkDelete('quests', null, {});
            
            
            await queryInterface.bulkDelete('quest_objectives', null, {});
            
            
            await queryInterface.bulkDelete('market_stores', null, {});
            
            
            await queryInterface.bulkDelete('employees', null, {});
            
            
            await queryInterface.bulkDelete('suppliers', null, {});
            
            
            await queryInterface.bulkDelete('store_products', null, {});
            
            
            await queryInterface.bulkDelete('store_inventory_batches', null, {});
            
            
            await queryInterface.bulkDelete('purchase_orders', null, {});
            
            
            await queryInterface.bulkDelete('purchase_order_lines', null, {});
            
            
            await queryInterface.bulkDelete('deliveries', null, {});
            
            
            await queryInterface.bulkDelete('shelves', null, {});
            
            
            await queryInterface.bulkDelete('shelf_slots', null, {});
            
            
            await queryInterface.bulkDelete('cash_registers', null, {});
            
            
            await queryInterface.bulkDelete('sales_transactions', null, {});
            
            
            await queryInterface.bulkDelete('sales_transaction_lines', null, {});
            
            
            await queryInterface.bulkDelete('daily_reports', null, {});
            
            
            await queryInterface.bulkDelete('weather_states', null, {});
            
            
            await queryInterface.bulkDelete('world_calendar_days', null, {});
            
            
            await queryInterface.bulkDelete('price_modifiers', null, {});
            
            
            await queryInterface.bulkDelete('crops', null, {});
            
            
            await queryInterface.bulkDelete('farm_plots', null, {});
            
            
            await queryInterface.bulkDelete('plantings', null, {});
            
            
            await queryInterface.bulkDelete('fish_species', null, {});
            
            
            await queryInterface.bulkDelete('fishing_spots', null, {});
            
            
            await queryInterface.bulkDelete('fishing_catches', null, {});
            
            
            await queryInterface.bulkDelete('crafting_recipes', null, {});
            
            
            await queryInterface.bulkDelete('recipe_ingredients', null, {});
            
            
            await queryInterface.bulkDelete('buildings', null, {});
            
            
            await queryInterface.bulkDelete('construction_projects', null, {});
            
            
            await queryInterface.bulkDelete('festivals', null, {});
            
            
            await queryInterface.bulkDelete('festival_attendance', null, {});
            
            
            await queryInterface.bulkDelete('random_events', null, {});
            
        
    },
};