Table: Engagement_Template
Columns
Name | Type | Constraints | Description
engagement_template_KEY | int | NOT NULL | AUTO-INCREMENT: Database assigned primary key for this table.
update__staff_KEY | int | NOT NULL |
update_date_utc | datetime | NOT NULL |
engagement_template_id | nvarchar (11) | NOT NULL | User defined identifier (unique).
description | nvarchar (250) | NOT NULL | User defined description.
create_date_utc | datetime | NOT NULL |
engagement_template_id_sortable | varchar (48) | NOT NULL | A representation of the engagement_template_id column that sorts in natural order, meaning that digits are sorted as numbers while non-digits are sorted alphabetically. A trigger keeps this field synchronized with the content of engagement_template_id.
office_grouping_type_KEY | int | NOT NULL | Key to a Office Grouping Type that indicates how to determine which office will be assigned to generated engagements.
biller__staff_grouping_type_KEY | int | NOT NULL | Key to a Staff Grouping Type that indicates how to determine which staff will be assigned to generated engagements.
reviewer__staff_grouping_type_KEY | int | NOT NULL | Key to a Staff Grouping Type that indicates how to determine which staff will be assigned to generated engagements.
manager__staff_grouping_type_KEY | int | NOT NULL | Key to a Staff Grouping Type that indicates how to determine which staff will be assigned to generated engagements.
is_default | bit | NOT NULL | Whether or not this engagement will be used as a default for new clients that are entered.

Primary key
Name | Columns | Description
PK_Engagement_Template$engagement_template_KEY | engagement_template_KEY | CLUSTERED
Unique constraints
Name | Columns | Description
UK_Engagement_Template$engagement_template_id | engagement_template_id | Each id must be unique.
UK_Engagement_Template$engagement_template_id_sortable | engagement_template_id_sortable | An index by the sortable ID is desired, and the algorithm ends up producing unique values.
Indexes
Name | Columns | Description
IX_Engagement_Template$biller__staff_grouping_type_KEY | biller__staff_grouping_type_KEY | Index supports foreign key FK_Engagement_Template__Staff_Grouping_Type__biller__staff_grouping_type_KEY
IX_Engagement_Template$manager__staff_grouping_type_KEY | manager__staff_grouping_type_KEY | Index supports foreign key FK_Engagement_Template__Staff_Grouping_Type__manager__staff_grouping_type_KEY
IX_Engagement_Template$office_grouping_type_KEY | office_grouping_type_KEY | Index supports foreign key FK_Engagement_Template__Office_Grouping_Type__office_grouping_type_KEY
IX_Engagement_Template$reviewer__staff_grouping_type_KEY | reviewer__staff_grouping_type_KEY | Index supports foreign key FK_Engagement_Template__Staff_Grouping_Type__reviewer__staff_grouping_type_KEY

Foreign keys
Name | Columns | Referenced table | Description
FK_Engagement_Template__Staff_Grouping_Type__biller__staff_grouping_type_KEY | biller__staff_grouping_type_KEY | Staff_Grouping_Type |
FK_Engagement_Template__Staff_Grouping_Type__manager__staff_grouping_type_KEY | manager__staff_grouping_type_KEY | Staff_Grouping_Type |
FK_Engagement_Template__Staff_Grouping_Type__reviewer__staff_grouping_type_KEY | reviewer__staff_grouping_type_KEY | Staff_Grouping_Type |

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Project_Template__Engagement_Template__engagement_template_KEY | engagement_template_KEY | Project_Template |
FK_Engagement__Engagement_Template__engagement_template_KEY | engagement_template_KEY | Engagement |
FK_User_Preference__Engagement_Template__entry__engagement_template_KEY | entry__engagement_template_KEY | User_Preference |