diff --git a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/README.md b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/README.md index 1608fdc3..2146c7ef 100644 --- a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/README.md +++ b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/README.md @@ -21,7 +21,7 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) ``` Let's also add this class to `models/__init__.py` so it can then be imported by `app.py`: diff --git a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/models/user.py b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/models/user.py +++ b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/models/user.py b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/models/user.py +++ b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/models/user.py b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/models/user.py +++ b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/models/user.py b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/models/user.py +++ b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/models/user.py b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/models/user.py +++ b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/models/user.py b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/models/user.py +++ b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/models/user.py b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/models/user.py +++ b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/models/user.py b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/models/user.py +++ b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/models/user.py b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/models/user.py +++ b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/models/user.py b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/models/user.py +++ b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/models/user.py b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/models/user.py +++ b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/models/user.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/models/user.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/models/user.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/models/user.py index 554e6775..029ca833 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/models/user.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/models/user.py @@ -6,4 +6,4 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) diff --git a/project/using-flask-restful/models/user.py b/project/using-flask-restful/models/user.py index 585afce9..f0af1ea6 100644 --- a/project/using-flask-restful/models/user.py +++ b/project/using-flask-restful/models/user.py @@ -6,7 +6,7 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) def json(self): return { diff --git a/project/using-flask-restx/models/user.py b/project/using-flask-restx/models/user.py index 585afce9..f0af1ea6 100644 --- a/project/using-flask-restx/models/user.py +++ b/project/using-flask-restx/models/user.py @@ -6,7 +6,7 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) def json(self): return { diff --git a/project/using-flask-smorest/models/user.py b/project/using-flask-smorest/models/user.py index 585afce9..f0af1ea6 100644 --- a/project/using-flask-smorest/models/user.py +++ b/project/using-flask-smorest/models/user.py @@ -6,7 +6,7 @@ class UserModel(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) - password = db.Column(db.String(80), unique=True, nullable=False) + password = db.Column(db.String(80), nullable=False) def json(self): return {