from django.db import models from datetime import datetime # Create your models here. class RegisteredUser(models.Model): date_registered = models.DateTimeField(default=datetime.now) first_name = models.CharField(max_length=64) last_name = models.CharField(max_length=64) section = models.CharField(max_length=8, null=True, blank=True) row = models.IntegerField(null=True, blank=True) class ParkingLot(models.Model): LOT_GOLD = 'GOLD' LOT_GREEN = 'GREEN' LOT_BLACK = 'BLACK' LOT_RED = 'RED' LOT_BLUE = 'BLUE' LOT_SILVER = 'SILVER' LOT_ORANGE = 'ORANGE' LOT_YELLOW = 'YELLOW' LOT_PURPLE = 'PURPLE' LOT_PINK = 'PINK' LOT_WHITE = 'WHITE' LOT_CHOICES = ( (LOT_GREEN, 'Green'), (LOT_BLACK, 'Black'), (LOT_RED, 'Red'), (LOT_BLUE, 'Blue'), (LOT_SILVER, 'Silver'), (LOT_ORANGE, 'Orange'), (LOT_YELLOW, 'Yellow'), (LOT_PURPLE, 'Purple'), (LOT_PINK, 'Pink'), (LOT_WHITE, 'White'), (LOT_GOLD, 'Gold'), ) LOT_ENTRANCES = { # Put the parking lot entrances here. Something like: # PARKING_LOT: (, ,