import uuid

from django.db import models

from corebot.utils import upload_location


class User(models.Model):
    chat_id = models.CharField(max_length=255)
    last_name = models.CharField(max_length=20, null=True, blank=True)
    first_name = models.CharField(max_length=20, null=True, blank=True)


class Place(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    title = models.CharField(null=True, blank=True, max_length=150)
    image_ref = models.CharField(max_length=32)
    latitude = models.FloatField(default=None)
    longitude = models.FloatField(default=None)
