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


class Employee(models.Model):
    name = models.CharField(max_length=40)
    email = models.CharField(max_length=100)
    added_by = models.ForeignKey(User, on_delete=models.CASCADE)

    def __str__(self):
        return self.name

ee3770ffe1f0181df4fff6125ea592d5f9520939
<mask token>

<mask token>


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

<mask token>


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

    def __str__(self):
        return self.name

<mask token>


class Employee(models.Model):
    name = models.CharField(max_length=40)
    email = models.CharField(max_length=100)
    added_by = models.ForeignKey(User, on_delete=models.CASCADE)

    def __str__(self):
        return self.name

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


class Employee(models.Model):
    name = models.CharField(max_length=40)
    email = models.CharField(max_length=100)
    added_by = models.ForeignKey(User, on_delete=models.CASCADE)

    def __str__(self):
        return self.name
