from django.db import models status_CHOICES = ( ('Rejected','Rejected'), ('Applied','Applied') ) class JobData(models.Model): job_position = models.CharField(max_length=100, null=True) company = models.CharField(max_length=100, null=True) URL = models.URLField(max_length=1000,null=True) status = models.CharField(max_length=100,choices=status_CHOICES, null=True) date_saved = models.DateField('Published', blank=True, null=True) date_applied = models.DateField('Published', blank=True, null=True) type = models.CharField(max_length=100, null=True) resume = models.URLField(max_length=200, null=True) cover_letter = models.URLField(max_length=200, null=True) location = models.CharField(max_length=100, null=True) job_description = models.CharField(null=True) salary = models.CharField(null=True) contact = models.CharField(max_length=100, null=True) source = models.CharField(max_length=100, null=True) class Meta: db_table = 'job'