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

class Admin(models.Model):
    admin_name = models.CharField(max_length=50)
    admin_last_name = models.CharField(max_length=50)

# one to one relationship
# each User has one Profile
# each Profile has one User
class Profile(models.Model):
    password = models.CharField(max_length=50)
    email = models.EmailField(max_length=50)
    admin = models.OneToOneField(Admin, on_delete=models.CASCADE, primary_key=True)

class Contact(models.Model):
    contact_email = models.EmailField(max_length=50, unique=False)
    message = models.TextField()

843a86a1131b90fcbe95d5e01564a0622470b367
<mask token>


class Profile(models.Model):
    password = models.CharField(max_length=50)
    email = models.EmailField(max_length=50)
    admin = models.OneToOneField(Admin, on_delete=models.CASCADE,
        primary_key=True)


class Contact(models.Model):
    contact_email = models.EmailField(max_length=50, unique=False)
    message = models.TextField()

<mask token>


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


class Profile(models.Model):
    password = models.CharField(max_length=50)
    email = models.EmailField(max_length=50)
    admin = models.OneToOneField(Admin, on_delete=models.CASCADE,
        primary_key=True)


class Contact(models.Model):
    contact_email = models.EmailField(max_length=50, unique=False)
    message = models.TextField()

<mask token>


class Admin(models.Model):
    admin_name = models.CharField(max_length=50)
    admin_last_name = models.CharField(max_length=50)


class Profile(models.Model):
    password = models.CharField(max_length=50)
    email = models.EmailField(max_length=50)
    admin = models.OneToOneField(Admin, on_delete=models.CASCADE,
        primary_key=True)


class Contact(models.Model):
    contact_email = models.EmailField(max_length=50, unique=False)
    message = models.TextField()

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


class Admin(models.Model):
    admin_name = models.CharField(max_length=50)
    admin_last_name = models.CharField(max_length=50)


class Profile(models.Model):
    password = models.CharField(max_length=50)
    email = models.EmailField(max_length=50)
    admin = models.OneToOneField(Admin, on_delete=models.CASCADE,
        primary_key=True)


class Contact(models.Model):
    contact_email = models.EmailField(max_length=50, unique=False)
    message = models.TextField()

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

class Admin(models.Model):
    admin_name = models.CharField(max_length=50)
    admin_last_name = models.CharField(max_length=50)

# one to one relationship
# each User has one Profile
# each Profile has one User
class Profile(models.Model):
    password = models.CharField(max_length=50)
    email = models.EmailField(max_length=50)
    admin = models.OneToOneField(Admin, on_delete=models.CASCADE, primary_key=True)

class Contact(models.Model):
    contact_email = models.EmailField(max_length=50, unique=False)
    message = models.TextField()
