| Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
|---|---|---|---|---|---|---|---|
| DepartmentID | smallint identity | smallint | Not null | Primary key for Department records. | |||
| Name | Name | nvarchar(50) | Not null | Name of the department. | |||
| GroupName | Name | nvarchar(50) | Not null | Name of the group to which the department belongs. | |||
| ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. |
The object has no extended properties.
| Primary Key Name | Field Name |
|---|---|
| PK_Department_DepartmentID | DepartmentID |
| Index Name | Description | Clustered | Unique | Fields |
|---|---|---|---|---|
| PK_Department_DepartmentID | Clustered index created by a primary key constraint. | Yes | Yes | DepartmentID |
| AK_Department_Name | Unique nonclustered index. | No | Yes | Name |
| Name | Description | Type | Enabled |
|---|---|---|---|
| uDepartment | AFTER UPDATE trigger setting the ModifiedDate column in the Department table to the current date. | after Update | Yes |
| Object Name | Type | Field Name |
|---|---|---|
| HumanResources.uDepartment | trigger | N/A |
| HumanResources.vEmployeeDepartment | view | N/A |
| HumanResources.vEmployeeDepartmentHistory | view | N/A |