More initial sketching
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
from django.contrib.auth.models import AbstractUser
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class CustomUser(AbstractUser):
|
||||
pass
|
||||
|
||||
|
||||
class Licence(models.Model):
|
||||
licence_number = models.CharField(max_length=100)
|
||||
date_obtained = models.DateField()
|
||||
# entitlements
|
||||
|
||||
|
||||
class Driver(CustomUser):
|
||||
licence = models.ForeignKey('Licence', on_delete=models.CASCADE)
|
||||
|
||||
Reference in New Issue
Block a user