sample state - Requiem-of-Zero/Slapify_project GitHub Wiki

{
  entities: {
    users: {
      1: {
        id: 1,
        username: "Hero",
        email: "[email protected]"
      },
      2: {
        id: 2,
        username: "Villian",
        email: '[email protected]'
      }
    },
    likes: {
      1: {
        id: 1,
        likeableId: 1,
        likeableType: 'song',
        userId: 1
      }
      2: {
        id: 2,
        likeableId: 2,
        likeableType: 'song',
        userId: 2
      }
    },
    songs: {
      1: {
        id: 1,
        albumId: 1,
        songName: "The Victim",
        duration: '3:00'//?
      },
      2: {
        id: 2,
        albumId: 2,
        songName: "Pain",
        duration: '3:00' //?
      }
    },
    playlistSongs: {
      1: {
        id: 1,
        playlistId: 1,
        songId: 2
      },
      2: {
        id: 2,
        playlistId: 2,
        songId: 1
      }
    },
    albums: {
      1: {
        id: 1,
        albumName: "Declaration",
        year: 2020,
        artistId: 1
      },
      2: {
        id: 2,
        albumName: "One-X",
        year: 2006,
        artistId: 2
      }
    },
    playlists: {
      1: {
        id: 1,
        title: "Slaps",
        userId: 1
      },
      2: {
        id: 2,
        title: "Hero's friend's playlist",
        userId: 2
      }
    },
    artists: {
      1: {
        id: 1,
        name: 'Red'
      },
      2: {
        id: 2,
        name: 'Three Days Grace'
      }
    },
    artistMusic: {
      1: {
        id: 1,
        musicId: 1,
        musicType: 'albums',
        artistId: 1
      },
      2: {
        id: 2,
        musicId: 2,
        musicType: 'albums',
        artistId: 2
      }
    },
  },
  errors: {
    login: ["Invalid credentials"],
    playlistForm: ["Title cannot be blank"]
  },
  ui: {
    playing: true/false,
    modal: true/false
  },
  session: { currentUserId: 1 }
}