17 lines
699 B
Python
17 lines
699 B
Python
|
from django.db import models
|
||
|
|
||
|
# Create your models here.
|
||
|
class Employee(models.Model):
|
||
|
person_id = models.IntegerField(blank=False,
|
||
|
null=False,
|
||
|
unique=True)
|
||
|
first_name = models.CharField(max_length=200,
|
||
|
null=False,
|
||
|
blank=False)
|
||
|
last_name = models.CharField(max_length=200,
|
||
|
null=False,
|
||
|
blank=False)
|
||
|
department = models.CharField(max_length=200,
|
||
|
null=False,
|
||
|
blank=False)
|
||
|
manager_id = models.IntegerField()
|