from django.db import models
from BasicBusinessManager.models.users.company_owner import CompanyOwner


class Company(models.Model):
    name = models.CharField(max_length=30)
    businesses_owner = models.ManyToManyField("CompanyOwner")
    address = models.CharField(max_length=60, blank=True)
    sector = models.ManyToManyField("Sector")

    def __str__(self):
        return self.name


class Sector(models.Model):
    name = models.CharField(max_length=30)
    decription = models.CharField(max_length=300, blank=True)

    def __str__(self):
        return self.name
