State Shape - gradyzhu/smilr GitHub Wiki

{
  entities: {
    users: {
      11: {
        id: 11,
        username: "homieslice",
        email: "[email protected]"
      },
      25: {
        id: 25,
        username: "bartman",
        email: "[email protected]",
     }
    },
    photos: {
      1: {
        id: 1,
        userId: 11,
        albumId: 1,
        title: "back at Moe's",
        description: "the boy barney and I having a grandiose time",
        imageUrl: "www.google.com"
      },
      2: {
        id: 2,
        userId: 11,
        albumId: null,
        title: "mags-lis-bart",
        description: "these silly kids will never grow up",
        imageUrl: "www.google.com"
      },
      3: {
        id: 3,
        userId: 25,
        albumId: null,
        title: "thrill-house",
        description: "no comment needed",
        imageUrl: "www.google.com"
      },
      4: {
        id: 4,
        userId: 25,
        albumId: null,
        title: "me and my little sister!",
        description: "you're a pain in the butt but i still love ya",
        imageUrl: "www.google.com"
      }
    },
    albums: {
      1: {
        id: 1,
        name: "The Family",
        description: "My beautiful family, Santa's Little Helper, and Snowball",
        ownerId: 11, 
      }
    },
    comments: {
      1: {
        id: 1,
        authorId: 11,
        photoId: 1,
        body: "<3"
      },
      2: {
        id: 2,
        authorId: 25,
        photoId: 2,
        body: "aye carumba!"
      },
      3: {
        id: 3,
        authorId: 11,
        photoId: 1,
        body: "wowwww"
      }
    },
    tags: {
      1: {
        id: 1,
        name: "family",
      },
      2: {
        id: 2,
        name: "bff",
      }
    },
    albumPhotos: {
      1: {
      	id: 1,
        photoId: 34,
	albumId: 72,
      },
      2: {
      	id: 2,
        photoId: 21,
	albumId: 15,
      },
    },
    taggings: {
      3: {
        id: 3, 
        photoId: 1,
        tagId: 10
      },
      82: {
        id: 82, 
        photoId: 3,
	tagId: 12
      }
    },
  },
  ui: {
    loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"],
  },
  session: { currentUserId: 11 }
}