14 """This class keeps track of student information, purchased items,
19 'userid': (
'INTEGER',
'PRIMARY KEY NOT NULL',),
21 'profile': (
'TEXT',
"NOT NULL DEFAULT ''",),
23 'grade': (
'TEXT',
"NOT NULL DEFAULT ''", ),
24 'coins': (
'INT',
'NOT NULL DEFAULT 0',),
25 'items': (
'DICT',
"NOT NULL DEFAULT ''",),
26 'allowedcards': (
'NEWLINELIST',
"NOT NULL DEFAULT ''",),
27 'flags': (
'INT',
'NOT NULL DEFAULT 0',),
35 _dbdisplay = [
'displayname']
This class keeps track of student information, purchased items, and allowed cards.
def __init__(self)
Initialize all fields at creation like a good programmer should.
Base class for all database models.
Throws an exception on blank values.