from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator

# Added fiels Description, Last_Modified, Images fiels


class Restaurant(models.Model):
    """Temporary class to hold fetched restaurant
    entries for their business id and rating."""

    # Set yelp_id max length to 100 based on this:
    # https://github.com/Yelp/yelp-fusion/issues/183
    yelp_id = models.CharField(max_length=100)
    rating = models.FloatField(
        default=0.0, validators=[MinValueValidator(0.0), MaxValueValidator(5.0)]
    )
    Description = models.TextField(blank=False, null=False)
    Last_Modified = models.DateTimeField(auto_now_add=True)
    # Accessible = models.BooleanField(default=False)
    # FamilyFriendly = models.BooleanField(default=False)
    # TransactionRequired = models.BooleanField(default=True)
