from google.appengine.ext import ndb

class ModelWithUser(ndb.Model):
    nickname = ndb.StringProperty()
    user_id = ndb.StringProperty()
    joined_on = ndb.DateTimeProperty(auto_now_add=True) #changes when it is first created
    updated_on = ndb.DateTimeProperty(auto_now=True) #changes whenever its active
    first_name = ndb.StringProperty()
    last_name = ndb.StringProperty()
    profile_pic =ndb.StringProperty(default="https://cdn.pixabay.com/photo/2018/10/30/16/06/water-lily-3784022__340.jpg")

    @classmethod
    def get_by_user(cls, user):
        return cls.query().filter(cls.user_id == user.user_id()).get()

class Event(ndb.Model):
    start = ndb.DateTimeProperty()
    end = ndb.DateTimeProperty()
    type = ndb.StringProperty()
    owner = ndb.StringProperty()
    google_calendar = ndb.StringProperty()

4ae5b8e940575ad6bbd9e739f1a22abba63b096a
<mask token>


class ModelWithUser(ndb.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Event(ndb.Model):
    start = ndb.DateTimeProperty()
    end = ndb.DateTimeProperty()
    type = ndb.StringProperty()
    owner = ndb.StringProperty()
    google_calendar = ndb.StringProperty()

<mask token>


class ModelWithUser(ndb.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    @classmethod
    def get_by_user(cls, user):
        return cls.query().filter(cls.user_id == user.user_id()).get()


class Event(ndb.Model):
    start = ndb.DateTimeProperty()
    end = ndb.DateTimeProperty()
    type = ndb.StringProperty()
    owner = ndb.StringProperty()
    google_calendar = ndb.StringProperty()

<mask token>


class ModelWithUser(ndb.Model):
    nickname = ndb.StringProperty()
    user_id = ndb.StringProperty()
    joined_on = ndb.DateTimeProperty(auto_now_add=True)
    updated_on = ndb.DateTimeProperty(auto_now=True)
    first_name = ndb.StringProperty()
    last_name = ndb.StringProperty()
    profile_pic = ndb.StringProperty(default=
        'https://cdn.pixabay.com/photo/2018/10/30/16/06/water-lily-3784022__340.jpg'
        )

    @classmethod
    def get_by_user(cls, user):
        return cls.query().filter(cls.user_id == user.user_id()).get()


class Event(ndb.Model):
    start = ndb.DateTimeProperty()
    end = ndb.DateTimeProperty()
    type = ndb.StringProperty()
    owner = ndb.StringProperty()
    google_calendar = ndb.StringProperty()

from google.appengine.ext import ndb


class ModelWithUser(ndb.Model):
    nickname = ndb.StringProperty()
    user_id = ndb.StringProperty()
    joined_on = ndb.DateTimeProperty(auto_now_add=True)
    updated_on = ndb.DateTimeProperty(auto_now=True)
    first_name = ndb.StringProperty()
    last_name = ndb.StringProperty()
    profile_pic = ndb.StringProperty(default=
        'https://cdn.pixabay.com/photo/2018/10/30/16/06/water-lily-3784022__340.jpg'
        )

    @classmethod
    def get_by_user(cls, user):
        return cls.query().filter(cls.user_id == user.user_id()).get()


class Event(ndb.Model):
    start = ndb.DateTimeProperty()
    end = ndb.DateTimeProperty()
    type = ndb.StringProperty()
    owner = ndb.StringProperty()
    google_calendar = ndb.StringProperty()

from google.appengine.ext import ndb

class ModelWithUser(ndb.Model):
    nickname = ndb.StringProperty()
    user_id = ndb.StringProperty()
    joined_on = ndb.DateTimeProperty(auto_now_add=True) #changes when it is first created
    updated_on = ndb.DateTimeProperty(auto_now=True) #changes whenever its active
    first_name = ndb.StringProperty()
    last_name = ndb.StringProperty()
    profile_pic =ndb.StringProperty(default="https://cdn.pixabay.com/photo/2018/10/30/16/06/water-lily-3784022__340.jpg")

    @classmethod
    def get_by_user(cls, user):
        return cls.query().filter(cls.user_id == user.user_id()).get()

class Event(ndb.Model):
    start = ndb.DateTimeProperty()
    end = ndb.DateTimeProperty()
    type = ndb.StringProperty()
    owner = ndb.StringProperty()
    google_calendar = ndb.StringProperty()
