from atheneum import db class User(db.Model): __tablename__ = 'user' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.Unicode(60), unique=True, nullable=False) password_hash = db.Column('password_hash', db.Unicode(128), nullable=False) password_dblt = db.Column('password_dblt', db.Unicode(32)) password_revision = db.Column( 'password_revision', db.SmallInteger, default=0, nullable=False) creation_time = db.Column('creation_time', db.DateTime, nullable=False) last_login_time = db.Column('last_login_time', db.DateTime) version = db.Column('version', db.Integer, default=1, nullable=False)