
// Gwap/data.js - Mock Database for GadgetGo

const MOCK_DB = {
    users: [
        {
            id: 'u1',
            username: 'John Doe',
            avatar: 'https://i.pravatar.cc/150?img=11',
            rating: 4.9,
            verified: true,
            joined: 'Oct 2024',
            balance: 150000,
            reviews: [
                { id: 1, user: 'SarahSmith', text: 'Great seller, item exactly as described!', date: '2d ago' }
            ],
            transactions: [
                { id: 't1', type: 'deposit', amount: 50000, date: '2024-10-25', status: 'success' },
                { id: 't2', type: 'purchase', amount: -20000, date: '2024-10-26', status: 'success' }
            ]
        },
        {
            id: 'u2',
            username: 'Sarah Smith',
            avatar: 'https://i.pravatar.cc/150?img=5',
            rating: 4.7,
            verified: true,
            joined: 'Sep 2024',
            balance: 45000,
            reviews: [],
            transactions: []
        }
    ],
    listings: [
        // SELL LISTINGS
        {
            id: 101,
            type: 'sell',
            title: "iPhone 13 Pro",
            price: 450000,
            currency: "NGN",
            category: "Smartphones",
            condition: "Used",
            brand: "Apple",
            model: "iPhone 13 Pro",
            storage: "128GB",
            color: "Graphite",
            swap: false,
            description: "128GB • Graphite • Battery 92%. Clean functionality.",
            images: [
                "https://images.unsplash.com/photo-1632661674596-df8be070a5c5?auto=format&fit=crop&q=80&w=500",
                "https://images.unsplash.com/photo-1632661674296-37a54a015ed5?auto=format&fit=crop&q=80&w=500"
            ],
            location: { lat: 9.0765, lng: 7.3986, name: "Wuse 2, Abuja" },
            sellerId: 'u1',
            status: 'active',
            comments: []
        },
        {
            id: 102,
            type: 'sell',
            title: "MacBook Air M1",
            price: 650000,
            currency: "NGN",
            category: "Laptops",
            condition: "Used",
            brand: "Apple",
            model: "MacBook Air",
            storage: "256GB",
            ram: "8GB",
            color: "Space Grey",
            description: "8GB RAM • 256GB SSD • Space Grey. Minor scratch on lid.",
            images: ["https://images.unsplash.com/photo-1611186871348-b1ce696e52c9?auto=format&fit=crop&q=80&w=500"],
            location: { lat: 9.0820, lng: 7.4000, name: "Maitama, Abuja" },
            sellerId: 'u2',
            status: 'active',
            comments: []
        },
        // BUY REQUESTS (Simulated)
        {
            id: 201,
            type: 'buy',
            title: "Need clean PS4 Pro",
            price: 150000,
            currency: "NGN",
            category: "Consoles",
            condition: "Used",
            brand: "Sony",
            description: "Looking for a clean PS4 Pro with 2 controllers. Budget is 150k max.",
            images: ["https://images.unsplash.com/photo-1549488357-12bd444534f3?auto=format&fit=crop&q=80&w=500"], // Generic placeholder
            location: { lat: 9.0650, lng: 7.3900, name: "Garki, Abuja" },
            sellerId: 'u1',
            status: 'active',
            comments: []
        },
        {
            id: 202,
            type: 'buy',
            title: "WTB: GoPro Hero 9",
            price: 250000,
            currency: "NGN",
            category: "Cameras",
            condition: "Used",
            description: "Urgently need a GoPro for a shoot. Must have batteries.",
            images: ["https://images.unsplash.com/photo-1565451252084-569d3f56b539?auto=format&fit=crop&q=80&w=500"],
            location: { lat: 9.0700, lng: 7.4100, name: "Central Area, Abuja" },
            sellerId: 'u2',
            status: 'active',
            comments: []
        }
    ]
};
