diff --git a/migrations/0009_company_email_address_pattern.py b/migrations/0009_company_email_address_pattern.py new file mode 100644 index 0000000..fecacad --- /dev/null +++ b/migrations/0009_company_email_address_pattern.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.6 on 2025-02-22 16:16 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ifc_validation_models', '0008_company_legal_name'), + ] + + operations = [ + migrations.AddField( + model_name='company', + name='email_address_pattern', + field=models.CharField(blank=True, help_text='Email address pattern(s) of the Company (optional).', max_length=1024, null=True, unique=True), + ), + ] diff --git a/models.py b/models.py index aeca2b7..cc62954 100644 --- a/models.py +++ b/models.py @@ -227,6 +227,14 @@ class Company(TimestampedBaseModel): help_text="Legal name of the Company (optional)." ) + email_address_pattern = models.CharField( + max_length=1024, + null=True, + blank=True, + unique=True, + help_text="Email address pattern(s) of the Company (optional)." + ) + class Meta: db_table = "ifc_company"