from django.db import models

from places.models import Place
from users.models import EMWUser
from django.contrib.auth.models import User


# Create your models here.
class Visit(models.Model):
    place = models.OneToOneField(Place)
    user = models.OneToOneField(User)
    time = models.TimeField()


class VisitFeedback(models.Model):
    visit = models.OneToOneField(Visit)
    rating = models.IntegerField()
    comment = models.TextField()