from google.appengine.ext import ndb


class Collaborator(ndb.Model):
    """
    Represents collab relationship at events
    Notifications will only be sent if both the
    sender and receiver have shared with each other
    """

    srcUserId = ndb.StringProperty(required=True)
    dstUserId = ndb.StringProperty(required=True)
    mutual = ndb.BooleanProperty(default=False)
    eventKey = ndb.StringProperty(required=True)

    created = ndb.DateTimeProperty(auto_now_add=True)
    updated = ndb.DateTimeProperty(auto_now=True, indexed=False)

from google.appengine.ext import ndb


class Collaborator(ndb.Model):
    """
    Represents collab relationship at events
    Notifications will only be sent if both the
    sender and receiver have shared with each other
    """

    srcUserId = ndb.StringProperty(required=True)
    dstUserId = ndb.StringProperty(required=True)
    mutual = ndb.BooleanProperty(default=False)
    eventKey = ndb.StringProperty(required=True)

    created = ndb.DateTimeProperty(auto_now_add=True)
    updated = ndb.DateTimeProperty(auto_now=True, indexed=False)

Represents collab relationship at events     Notifications will only be sent if both the     sender and receiver have shared with each other