from mongomapper import Schema, Reference

from .utils import Timestamp, SessionStatus, session_status
from .user import User

class Session(Schema, Timestamp):
  __collection_name__ = 'sessions'

  user:   Reference(User)
  status: SessionStatus   = session_status.SESSION_ACTIVE
from mongomapper import Schema, Reference

from .utils import Timestamp, SessionStatus, session_status
from .user import User

class Session(Schema, Timestamp):
  __collection_name__ = 'sessions'

  user:   Reference(User)
  status: SessionStatus   = session_status.SESSION_ACTIVE