from django.db import models

class Event(models.Model):
    setup_start = models.DateField
    setup_end = model.DateField
    event_start = model.DateField
    event_end = model.DateField
    teardown_start = model.DateField
    teardown_end = model.DateField
    needed_resources = models.ManyToMany(Resource)
    status = models.CharField(length=255, blank=False)
    visibility = models.CharField(length=255, blank=False)
    event_organizer = models.ManyToMany(Organization)
    location = models.ForeignKey(Location)

class Location(models.Model):
    personel = models.ForeignKey('User')
    capacity = models.IntegerField
    location_name = models.CharField(length=255, blank=False)
    availability = models.CharField(length=255, blank=False)

class Organization(models.Model):
    name = models.CharField(length=255, blank=False)
    phone_number = models.CharField(length=11, blank=True)
    email = models.CharField(length=255)

class Resource(models.Model):
    isFixed = models.BooleanField
    resourceType = models.CharField(length=255, blank=False)
    description = models.CharField(length=255, blank=True)
    location = models.ForeignKey(Location, null=True)


from django.db import models

class Event(models.Model):
    setup_start = models.DateField
    setup_end = model.DateField
    event_start = model.DateField
    event_end = model.DateField
    teardown_start = model.DateField
    teardown_end = model.DateField
    needed_resources = models.ManyToMany(Resource)
    status = models.CharField(length=255, blank=False)
    visibility = models.CharField(length=255, blank=False)
    event_organizer = models.ManyToMany(Organization)
    location = models.ForeignKey(Location)

class Location(models.Model):
    personel = models.ForeignKey('User')
    square_footage = models.IntegerField
    capacity = models.IntegerField
    location_name = models.CharField(length=255, blank=False)
    availability = models.CharField(length=255, blank=False)

class Organization(models.Model):
    name = models.CharField(length=255, blank=False)
    phone_number = models.CharField(length=11, blank=True)
    email = models.CharField(length=255)

class Resource(models.Model):
    isFixed = models.BooleanField
    resourceType = models.CharField(length=255, blank=False)
    description = models.CharField(length=255, blank=True)
    location = models.ForeignKey(Location, null=True)


Add square feet to Location data model.