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



from sqlalchemy                 import func
from sqlalchemy                 import Text
from sqlalchemy                 import Column
from sqlalchemy                 import String
from sqlalchemy                 import Integer
from sqlalchemy                 import DateTime
from sqlalchemy                 import ForeignKey
from sqlalchemy                 import UniqueConstraint
from core.classes.model.base    import MapifBase
from core.classes.model.session import session
from core.modules               import logger
            'ulid': self.id,
            'uid': self.uid,
            'lid': self.lid,
            'timestamp': self.timestamp,
            'meta': self.meta # the ugliest thing ever => maybe we'll find another solution one day.
        }
    #---------------------------------------------------------------------------
    # __repr__
    #---------------------------------------------------------------------------
    def __repr__(self):
        return """<UserLocation(id='{0}', uid='{1}', lid='{2}', 
    timestamp='{3}',
    meta='{4}'
)>""".format(self.id, self.uid, self.lid, self.timestamp, self.meta)
#-------------------------------------------------------------------------------
# UserLocationCRUD
#-------------------------------------------------------------------------------
class UserLocationCRUD:
    ATTRIBUTES = [
        'ulid',
        'uid',
        'lid',
        'timestamp',
        'meta'
    ]
    #---------------------------------------------------------------------------
    # __apply_filters
    #---------------------------------------------------------------------------
    @staticmethod
    def __apply_filters(q, **kwargs):

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



# Path: core/classes/model/user_location.py
from sqlalchemy                 import func
from sqlalchemy                 import Text
from sqlalchemy                 import Column
from sqlalchemy                 import String
from sqlalchemy                 import Integer
from sqlalchemy                 import DateTime
from sqlalchemy                 import ForeignKey
from sqlalchemy                 import UniqueConstraint
from core.classes.model.base    import MapifBase
from core.classes.model.session import session
from core.modules               import logger

            'ulid': self.id,
            'uid': self.uid,
            'lid': self.lid,
            'timestamp': self.timestamp,
            'meta': self.meta # the ugliest thing ever => maybe we'll find another solution one day.
        }
    #---------------------------------------------------------------------------
    # __repr__
    #---------------------------------------------------------------------------
    def __repr__(self):
        return """<UserLocation(id='{0}', uid='{1}', lid='{2}', 
    timestamp='{3}',
    meta='{4}'
)>""".format(self.id, self.uid, self.lid, self.timestamp, self.meta)
#-------------------------------------------------------------------------------
# UserLocationCRUD
#-------------------------------------------------------------------------------
class UserLocationCRUD:
    ATTRIBUTES = [
        'ulid',
        'uid',
        'lid',
        'timestamp',
        'meta'
    ]
    #---------------------------------------------------------------------------
    # __apply_filters
    #---------------------------------------------------------------------------
    @staticmethod
    def __apply_filters(q, **kwargs):

        for key, val in kwargs.items():