Skip to content
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

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

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

game: {
    id: 'id',
    title: 'title',
    url: 'url',
    description: [
        { date: (timestamp), editedBy: userID, text: 'text' }
    ],
    canonical: (undefined || id),
    tags: [
        'id',
        'id',
        'id'
    ]
}

Clone this wiki locally