Пример #1
0
class UrlSummary(ndb.Model):
    """Metadata about a URL."""

    MAX_AGE = 60

    url = ndb.StringProperty()
    title = ndb.StringProperty()
    when = ndb.FloatProperty()
Пример #2
0
class Message(ndb.Model):
    """Guestbook message."""

    body = ndb.StringProperty()
    when = ndb.FloatProperty()
    userid = ndb.StringProperty()
Пример #3
0
class LogRecord(ndb.Model):
    timestamp = ndb.FloatProperty()