from django.db import models

# Create your models here.

class User(models.Model):
	display_name = models.CharField(max_length=64)
	auth_key = models.CharField(max_length=64)

class Post(models.Model):
	user = models.ForeignKey(User)
	text = models.CharField(max_length=4000)

class Comment(models.Model):
	user = models.ForeignKey(User)
	post = models.ForeignKey(Post)
	text = models.CharField(max_length=4000)

from django.db import models

# Create your models here.

class User(models.Model):
	display_name = models.CharField(max_length=64)
	auth_key = models.CharField(max_length=64)

class Post(models.Model):
	user = models.ForeignKey(User)
	text = models.CharField(max_length=4000)
	last_modified = models.DateTimeField()

class Comment(models.Model):
	user = models.ForeignKey(User)
	post = models.ForeignKey(Post)
	text = models.CharField(max_length=4000)

Add 'last modified' field to Post model
Add 'last modified' field to Post model
  from django.db import models
  
  # Create your models here.
  
  class User(models.Model):
  	display_name = models.CharField(max_length=64)
  	auth_key = models.CharField(max_length=64)
  
  class Post(models.Model):
  	user = models.ForeignKey(User)
  	text = models.CharField(max_length=4000)
+ 	last_modified = models.DateTimeField()
  
  class Comment(models.Model):
  	user = models.ForeignKey(User)
  	post = models.ForeignKey(Post)
  	text = models.CharField(max_length=4000)
  
Add 'last modified' field to Post model
## Code Before:
from django.db import models

# Create your models here.

class User(models.Model):
	display_name = models.CharField(max_length=64)
	auth_key = models.CharField(max_length=64)

class Post(models.Model):
	user = models.ForeignKey(User)
	text = models.CharField(max_length=4000)

class Comment(models.Model):
	user = models.ForeignKey(User)
	post = models.ForeignKey(Post)
	text = models.CharField(max_length=4000)

## Instruction:
Add 'last modified' field to Post model
## Code After:
from django.db import models

# Create your models here.

class User(models.Model):
	display_name = models.CharField(max_length=64)
	auth_key = models.CharField(max_length=64)

class Post(models.Model):
	user = models.ForeignKey(User)
	text = models.CharField(max_length=4000)
	last_modified = models.DateTimeField()

class Comment(models.Model):
	user = models.ForeignKey(User)
	post = models.ForeignKey(Post)
	text = models.CharField(max_length=4000)
