from google.appengine.ext import ndb


class Photo(ndb.Model):
    name = ndb.StringProperty()
    blob_info_key = ndb.BlobKeyProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)


class Album(ndb.Model):
    name = ndb.StringProperty()
    description = ndb.StringProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)

from google.appengine.ext import ndb


class Photo(ndb.Model):
    name = ndb.StringProperty()
    blob_info_key = ndb.BlobKeyProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)


class Album(ndb.Model):
    name = ndb.StringProperty()
    description = ndb.StringProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)


class Comment(ndb.Model):
    author = ndb.StringProperty()
    text = ndb.StringProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)

Add Comment Model for Photo and Album
Add Comment Model for Photo and Album

  from google.appengine.ext import ndb
  
  
  class Photo(ndb.Model):
      name = ndb.StringProperty()
      blob_info_key = ndb.BlobKeyProperty()
      date_created = ndb.DateTimeProperty(auto_now_add=True)
  
  
  class Album(ndb.Model):
      name = ndb.StringProperty()
      description = ndb.StringProperty()
      date_created = ndb.DateTimeProperty(auto_now_add=True)
  
+ 
+ class Comment(ndb.Model):
+     author = ndb.StringProperty()
+     text = ndb.StringProperty()
+     date_created = ndb.DateTimeProperty(auto_now_add=True)
+ 
Add Comment Model for Photo and Album
## Code Before:
from google.appengine.ext import ndb


class Photo(ndb.Model):
    name = ndb.StringProperty()
    blob_info_key = ndb.BlobKeyProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)


class Album(ndb.Model):
    name = ndb.StringProperty()
    description = ndb.StringProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)

## Instruction:
Add Comment Model for Photo and Album
## Code After:
from google.appengine.ext import ndb


class Photo(ndb.Model):
    name = ndb.StringProperty()
    blob_info_key = ndb.BlobKeyProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)


class Album(ndb.Model):
    name = ndb.StringProperty()
    description = ndb.StringProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)


class Comment(ndb.Model):
    author = ndb.StringProperty()
    text = ndb.StringProperty()
    date_created = ndb.DateTimeProperty(auto_now_add=True)
