Table: dbo.Staff
Columns
Name | Type | Constraints | Description
staff_id | nvarchar (22) | NOT NULL | User defined identifier (unique).
description | nvarchar (60) | NOT NULL | User defined description.
user_name | nvarchar (60) | NOT NULL | The name used on the login screen.
first_name | nvarchar (60) | NOT NULL | The first name of this Staff.
middle_name | nvarchar (60) | NOT NULL | The middle name of this Staff.
last_name | nvarchar (60) | NOT NULL | The last name of this Staff.
social_security_number | nvarchar (22) | NOT NULL | Social Security Number.
photograph | image (16) |  | The contents of a image file for the staff's photograph.
comments | nvarchar (-1) |  | Any comments about the Staff.
date_hired | smalldatetime (4) |  | Date hired.
date_left | smalldatetime (4) |  | Date Staff no longer employed.
date_education_met | smalldatetime (4) |  | Date education met.
date_exam_passed | smalldatetime (4) |  | Date exam passed.
date_experience_met | smalldatetime (4) |  | Date experience met.
date_certified | smalldatetime (4) |  | Date certified.
certification_number | nvarchar (20) | NOT NULL | Certification number.
staff_status_KEY | int (4) | NOT NULL | Key from one of the already set up Staff Status.
office_KEY | int (4) |  | Key from one of the already set up Offices.
supervisor__staff_KEY | int (4) |  | Key of the staff that is this Staff's supervisor.
contact_KEY | int (4) | NOT NULL | Key to the primary Contact record for this Staff.
staff_id_sortable | varchar (48) | NOT NULL | A representation of the staff_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 staff_id.
is_tax_form_preparer | bit (1) | NOT NULL | A flag specifying whether or not the current staff member qualifies to prepare tax forms.
preparer_tax_information_number | nvarchar (18) | NOT NULL | The staff member's preparer tax information number used in place of an SSN on tax forms. A value in this field is optional and does not qualify a staff member to be a tax form preparer. is_tax_form_preparer is used as a qualification as a preparer
third_party_designee_pin | nvarchar (10) | NOT NULL | The staff member's third party designee pin that the staff member selects to sign tax forms. A value in this field designates the staff member as being available as a third party designee.
name_suffix | nvarchar (10) | NOT NULL | Name suffix (Jr, Sr, MD, etc.)
title | nvarchar (40) | NOT NULL | Staff title
staff_type_KEY | int (4) | NOT NULL | Foreign key to the Staff_Type table. Each staff must have a type.
staff_KEY | int (4) | NOT NULL | The name of the primary key column.

Primary key
Name | Columns | Description
PK_Staff | staff_KEY |
Unique constraints
Name | Columns | Description
UK_Staff$contact_KEY | contact_KEY |
UK_Staff$staff_id | staff_id |
UK_Staff$staff_id_sortable | staff_id_sortable |

