class Oferta(models.Model): id = models.IntegerFields() titulo = models.CharFields(max_length=100) fecha = models.DateField(auto_now=True, auto_now_add=True) descripcion = models.TextFields() requisitos = models.TextFields() lugardetrabajo = models.CharFields(max_length=100) beneficios = models.TextFields(null=True)
class PasswordResetLink(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, primary_key=True) link = models.CharFields(max_length=50) def __str__(self): return 'Password rest link for ' + str(self.user)
class Question(models.Model): question_text = models.CharFields(max_length=200) pub_date = models.DateTimeField('date published')
class Localidad(models.Model): id = models.IntegerFields() nomb = models.CharFields(max_length=50)
class Provincia(models.Model): id = models.IntegerFields() nomb = models.CharFields(max_length=50)
class Quizmaker(): username = models.CharFields(max_length=20)
class Question(models.Model): author = models.ForeignKey(to=Progile, on_delete=models.CASCADE) title = models.CharFields(max_lenght=128) created_at = models.DateTimeField()
class User(): name = models.CharFields(max_length=150)
class User(): name = models.CharFields(max=150)
class Quizmaker(): username = models.CharFields(max_length=20) answer = models.ForeignKey(Answer, on_delete=models.CASCADE)
class Rubro(models.Model): id = models.IntegerFields() nomb = models.CharFields(max_length=50)
class Empresa(models.Model): razsoc = models.CharFields(max_lenght=50) mail = models.EmailFields(max_lenght=254) telef = models.IntegerFields() dire = models.CharFields(max_lenght=200, null=True) logo = models.ImageFields(upload_to="logos", null=True)