我应该在Google AppEngine数据存储区中规范化我的数据吗?

时间:2016-09-22 15:12:21

标签: python google-app-engine google-cloud-datastore

我在AppEngine中有下一个模型:

class Category(db.Model):
    name = db.StringProperty()
    description = db.StringProperty()

class Blog(db.Model, Handler) :
    subject = db.StringProperty(required = True)
    content = db.TextProperty(required = True)
    date = db.DateProperty(auto_now_add = True)
    last_modified = db.DateProperty(auto_now = True)
    category = db.ReferenceProperty(Category, required=True)

这是一种正确的方法是否规范化我的数据?

0 个答案:

没有答案