# Path: core/classes/model/base.py



import bcrypt
from sqlalchemy                 import Column
from sqlalchemy                 import Integer
from sqlalchemy                 import String
from core.classes.model.base    import MapifBase
from core.classes.model.session import session
from core.modules               import logger 
    promo = Column(Integer)
    #---------------------------------------------------------------------------
    # as_dict
    #---------------------------------------------------------------------------
    def as_dict(self):
        return {
            'firstname': self.firstname,
            'lastname': self.lastname,
            'email': self.email,
            'promo': self.promo
        }
    #---------------------------------------------------------------------------
    # __repr__
    #---------------------------------------------------------------------------
    def __repr__(self):
        return """<User(id='{0}',
    firstname='{1}',
    lastname='{2}',
    email='{3}',
    promo='{4}'
)>""".format(self.id, self.firstname, self.lastname, self.email, self.promo)
#-------------------------------------------------------------------------------
# UserCRUD
#-------------------------------------------------------------------------------
class UserCRUD:
    ATTRIBUTES = [
        'firstname',
        'lastname',
        'email',
        'pwd',

# Path: core/classes/model/base.py



# Path: core/classes/model/user.py
import bcrypt
from sqlalchemy                 import Column
from sqlalchemy                 import Integer
from sqlalchemy                 import String
from core.classes.model.base    import MapifBase
from core.classes.model.session import session
from core.modules               import logger 

    promo = Column(Integer)
    #---------------------------------------------------------------------------
    # as_dict
    #---------------------------------------------------------------------------
    def as_dict(self):
        return {
            'firstname': self.firstname,
            'lastname': self.lastname,
            'email': self.email,
            'promo': self.promo
        }
    #---------------------------------------------------------------------------
    # __repr__
    #---------------------------------------------------------------------------
    def __repr__(self):
        return """<User(id='{0}',
    firstname='{1}',
    lastname='{2}',
    email='{3}',
    promo='{4}'
)>""".format(self.id, self.firstname, self.lastname, self.email, self.promo)
#-------------------------------------------------------------------------------
# UserCRUD
#-------------------------------------------------------------------------------
class UserCRUD:
    ATTRIBUTES = [
        'firstname',
        'lastname',
        'email',
        'pwd',

        'promo'