from django.db import models

# Create your models here.

class Company(models.Model):
    cName = models.CharField(primary_key='true',max_length=50,unique='true')
    cEmail = models.EmailField()
    cLogo = models.ImageField(upload_to="images", blank=True)
    cUrl = models.CharField(max_length=50)
    class Meta:
        db_table = "company"

class Employee(models.Model):
    eFname = models.CharField(primary_key='true',max_length=50,unique='true')
    eLname = models.CharField(max_length=50)
    eCompany = models.ForeignKey(Company, on_delete=models.CASCADE)
    eEmail = models.EmailField()
    ePhone = models.CharField(max_length=50)
    class Meta:
        db_table = "employee"
    
#class Login(models.Model):
    #UserName = models.CharField(max_length=50)
    #password = models.CharField(max_length=32)
    #class Meta:
        #db_table = "login"



aab9f8ee3d4428378bee0a306679eadf73ab9af6
<mask token>


class Employee(models.Model):
    eFname = models.CharField(primary_key='true', max_length=50, unique='true')
    eLname = models.CharField(max_length=50)
    eCompany = models.ForeignKey(Company, on_delete=models.CASCADE)
    eEmail = models.EmailField()
    ePhone = models.CharField(max_length=50)


    class Meta:
        db_table = 'employee'

<mask token>


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


    class Meta:
        db_table = 'company'


class Employee(models.Model):
    eFname = models.CharField(primary_key='true', max_length=50, unique='true')
    eLname = models.CharField(max_length=50)
    eCompany = models.ForeignKey(Company, on_delete=models.CASCADE)
    eEmail = models.EmailField()
    ePhone = models.CharField(max_length=50)


    class Meta:
        db_table = 'employee'

<mask token>


class Company(models.Model):
    cName = models.CharField(primary_key='true', max_length=50, unique='true')
    cEmail = models.EmailField()
    cLogo = models.ImageField(upload_to='images', blank=True)
    cUrl = models.CharField(max_length=50)


    class Meta:
        db_table = 'company'


class Employee(models.Model):
    eFname = models.CharField(primary_key='true', max_length=50, unique='true')
    eLname = models.CharField(max_length=50)
    eCompany = models.ForeignKey(Company, on_delete=models.CASCADE)
    eEmail = models.EmailField()
    ePhone = models.CharField(max_length=50)


    class Meta:
        db_table = 'employee'

from django.db import models


class Company(models.Model):
    cName = models.CharField(primary_key='true', max_length=50, unique='true')
    cEmail = models.EmailField()
    cLogo = models.ImageField(upload_to='images', blank=True)
    cUrl = models.CharField(max_length=50)


    class Meta:
        db_table = 'company'


class Employee(models.Model):
    eFname = models.CharField(primary_key='true', max_length=50, unique='true')
    eLname = models.CharField(max_length=50)
    eCompany = models.ForeignKey(Company, on_delete=models.CASCADE)
    eEmail = models.EmailField()
    ePhone = models.CharField(max_length=50)


    class Meta:
        db_table = 'employee'

from django.db import models

# Create your models here.

class Company(models.Model):
    cName = models.CharField(primary_key='true',max_length=50,unique='true')
    cEmail = models.EmailField()
    cLogo = models.ImageField(upload_to="images", blank=True)
    cUrl = models.CharField(max_length=50)
    class Meta:
        db_table = "company"

class Employee(models.Model):
    eFname = models.CharField(primary_key='true',max_length=50,unique='true')
    eLname = models.CharField(max_length=50)
    eCompany = models.ForeignKey(Company, on_delete=models.CASCADE)
    eEmail = models.EmailField()
    ePhone = models.CharField(max_length=50)
    class Meta:
        db_table = "employee"
    
#class Login(models.Model):
    #UserName = models.CharField(max_length=50)
    #password = models.CharField(max_length=32)
    #class Meta:
        #db_table = "login"


