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 Table_1(models.Model):
    id = models.PrimaryKey()
    char_1 = models.Char(max_length=200)
    varchar_1 = models.VarChar(max_length=200)
    date_1 = models.Date()
    datetime_1 = models.DateTime()
    fk_1 = models.ForeignKey(Table_2)
    mm_1 = models.ManyToMany(Table_3)
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
class Question(models.Model):
    id = models.PrimaryKey()
    question_text = models.Char(max_length=200)
    pub_date = models.DateTime()
Example #5
0
 def setUp(self):
     self.test_char_field = models.Char(max_length=4)
Example #6
0
class Question(models.Model):
    id = models.Integer()
    pub_date = models.Timestamp()
    question_text = models.Char(max_length=200)
Example #7
0
class Choice(models.Model):
    question = models.Integer()
    choice_text = models.Char(max_length=200)
    id = models.Integer()
    votes = models.Integer()
Example #8
0
class Departments(models.Model):
    dept_no = models.Char(max_length=4)
    dept_name = models.Varchar(max_length=40)