from django.db import models
from tinymce.models import HTMLField
from django.contrib.auth.models import User


class Neighbour(models.Model):
    name = models.CharField(max_length=30)
    location = models.CharField(max_length=30)
    occupant = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Business(models.Model):
    image = models.ImageField(upload_to='pictures')
    name = models.CharField(max_length=30)
    neighbour = models.ForeignKey(Neighbour, on_delete=models.CASCADE)
    email = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Profile(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    photo = models.ImageField(upload_to='photos', null=True, blank=True)
    location = models.TextField(max_length=60)

05d45f836a796cc08a699a05aacbc06daa9feb03
<mask token>


class Business(models.Model):
    image = models.ImageField(upload_to='pictures')
    name = models.CharField(max_length=30)
    neighbour = models.ForeignKey(Neighbour, on_delete=models.CASCADE)
    email = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Profile(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    photo = models.ImageField(upload_to='photos', null=True, blank=True)
    location = models.TextField(max_length=60)

<mask token>


class Neighbour(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Business(models.Model):
    image = models.ImageField(upload_to='pictures')
    name = models.CharField(max_length=30)
    neighbour = models.ForeignKey(Neighbour, on_delete=models.CASCADE)
    email = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Profile(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    photo = models.ImageField(upload_to='photos', null=True, blank=True)
    location = models.TextField(max_length=60)

<mask token>


class Neighbour(models.Model):
    name = models.CharField(max_length=30)
    location = models.CharField(max_length=30)
    occupant = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Business(models.Model):
    image = models.ImageField(upload_to='pictures')
    name = models.CharField(max_length=30)
    neighbour = models.ForeignKey(Neighbour, on_delete=models.CASCADE)
    email = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Profile(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    photo = models.ImageField(upload_to='photos', null=True, blank=True)
    location = models.TextField(max_length=60)

from django.db import models
from tinymce.models import HTMLField
from django.contrib.auth.models import User


class Neighbour(models.Model):
    name = models.CharField(max_length=30)
    location = models.CharField(max_length=30)
    occupant = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Business(models.Model):
    image = models.ImageField(upload_to='pictures')
    name = models.CharField(max_length=30)
    neighbour = models.ForeignKey(Neighbour, on_delete=models.CASCADE)
    email = models.CharField(max_length=30)
    user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True,
        null=True)


class Profile(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    photo = models.ImageField(upload_to='photos', null=True, blank=True)
    location = models.TextField(max_length=60)
