from django.db import models


class Client(models.Model):
    name = models.CharField(max_length=100)
    email = models.EmailField(max_length=100)
    industry = models.CharField(max_length=50)

    def __str__(self):
        return self.name

    @property
    def code(self):
        return "CODE-{}".format(self.name)
