Skip to content
Doboy edited this page Aug 16, 2012 · 12 revisions

For a database we are going to use both a nosql database (redis.io) and a sql database (postgres).

Models

class User(model):
    number = IntgerField()  # PrimaryKey
    name = CharField()
    alive = BooleanField()
    target = ForiegnKey(User)
    game = ForiegnKey(Game)

class Game(model):
    name = CharField()      # PrimaryKey

Key-Values

SHUFFLED_USERS:%game_name% => [list of user_numbers]

Clone this wiki locally