Skip to content

Sample State Shape

passsionforprogramming edited this page Dec 12, 2019 · 1 revision

entities: {

        tickets: {
            1: {
                id: 1,
                ticket_code: "fhdjhdf18sjdjda0",
                name: "General Admission",
                owner_id: 5,
                event_id: 81,
                type: "paid",
                price: 25.00,
                description: "This is a premier event",
                batch_id: 7,
            }
        },
        current_user: {
            1: {
                id: 1,
                email: "[email protected]",
                first_name: "Kevin",
                last_name: "Shannon",
                home_phone: "317-801-1331",
                cell_phone: "801-1120",
                job_title: "electrician",
                website: "http://www.greatness.com",
                blog: "bestbids.com"
            }
        },
        events: {
            1: {
                id: 1,
                user_id: 7,
                category: "Food and Wine",
                organizer: "Shelby Nickels",
                start_time: "DateTime Object",
                end_time: "DateTime Object",
                display_start_time: false,
                display_end_time: true,
                description: "Shakespeare in the park",
                sold: 51,
                gross: 1800.00,
                lat: 31.03,
                lon: 81.93,
            }
        },
        Tags: {
            1: {
                id: 1,
                name: "Outdoors",
                event_id: 7,
            }
        },
        Collections: {
            1: {
                id: 1,
                name: "My collection",
                favorites: {
                    1: {
                        id: 1,
                        name: "Top Chef Cruise",
                        event_id: 3
                    }
                }
            }
        },
        Favorited_Events: {
            3: {
                id: 3,
                name: "New Year's",
                event_id: 2
            }
        }
    }
Clone this wiki locally