我们正在开发一种工具来分享特定垂直行业的案例研究。
数据模型很简单:
from google.appengine.ext import ndb
from webapp2_extras.appengine.auth.models import User
class CaseStudy(ndb.Model):
title = ndb.StringProperty()
published = ndb.BooleanProperty( default=False)
class Hits(ndb.Model):
case_study = ndb.StructuredProperty(CaseStudy, repeated=False)
by_whom = ndb.StructuredProperty(User, repeated=False)
timestamp = DateTimeProperty(auto_now_add=True)
提前感谢您,欢迎任何建议