from google.appengine.ext import ndb


class Holding(ndb.Model):
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    market_volume = ndb.IntegerProperty()


class Account(ndb.Model):
    username = ndb.StringProperty()
    cash_funds = ndb.FloatProperty()
    holdings = ndb.StructuredProperty(Holding, repeated=True)
    shorts = ndb.StructuredProperty(Holding, repeated=True)


class Transaction(ndb.Model):
    account_key = ndb.KeyProperty(Account)
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    price = ndb.FloatProperty()
    action = ndb.StringProperty()


class PostedImage(ndb.Model):
    url = ndb.StringProperty()
    random_num = ndb.FloatProperty()


class UserHome(ndb.Model):
    address = ndb.StringProperty()
    username = ndb.StringProperty()


class Attendees(ndb.Model):
    username = ndb.StringProperty()
    accepted = ndb.BooleanProperty()
    pending = ndb.BooleanProperty()


class Event(ndb.Model):
    event_name = ndb.StringProperty()
    location = ndb.StringProperty()
    start_time = ndb.IntegerProperty()
    attendees = ndb.StructuredProperty(Attendees, repeated=True)
    created = ndb.DateTimeProperty(auto_now_add=True)

784528ebb3c1a50e27e6de86f8efcbd83d0df4ac
<mask token>


class PostedImage(ndb.Model):
    url = ndb.StringProperty()
    random_num = ndb.FloatProperty()


class UserHome(ndb.Model):
    address = ndb.StringProperty()
    username = ndb.StringProperty()


class Attendees(ndb.Model):
    username = ndb.StringProperty()
    accepted = ndb.BooleanProperty()
    pending = ndb.BooleanProperty()


class Event(ndb.Model):
    event_name = ndb.StringProperty()
    location = ndb.StringProperty()
    start_time = ndb.IntegerProperty()
    attendees = ndb.StructuredProperty(Attendees, repeated=True)
    created = ndb.DateTimeProperty(auto_now_add=True)

<mask token>


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


class Transaction(ndb.Model):
    account_key = ndb.KeyProperty(Account)
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    price = ndb.FloatProperty()
    action = ndb.StringProperty()


class PostedImage(ndb.Model):
    url = ndb.StringProperty()
    random_num = ndb.FloatProperty()


class UserHome(ndb.Model):
    address = ndb.StringProperty()
    username = ndb.StringProperty()


class Attendees(ndb.Model):
    username = ndb.StringProperty()
    accepted = ndb.BooleanProperty()
    pending = ndb.BooleanProperty()


class Event(ndb.Model):
    event_name = ndb.StringProperty()
    location = ndb.StringProperty()
    start_time = ndb.IntegerProperty()
    attendees = ndb.StructuredProperty(Attendees, repeated=True)
    created = ndb.DateTimeProperty(auto_now_add=True)

<mask token>


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


class Account(ndb.Model):
    username = ndb.StringProperty()
    cash_funds = ndb.FloatProperty()
    holdings = ndb.StructuredProperty(Holding, repeated=True)
    shorts = ndb.StructuredProperty(Holding, repeated=True)


class Transaction(ndb.Model):
    account_key = ndb.KeyProperty(Account)
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    price = ndb.FloatProperty()
    action = ndb.StringProperty()


class PostedImage(ndb.Model):
    url = ndb.StringProperty()
    random_num = ndb.FloatProperty()


class UserHome(ndb.Model):
    address = ndb.StringProperty()
    username = ndb.StringProperty()


class Attendees(ndb.Model):
    username = ndb.StringProperty()
    accepted = ndb.BooleanProperty()
    pending = ndb.BooleanProperty()


class Event(ndb.Model):
    event_name = ndb.StringProperty()
    location = ndb.StringProperty()
    start_time = ndb.IntegerProperty()
    attendees = ndb.StructuredProperty(Attendees, repeated=True)
    created = ndb.DateTimeProperty(auto_now_add=True)

<mask token>


class Holding(ndb.Model):
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    market_volume = ndb.IntegerProperty()


class Account(ndb.Model):
    username = ndb.StringProperty()
    cash_funds = ndb.FloatProperty()
    holdings = ndb.StructuredProperty(Holding, repeated=True)
    shorts = ndb.StructuredProperty(Holding, repeated=True)


class Transaction(ndb.Model):
    account_key = ndb.KeyProperty(Account)
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    price = ndb.FloatProperty()
    action = ndb.StringProperty()


class PostedImage(ndb.Model):
    url = ndb.StringProperty()
    random_num = ndb.FloatProperty()


class UserHome(ndb.Model):
    address = ndb.StringProperty()
    username = ndb.StringProperty()


class Attendees(ndb.Model):
    username = ndb.StringProperty()
    accepted = ndb.BooleanProperty()
    pending = ndb.BooleanProperty()


class Event(ndb.Model):
    event_name = ndb.StringProperty()
    location = ndb.StringProperty()
    start_time = ndb.IntegerProperty()
    attendees = ndb.StructuredProperty(Attendees, repeated=True)
    created = ndb.DateTimeProperty(auto_now_add=True)

from google.appengine.ext import ndb


class Holding(ndb.Model):
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    market_volume = ndb.IntegerProperty()


class Account(ndb.Model):
    username = ndb.StringProperty()
    cash_funds = ndb.FloatProperty()
    holdings = ndb.StructuredProperty(Holding, repeated=True)
    shorts = ndb.StructuredProperty(Holding, repeated=True)


class Transaction(ndb.Model):
    account_key = ndb.KeyProperty(Account)
    ticker = ndb.StringProperty()
    quantity = ndb.FloatProperty()
    price = ndb.FloatProperty()
    action = ndb.StringProperty()


class PostedImage(ndb.Model):
    url = ndb.StringProperty()
    random_num = ndb.FloatProperty()


class UserHome(ndb.Model):
    address = ndb.StringProperty()
    username = ndb.StringProperty()


class Attendees(ndb.Model):
    username = ndb.StringProperty()
    accepted = ndb.BooleanProperty()
    pending = ndb.BooleanProperty()


class Event(ndb.Model):
    event_name = ndb.StringProperty()
    location = ndb.StringProperty()
    start_time = ndb.IntegerProperty()
    attendees = ndb.StructuredProperty(Attendees, repeated=True)
    created = ndb.DateTimeProperty(auto_now_add=True)
