Skip to content

Commit 6853e21

Browse files
authored
Merge pull request #30 from buildingSMART/IVS-405_Company_Email_Address_Patterns
IVS-405 - Ability to capture company email address pattern(s)
2 parents c19d1c9 + c044e09 commit 6853e21

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.1.6 on 2025-02-22 16:16
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('ifc_validation_models', '0008_company_legal_name'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='company',
15+
name='email_address_pattern',
16+
field=models.CharField(blank=True, help_text='Email address pattern(s) of the Company (optional).', max_length=1024, null=True, unique=True),
17+
),
18+
]

models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,14 @@ class Company(TimestampedBaseModel):
227227
help_text="Legal name of the Company (optional)."
228228
)
229229

230+
email_address_pattern = models.CharField(
231+
max_length=1024,
232+
null=True,
233+
blank=True,
234+
unique=True,
235+
help_text="Email address pattern(s) of the Company (optional)."
236+
)
237+
230238
class Meta:
231239

232240
db_table = "ifc_company"

0 commit comments

Comments
 (0)