Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 264ff7297a
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (25 sloc) 0.96 kb
#!/usr/bin/env python
"""This module defines the db models for the project."""
__author__ = 'ebidel@gmail.com (Eric Bidelman)'
#from google.appengine.api import memcache
from google.appengine.ext import db
import shardedcounter
class Report(db.Model):
"""Model for report messages received by the API endpoints."""
cmd = db.StringProperty(required=True)
sub_cmd = db.StringProperty()
received_date = db.DateTimeProperty(auto_now_add=True)
version = db.FloatProperty(required=True)
# class Resource(db.Model):
# """Model for content resources."""
# class Type(object):
# IMG = 1
# VIDEO = 2
# ARTICLE = 3
# type = db.IntegerProperty(required=True)
# title = db.StringProperty()
# text = db.TextProperty(required=True)
# sharers = db.ReferenceProperty(Sharer)
# publication_date = db.DateTimeProperty()
# fetch_date = db.DateTimeProperty(auto_now=True, auto_now_add=True)
# url = db.LinkProperty(required=True)
Jump to Line
Something went wrong with that request. Please try again.