Foreign keys
Name | Columns | Referenced table | Description
FK_Staff__Contact__contact_KEY | contact_KEY | Contact (contact_KEY) |
FK_Staff__Office__office_KEY | office_KEY | Office (office_KEY) |
FK_Staff__Staff__supervisor__staff_KEY | supervisor__staff_KEY | Staff (staff_KEY) |
FK_Staff__Staff_Status__staff_status_KEY | staff_status_KEY | Staff_Status (staff_status_KEY) |
FK_Staff__Staff_Type__staff_type_KEY | staff_type_KEY | Staff_Type (staff_type_KEY) |

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Staff__Staff__supervisor__staff_KEY | supervisor__staff_KEY | Staff |
FK_Trial_Balance_Split_Screen_Grid_Option__Staff__staff_KEY | staff_KEY | Trial_Balance_Split_Screen_Grid_Option |
FK_Recorded_Event_Notification__Staff__staff_KEY | staff_KEY | Recorded_Event_Notification |
FK_Web_Services_Transmit_Queue__Staff__creation__staff_KEY | creation__staff_KEY | Web_Services_Transmit_Queue |
FK_Csa_Staff_Map_To_Acs_Staff__Staff__staff_KEY | staff_KEY | Csa_Staff_Map_To_Acs_Staff |
FK_Workpaper_List_Column__Staff__staff_KEY | staff_KEY | Workpaper_List_Column |
FK_User_Preference__Staff__staff_KEY | staff_KEY | User_Preference |
FK_Complete_Payroll_Output_Session__Staff__staff_KEY | staff_KEY | Complete_Payroll_Output_Session |
FK_Staff_Security_Group__Staff__staff_KEY | staff_KEY | Staff_Security_Group |
FK_Client_Staff_Intercept_Credentials__Staff__staff_KEY | staff_KEY | Client_Staff_Intercept_Credentials |
FK_Staff_Shortcut__Staff__staff_KEY | staff_KEY | Staff_Shortcut |
FK_Staff_Locator__Staff__staff_KEY | staff_KEY | Staff_Locator |
FK_Print_Job__Staff__staff_KEY | staff_KEY | Print_Job |
FK_Recorded_Event_Object_N_Staff__Staff__staff_KEY | staff_KEY | Recorded_Event_Object_N_Staff |
FK_Staff_Ems_User_Id__Staff__staff_KEY | staff_KEY | Staff_Ems_User_Id |
FK_Check_Print_Run__Staff__staff_KEY | staff_KEY | Check_Print_Run |
FK_Filter_Selection__Staff__staff_KEY | staff_KEY | Filter_Selection |
FK_Magnetic_Media_File__Staff__staff_KEY | staff_KEY | Magnetic_Media_File |
FK_Client_N_Staff__Staff__staff_KEY | staff_KEY | Client_N_Staff |
FK_Staff_Create_Ems_User_Requested__Staff__staff_KEY | staff_KEY | Staff_Create_Ems_User_Requested |
FK_GL_Balancing_Entry__Staff__staff_KEY | staff_KEY | GL_Balancing_Entry |
FK_Active_Filter__Staff__staff_KEY | staff_KEY | Active_Filter |
FK_User_Session__Staff__staff_KEY | staff_KEY | User_Session |
FK_Print_Report_Selection__Staff__staff_KEY | staff_KEY | Print_Report_Selection |
FK_Staff_Default_Report_Option__Staff__staff_KEY | staff_KEY | Staff_Default_Report_Option |
FK_Custom_Portlet__Staff__private__staff_KEY | private__staff_KEY | Custom_Portlet |
FK_Conversion_Wizard_Client_Payroll_Information__Staff__backup_processor__staff_KEY | backup_processor__staff_KEY | Conversion_Wizard_Client_Payroll_Information |
FK_Conversion_Wizard_Client_Payroll_Information__Staff__primary_processor__staff_KEY | primary_processor__staff_KEY | Conversion_Wizard_Client_Payroll_Information |
FK_Login_Ticket__Staff__staff_KEY | staff_KEY | Login_Ticket |
FK_Apply_Customer_Payment_Option__Staff__staff_KEY | staff_KEY | Apply_Customer_Payment_Option |
FK_Import_Template__Staff__staff_KEY | staff_KEY | Import_Template |
FK_Complete_Forms_Output_Session__Staff__staff_KEY | staff_KEY | Complete_Forms_Output_Session |
FK_Custom_Value_Staff__Staff__staff_KEY | staff_KEY | Custom_Value_Staff |
FK_Practice_User__Staff__staff_KEY | staff_KEY | Practice_User |
FK_Client_Access_Notification__Staff__assigned__staff_KEY | assigned__staff_KEY | Client_Access_Notification |
FK_Client_Access_Notification__Staff__client__staff_KEY | client__staff_KEY | Client_Access_Notification |
FK_Ach_File_Header_Record__Staff__staff_KEY | staff_KEY | Ach_File_Header_Record |
FK_Export_User_Preference__Staff__staff_KEY | staff_KEY | Export_User_Preference |
FK_Custom_Value_Client_Staff__Staff__staff_KEY | staff_KEY | Custom_Value_Client_Staff |
FK_Engagement_Binder_N_Staff__Staff__staff_KEY | staff_KEY | Engagement_Binder_N_Staff |
FK_Enter_Transaction_Data_Entry_Session_Element__Staff__staff_KEY | staff_KEY | Enter_Transaction_Data_Entry_Session_Element |
FK_Workpaper__Staff__assigned_to__staff_KEY | assigned_to__staff_KEY | Workpaper |
FK_Workpaper__Staff__locked_by__staff_KEY | locked_by__staff_KEY | Workpaper |
FK_Engagement_Item_Note__Staff__assigned_to__staff_KEY | assigned_to__staff_KEY | Engagement_Item_Note |
FK_Engagement_Item_Note__Staff__created_date__staff_KEY | created_date__staff_KEY | Engagement_Item_Note |
FK_AR_Enter_Invoice_Option__Staff__staff_KEY | staff_KEY | AR_Enter_Invoice_Option |
FK_Journal_Entry_Event__Staff__staff_KEY | staff_KEY | Journal_Entry_Event |
FK_Processing_Note__Staff__created_date__staff_KEY | created_date__staff_KEY | Processing_Note |
FK_Processing_Note__Staff__edited_date__staff_KEY | edited_date__staff_KEY | Processing_Note |
FK_Netclient_File_Log__Staff__creation__staff_KEY | creation__staff_KEY | Netclient_File_Log |
FK_Client_Payroll_Information__Staff__backup_processor__staff_KEY | backup_processor__staff_KEY | Client_Payroll_Information |
FK_Client_Payroll_Information__Staff__primary_processor__staff_KEY | primary_processor__staff_KEY | Client_Payroll_Information |
FK_Client_Payroll_Information__Staff__reviewer__staff_KEY | reviewer__staff_KEY | Client_Payroll_Information |
FK_AR_Customer_Payment_Option__Staff__staff_KEY | staff_KEY | AR_Customer_Payment_Option |
FK_Staff_With_Access_To_Checkbook__Staff__staff_KEY | staff_KEY | Staff_With_Access_To_Checkbook |
FK_Bank_Transaction_Event__Staff__staff_KEY | staff_KEY | Bank_Transaction_Event |
FK_Manage_AP_Payment_Processable_Transaction__Staff__created__staff_KEY | created__staff_KEY | Manage_AP_Payment_Processable_Transaction |
FK_Scheduled_Payroll_Tracking_Detail__Staff__backup_processor__staff_KEY | backup_processor__staff_KEY | Scheduled_Payroll_Tracking_Detail |
FK_Scheduled_Payroll_Tracking_Detail__Staff__primary_processor__staff_KEY | primary_processor__staff_KEY | Scheduled_Payroll_Tracking_Detail |
FK_Payable_Transaction__Staff__created__staff_KEY | created__staff_KEY | Payable_Transaction |