manniru
10/18/2018 - 7:48 AM

erp_data.json

{
    "users": [
        {"id": 1, "name": "User One", "phone": "08000000001", "email": "one@mannir.net", "password": "11111"},
        {"id": 2, "name": "User Two", "phone": "08000000002", "email": "two@mannir.net", "password": "22222"}
    ],
    "categories": [
        {}
    ],
    "items": [
        { "itemId": 1, "name": "Item 1", "price": "1000", "qty": 10, "categoryId": 1, "image": "https:/mannir.net/p1.jpg", "description": "description", "status": true, "createdAt": 1, "updatedAt": 2 },
        { "itemId": 2, "name": "Item 2", "price": "2000", "qty": 20, "categoryId": 2, "image": "https:/mannir.net/p2.jpg", "description": "description", "status": true, "createdAt": 1, "updatedAt": 2 }
    ],
    "orders": [
        {
            "orderId": 1,   
            "userId": 1,
            "items":[
                {"itemId": 1, "name": "Item 1", "price": 1000, "qty": 2, "total": 2000},
                {"itemId": 1, "name": "Item 2", "price": 2000, "qty": 3, "total": 6000},
                {"itemId": 1, "name": "Item 3", "price": 2000, "qty": 5, "total": 10000}
            ],
            "total": 18000,
            "status": "Pending",
            "createAt": 123456789012345,
            "updateAt": 123456789012345
    }
    ],
    "payments": [
        {"paymentId": 1, "userId": 1, "orderId": 1, "amount": 12500, "status": "Completed", "createdAt": "2017-11-22 13:10:28.392", "updatedAt": "2017-11-22 13:10:28.392", "description": "Descriptions"}
    ]
}