diff --git a/luncho/database.py b/luncho/database.py index b25f592..1379bb6 100644 --- a/luncho/database.py +++ b/luncho/database.py @@ -11,6 +11,7 @@ from pony.orm import Required db = Database("sqlite", "tagallery.db", create_db=True) + class User(db.Entity): """Users.""" username = PrimaryKey(unicode) @@ -20,5 +21,6 @@ class User(db.Entity): # 2. This forces the user to have a single # login everywhere, per day. issue_date = Optional(datetime.datetime) + validated = Required(bool, default=False) db.generate_mapping(create_tables=True)