text: from django.db import models
  from django.utils.timezone import now
  
  class CarMake(models.Model):
      name = models.CharField(null=False, max_length=50, default='car name')
      description = models.CharField(max_length=1000)
  
      def _str_(self):
          return "Name: " + str(self.name) + ",  Description: " + str(self.description)
  
  class CarModel(models.Model):
      car_make = models.ForeignKey(CarMake, on_delete=models.CASCADE)
      name = models.CharField(null=False, max_length=50, default='car model')
      dealer_id = models.IntegerField(default=0)
      SEDAN = 'sedan'
      SUV = 'suv'
      WAGON = 'wagon'
      TYPE_CHOICES = [
          (SEDAN, 'sedan'),
          (SUV, 'suv'),
          (WAGON, 'wagon')
      ]
      type = models.CharField(
          null=False,
          max_length=20,
          choices=TYPE_CHOICES,
          default=SEDAN
      )
      year = models.DateField()
  
      def _str_(self):
          return "Name: " + str(self.name) + ", car_make: " + str(self.car_make)
  
  
  # Create a plain Python class `CarDealer` to hold dealer data
  class CarDealer:
  
      def __init__(self, address, city, full_name, id, lat, long, short_name, st, zip):
          # Dealer address
          self.address = address
          # Dealer city
          self.city = city
          # Dealer Full Name
          self.full_name = full_name
          # Dealer id
          self.id = id
          # Location lat
          self.lat = lat
          # Location long
          self.long = long
          # Dealer short name
          self.short_name = short_name
          # Dealer state
          self.st = st
          # Dealer zip
          self.zip = zip
  
      def __str__(self):
          return "Dealer name: " + self.full_name
  
  # Create a plain Python class `DealerReview` to hold review data
  class DealerReview:
  
      def __init__(self, dealership, name, purchase, review, purchase_date, car_make, car_model, car_year, sentiment, id):
          self.dealership = dealership
          self.name = name
          self.purchase = purchase
          self.review = review
          self.purchase_date = purchase_date
          self.car_make = car_make
          self.car_model = car_model
          self.car_year = car_year
          self.sentiment = sentiment
          self.id = id
  
      def __str__(self):
          return "name: " + self.name + ", Review: " + self.review
  