Example #1
0
class Dept_Manager(models.Model):
    emp_no = models.Integer()
    dept_no = models.Char(max_length=4)
    from_date = models.Date()
    to_date = models.Date()
    dept_manager_ibfk_1 = models.ForeignKey(Employees)
    dept_manager_ibfk_2 = models.ForeignKey(Departments)
Example #2
0
class Employees(models.Model):
    emp_no = models.Integer()
    birth_date = models.Date()
    first_name = models.Varchar(max_length=14)
    last_name = models.Varchar(max_length=16)
    gender = models.Text()
    hire_date = models.Date()
Example #3
0
class Choice(models.Model):
    id = models.PrimaryKey()
    question = models.ForeignKey(Question)
    choice_text = models.Char(max_length=200)
    votes = models.Integer()
Example #4
0
 def setUp(self):
     self.test_int_field = models.Integer()
Example #5
0
class Titles(models.Model):
    emp_no = models.Integer()
    title = models.Varchar(max_length=50)
    from_date = models.Date()
    to_date = models.Date()
    titles_ibfk_1 = models.ForeignKey(Employees)
Example #6
0
class Salaries(models.Model):
    emp_no = models.Integer()
    salary = models.Integer()
    from_date = models.Date()
    to_date = models.Date()
    salaries_ibfk_1 = models.ForeignKey(Employees)
Example #7
0
class Question(models.Model):
    id = models.Integer()
    pub_date = models.Timestamp()
    question_text = models.Char(max_length=200)
Example #8
0
class Choice(models.Model):
    question = models.Integer()
    choice_text = models.Char(max_length=200)
    id = models.Integer()
    votes = models.Integer()