from django.db import models


class Address(models.Model):
    street = models.CharField(max_length=150, null=False, blank=False)
    city = models.CharField(max_length=150, null=False, blank=False)
    neighborhood = models.CharField(max_length=150, null=False, blank=False)
    zip_code = models.CharField(max_length=12, null=False, blank=False)
    uf = models.CharField(max_length=12, null=False, blank=False)
    latitude = models.CharField(max_length=30, null=True, blank=True)
    longitude = models.CharField(max_length=30, null=True, blank=True)

    class Meta:
        db_table = 'address'
