Table: Contact_Email
Columns
Name | Type | Constraints | Description
contact_email_KEY | int | NOT NULL | AUTO-INCREMENT: Database assigned primary key for this table.
update__staff_KEY | int | NOT NULL |
update_date | datetime | NOT NULL |
contact_KEY | int | NOT NULL | Key to a Contact record.
contact_email_type_KEY | int | NOT NULL | Key to a Contact Email Type record.
email | nvarchar (320) | NOT NULL | E-mail address.
create_date | datetime | NOT NULL |
create__changeset_KEY | int | NOT NULL |
update__changeset_KEY | int | NOT NULL |
display_as | nvarchar (320) | NOT NULL |

Primary key
Name | Columns | Description
PK_Contact_Email$contact_email_KEY | contact_email_KEY | CLUSTERED
Unique constraints
Name | Columns | Description
UK_Contact_Email__contact_KEY__contact_email_type_KEY | contact_KEY, contact_email_type_KEY | Each Contact can only have one of each type of e-mail address.
Indexes
Name | Columns | Description
IX_Contact_Email$contact_email_type_KEY | contact_email_type_KEY | Index supports foreign key FK_Contact_Email__Contact_Email_Type__contact_email_type_KEY
IX_Contact_Email$email@contact_KEY | email, contact_KEY | This index supports looking up contacts based on email address, mainly for email indexing.

Foreign keys
Name | Columns | Referenced table | Description
FK_Contact_Email__Contact__contact_KEY | contact_KEY | Contact |
FK_Contact_Email__Contact_Email_Type__contact_email_type_KEY | contact_email_type_KEY | Contact_Email_Type |

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Monitored_Event_Action__Contact_Email__contact_email_KEY | contact_email_KEY | Monitored_Event_Action |
FK_Recorded_Event_Notification__Contact_Email__contact_email_KEY | contact_email_KEY | Recorded_Event_Notification | on delete set null;