Table: Project_Template_Definition
Columns
Name | Type | Constraints | Description
project_template_definition_KEY | int | NOT NULL | Database assigned primary key for this table.
update__staff_KEY | int | NOT NULL |
update_date | datetime | NOT NULL |
create_date | datetime | NOT NULL |
project_template_definition_id | nvarchar (11) | NOT NULL | User defined ID (unique). A Project Template created from this Project Template Definition will this as its ID.
description | nvarchar (30) | NOT NULL | User defined description.
long_description | nvarchar (-1) | NOT NULL | Long description to use on invoices.
recurrence_rule | nvarchar (-1) | NOT NULL | Text of the iCalendar recurrence rules and exteneded properties that make up the due date recurrence.
due_date_based_on_fiscal_year_end | bit | NOT NULL | When the value is 1 the due date is adjusted for the Client's fiscal year end.
due_date_must_occur_on_weekdays | bit | NOT NULL | When the value is 1 the due date is adjusted so that it does not fall on a weekend.
row_version | timestamp | NOT NULL |
project_template_definition_id_sortable | varchar (48) | NOT NULL | A representation of the project_template_definition_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 project_template_definition_id.

Primary key
Name | Columns | Description
PK_Project_Template_Definition$project_template_definition_KEY | project_template_definition_KEY | CLUSTERED
Unique constraints
Name | Columns | Description
UK_Project_Template_Definition__project_template_definition_id | project_template_definition_id | Each id must be unique.
UK_Project_Template_Definition__project_template_definition_id_sortable | project_template_definition_id_sortable | An index by the sortable ID is desired, and the algorithm ends up producing unique values.

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Project_Template_Definition_Extension__Project_Template_Definition__project_template_definition_KEY | project_template_definition_KEY | Project_Template_Definition_Extension |
FK_Project_Template_Definition_Imported__Project_Template_Definition__project_template_definition_KEY | project_template_definition_KEY | Project_Template_Definition_Imported |