Put in order · Python course · Module 5: Flask and Web Apps
User Model
Arrange the definition of a User model with Flask-Login:
Items to put in order
- password_hash = db.Column(db.String(128))
- class User(db.Model, UserMixin):
- id = db.Column(db.Integer, primary_key=True)
- username = db.Column(db.String(80), unique=True)
You can check the correct answer by solving this task in the CodeWorlds game.