-
Notifications
You must be signed in to change notification settings - Fork 0
Redux State
Manni Melgoza edited this page Jul 11, 2025
·
5 revisions
{
users: {
1: {
id: 1,
first_name: "Demo",
last_name: "User",
username: "demo_user",
email: "demo@aa.io",
created_at: "2025-07-01T12:00:00Z",
updated_at: "2025-07-01T12:00:00Z"
},
2: {
id: 2,
firstName: "Jane",
lastName: "Doe",
username: "janedoe",
email: "jane@aa.io",
createdAt: "2025-07-02T15:00:00Z",
updatedAt: "2025-07-02T15:00:00Z"
}
},
posts: {
1: {
id: 1,
ownerId: 1,
postTitle: "First Post",
postBody: "Hello world!",
createdAt: "2025-07-03T10:00:00Z",
updatedAt: "2025-07-03T10:00:00Z",
imageIds: [1],
commentIds: [1],
likeIds: [1]
}
},
postImages: {
1: {
id: 1,
postId: 1,
url: "https://example.com/image1.jpg",
createdAt: "2025-07-03T10:05:00Z",
updatedAt: "2025-07-03T10:05:00Z"
}
},
comments: {
1: {
id: 1,
userId: 2,
postId: 1,
commentBody: "Nice post!",
createdAt: "2025-07-03T11:00:00Z",
updatedAt: "2025-07-03T11:00:00Z"
}
},
likes: {
1: {
id: 1,
userId: 2,
postId: 1,
liked: true,
createdAt: "2025-07-03T11:05:00Z",
updatedAt: "2025-07-03T11:05:00Z"
}
},
follows: {
1: {
id: 1,
follower_id: 2,
followed_id: 1,
createdAt: "2025-07-02T09:00:00Z",
updatedAt: "2025-07-02T09:00:00Z"
}
},
session: {
user: {
id: 1,
username: "demo_user"
}
}
}