user.py 266 B

123456789
  1. import datetime
  2. from apps.extensions import db
  3. class User(db.Model):
  4. ''' user model '''
  5. __talbename__ = 'user'
  6. id = db.Column(db.Integer, primary_key=True, comment='用户ID')
  7. username = db.Column(db.String(32), nullable=False, comment='用户名')