Download auth/models.py from deedrop1140/machinelearningalgorithms: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/spaces/deedrop1140/machinelearningalgorithms/resolve/main/auth/models.py
- Command line
-
hf download hf://spaces/deedrop1140/machinelearningalgorithms/auth/models.py
-
curl -L -o models.py https://huggingface.co/spaces/deedrop1140/machinelearningalgorithms/resolve/main/auth/models.py
472 Bytes
| from flask_sqlalchemy import SQLAlchemy | |
| from flask_login import UserMixin | |
| from datetime import datetime | |
| db = SQLAlchemy() | |
| class User(UserMixin, db.Model): | |
| id = db.Column(db.Integer, primary_key=True) | |
| email = db.Column(db.String(150), unique=True, nullable=False) | |
| password = db.Column(db.String(200), nullable=False) | |
| is_verified = db.Column(db.Boolean, default=False) | |
| otp = db.Column(db.String(6)) | |
| otp_expiry = db.Column(db.DateTime) | |