-
Notifications
You must be signed in to change notification settings - Fork 0
Data Structure
Ryan Kinal edited this page Jun 11, 2014
·
3 revisions
Currently describing data structure in a JSON-style, but still pseudo-code style.
Goals include:
- Speed!
- ... more speed.
- Learning
user: {
id: 'id',
games: {
id: {
rating: 5,
difficulty: 'rage inducing',
hoursToComplete: 10,
review: 'it was awesome'
}, {
rating: 5,
difficulty: 'rage inducing',
hoursToComplete: 10,
review: 'it was awesome'
}, {
rating: 5,
difficulty: 'rage inducing',
hoursToComplete: 10,
review: 'it was awesome'
}
},
// anything else needed for authentication - needs research
}
tag: {
id: 'id',
name: 'my tag',
description: 'description',
releaseDate: 'GMT unix timestamp',
canonical: (undefined || id),
addedBy: userID,
approved: (true || false),
approvedBy: [userID, userID, userID, userID, userID]
}
game: {
id: 'id',
title: 'title',
url: 'url',
description: [
{ date: (timestamp), editedBy: userID, text: 'text' }
],
canonical: (undefined || id),
tags: [
'id',
'id',
'id'
]
}