Complete the code to import SQLAlchemy from flask_sqlalchemy.
from flask_sqlalchemy import [1]
The SQLAlchemy class is imported from flask_sqlalchemy to create the database object.
Complete the code to define a model class named User inheriting from the base model.
class User([1]):
In Flask-SQLAlchemy, models inherit from db.Model to gain database features.
Fix the error in the model field definition to create an integer primary key named id.
id = db.Column([1], primary_key=True)
The id field should be a db.Integer type to serve as a primary key.
Fill both blanks to define a username column that is a string of max length 80 and must be unique.
username = db.Column([1](80), [2]=True)
The username column uses db.String(80) for length and unique=True to ensure no duplicates.
Fill all three blanks to define an email column that is a string of max length 120, unique, and cannot be null.
email = db.Column([1](120), [2]=True, [3]=False)
The email column uses db.String(120) for length, unique=True to avoid duplicates, and nullable=False to require a value.