#                           -*- Model Example -*-
# 
#   The model is the application dynamic data structure. It is responsible
# for managing the data. Since we are using SQLAlquemy(Object Relational Mapping)
# the data is represented using objects/classes and therefore it will not only contain 
# the data but also manipulate it if you want.
# 
# Model documentation: https://flask-sqlalchemy.palletsprojects.com/en/2.x/models/


from . import db


class UserModel(db.Model):
    __tablename__ = "users"

    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String, nullable=False)
    email = db.Column(db.String, nullable=False, unique=True)
    password = db.Column(db.String, nullable=False)
