old_contents: from django.db import models
  
  # Create your models here.
  
new_contents: from django.db import models
  from django.contrib.auth.models import User
  # Create your models here.
  
  class Interest(models.Model):
  	name = models.CharField(max_length=100)
  
  class Action(models.Model):
  	name = models.CharField(max_length=100)
  
  class Application(models.Model):
  	applicant = models.OneToOneField(User, related_name="application", primary_key=True)
  	timestamp = models.DateTimeField()
  	interests = models.ManyToManyField(Interest)
  	killboard = models.CharField(max_length=100)
  	closetime = models.DateTimeField(blank=True, null=True)
  	disposition = models.IntegerField(choices=((0,'Duplicate'), (1,'Accepted'), (2,'Rejected'), (3, 'Deferred')))
  	intelclear = models.DateTimeField()
  	standingsclear = models.BooleanField()
  
  	def __unicode__(self):
  		return 'Applicant: %s Status: %s' % (self.applicant.name, self.disposition)
  
  class AppVote(models.Model):
  	application = models.ForeignKey(Application, related_name='votes')
  	vote = models.ForeignKey(User, related_name='appvotes')
  	disposition = models.IntegerField(choices=((1,'Accept',), (2,'Reject'), (3, 'Defer')))
  	note = models.TextField()
  	timestamp = models.DateTimeField()
  
  class AppAction(models.Model):
  	application = models.ForeignKey(Application, related_name='actions')
  	action = models.ForeignKey(Action, related_name='instances')
  	note = models.TextField()
  	timestamp = models.DateTimeField()
  
  class Interview(models.Model):
  	application = models.ForeignKey(Application, related_name='interviews')
  	interviewer = models.ForeignKey(User, related_name='interviews')
  	chatlog = models.TextField()
  	timestamp = models.DateTimeField()
  
  class AppQuestion(models.Model):
  	question = models.CharField(max_length=255)
  
  class AppResponse(models.Model):
  	application = models.ForeignKey(Application, related_name='responses')
  	question = models.ForeignKey(AppQuestion, related_name='responses')
  	response = models.TextField(blank=True, null=True)
  
  
  
  
subject: Add models for RO Tool