| 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_utc | datetime | NOT NULL | |
| create_date_utc | 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 (250) | 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. |
| recurrence_generation_method_KEY | int | NOT NULL | |
| generation_month | int | NOT NULL | |
| generation_day | int | NOT NULL | |
| target_start_month | int | NOT NULL | |
| target_start_day | int | NOT NULL | |
| start__target_date_method_KEY | int | NOT NULL | |
| target_complete_month | int | NOT NULL | |
| target_complete_day | int | NOT NULL | |
| complete__target_date_method_KEY | int | NOT NULL | |
| 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. | |