from django.db import models


# from user.models import UserProfile


class Pizzeria(models.Model):
    # owner = models.ForeignKey(UserProfile, on_delete=models.CASCADE)
    address = models.CharField(max_length=512)
    phone = models.CharField(max_length=40)


class Pizza(models.Model):
    CHOICES = [
        ('M', 'Meat'),
        ('VG', 'Vegetarian'),
        ('V', 'Vegan'),
    ]

    title = models.CharField(max_length=120)
    description = models.CharField(max_length=240)
    kind = models.CharField(max_length=10, choices=CHOICES)


class Likes(models.Model):
    # user = models.ForeignKey(UserProfile, on_delete=models.CASCADE)
    pizza = models.ForeignKey(Pizza, on_delete=models.CASCADE)
