AccessUser


Description

Primary user accounts for all healthcare providers, administrators, and staff who access the system. This central table manages authentication, authorization, and core user profile information for therapists, service coordinators, administrators, and other healthcare professionals working within the agencies.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
UserID int identity 4 null
AccessLog.Userid FK__AccessLog__Useri__4D0B430D C
AccessUserCustom.fkUserID FK_AccessUserCustom_AccessUser R
AccessUserPatient.AccessUserID FK_AccessUserPatient_AccessUser C
ActivityHistory.ArchivedBy FK__ActivityH__Archi__78C13EC7 R
AttendanceHistory.fkUserID FK_AttendanceHistory_AccessUser R
AuthorizeTherapist.UserID FK_AuthorizeTherapist_AccessUser C
Categories.CreatedBy FK_Categories_AccessUser R
Categories.UpdatedBy FK_Categories_AccessUser1 R
ClaimServiceRate.UserID FK__ClaimServ__UserI__4AD81681 R
ClaimTransaction.InsertBy FK_UserID R
ClaimTransVoid.VoidBy FK__ClaimTran__VoidB__04872BD7 R
CustomConfig.fkProviderID FK_CustomConfig_AccessUser R
DaycareInvoices.PaysourceID FK_DaycareInvoices_AccessUser R
DaycareTransactions.PaysourceId FK_DaycareTransactions_AccessUser R
DocumentSigns.fkUserID FK_DocumentSigns_AccessUser R
EnrollmentPaysources.fkUserID FK_EnrollmentPaysources_AccessUser R
Goal.CreateBy FK_Goal_AccessUser R
Goal.UpdatedBy FK_Goal_AccessUser1 R
History.ArchivedBy FK__History__Archive__0FF8DE83 R
History_CPTCode.ArchivedBy FK__History_C__Archi__42701B0E R
History_Diagnosis.ArchivedBy FK__History_D__Archi__4B6F7563 R
History_PatientDiagnos.ArchivedBy FK__History_P__Archi__4E4BE20E R
iCommunicateProperties.fkUserID FK_iCommunicatePropertiesID_accessuser R
Invoice.fkInvoiceby FK__INVOICE__fkInvoi__4AB9B19E R
InvoiceTransaction.InsertBy FK_UserID_Inv R
iTemplate.CreatedBy FK_iTemplate_AccessUser R
iTemplate.LockedBy FK_iTemplate_AccessUser2 R
iTemplate.UpdatedBy FK_iTemplate_AccessUser1 R
iTemplateHistory.ArchivedBy FK__iTemplate__Archi__31EF9A82 R
Message.Recipient FK_Message_AccessUser R
Objective.CreatedBy FK_Objective_AccessUser R
Objective.UpdatedBy FK_Objective_AccessUser1 R
PatientEvaluation.Evaluator FK__PatientEv__Evalu__6FE99F9F R
PayrollEmployeeHour.fkUserid FK__PayrollEm__fkUse__3712ABA4 C
PayrollEmployeeRecord.fkUserid FK__PayrollEm__fkUse__3CCB84FA C
PayrollException.fkUserID FK__PayrollEx__fkUse__7A33BA96 C
PayrollInvoice.fkUserID FK__PayrollIn__fkUse__1DB200FD R
raFiles.uploadBy FK_raFiles_AccessUser R
Rate.UserID FK__Rate__UserID__536D5C82 R
RoomsTherapist.userID FK__RoomsTher__userI__666B225D C
ScanEIData.VerBy FK__ScanEIDat__VerBy__46FD63FC R
UserFieldValues.fkUserID FK__UserFieldVal__AccessUser C
UserIDList.userID FK__UserIDLis__userI__34605C2B C
UserInCustomConfig.fkUserID FK__UserInCustomConfig__Accessuser C
UserInDiscipline.userid FK_UserInDiscipline_AccessUser C
UserInGroupClient.UserId FK_UserInGroupClient_AccessUser R
UserInGroups.UserID FK_UserInGroups_AccessUser1 C
UserInLanguage.fkUserID FK__UserInLan__fkUse__42AE7B82 C
UserInRegion.userID FK__UserInReg__userI__2BCB162A C
UserInSite.UserID FK__UserInSit__UserI__14C6E9EA C
UserInSpecialty.userID FK__UserInSpe__userI__2EA782D5 C
UserInSupportLevel.fkUserID FK__UserInSupportLevel__AccessUser C
UserPasswords.fkUserID FK_UserPasswords_AccessUser R
UserPhone.userid FK__UserPhone__useri__6DAD1CC9 C

Primary key - Unique identifier for each user account in the system

SSN nvarchar 40 null

Social Security Number - Encrypted personal identifier for payroll and tax reporting purposes

UserStatus varchar 10 null

Account status - Current status of the user account (Active, Inactive, Suspended, etc.) controlling system access

FirstName varchar 50 null

First name - User’s given name for identification and display purposes

MidName varchar 50 null

Middle name - User’s middle name or initial for complete identification

LastName varchar 50 null

Last name - User’s surname for identification and alphabetical sorting

Title int 4 null

Professional title reference - Links to lookup table for professional titles (Dr., Mr., Ms., etc.)

ContactComments varchar 5000 null

Contact notes - Administrative notes about contacting or working with this user

Sex varchar 10 null

Gender - User’s gender for demographic reporting and appropriate assignment matching

DateHire datetime 16,3 null

Hire date - Date when the user was hired by the agency for employment tracking

DateOfBirth datetime 16,3 null

Birth date - User’s date of birth for age verification and demographic reporting

Email varchar 50 null

Email address - Primary email for system notifications, password resets, and communication

Password varchar 10 null

Login password - Encrypted password for user authentication (legacy field, see UserPasswords table)

AgencyID int 4 null
Agency.AgencyID Company_has_many_users R

Agency affiliation - Links user to iCS2.dbo.Agency for centralized healthcare provider organization management and multi-tenant access control

GroupID int 4 null

User group - Legacy group assignment for role-based permissions (see UserInGroups for current implementation)

employeeid varchar 10 null

Employee identifier - Agency-specific employee ID for payroll and HR integration

dateentered smalldatetime 16 (getdate())

Account creation date - Timestamp when the user account was first created in the system

StreetAddr varchar 50 null

Home address - User’s primary street address for contact and emergency purposes

City varchar 30 null

Home city - City of user’s primary residence

State varchar 30 null

Home state - State/province of user’s primary residence

RateTitle int 4 null

Rate classification - Reference to rate structure for payroll and billing calculations

Zip varchar 10 null

Postal code - ZIP/postal code for user’s primary address

HomeAddr2 varchar 50 null

Address line 2 - Additional address information (apartment, suite, etc.)

AltAddr1 varchar 50 null

Alternate address line 1 - Secondary address for user contact

AltAddr2 varchar 50 null

Alternate address line 2 - Additional information for secondary address

AltCity varchar 30 null

Alternate city - City for secondary address

AltState varchar 30 null

Alternate state - State/province for secondary address

AltZip varchar 10 null

Alternate postal code - ZIP/postal code for secondary address

AgencyStatus varchar 20 null

Employment status - Current employment status with the agency (Active, Terminated, On Leave, etc.)

mailingAddrID int 4 null

Mailing address preference - Indicates which address to use for official mailings

companyID varchar 20 null

Company identifier - External company/organization identifier for integration purposes

userName varchar 50 null

Login username - Unique username for system authentication (may differ from email)

salutation varchar 10 null

Salutation - Preferred salutation for formal communications (Dr., Mr., Ms., etc.)

userTitle varchar 50 null

Job title - User’s professional job title or position within the agency

DateTerminate datetime 16,3 null

Termination date - Date when user’s employment ended (if applicable)

fkUserCategoryID int 4 null
UserCategory.pkUserCategoryID FK__AccessUser__UserCat R

User category - Links to UserCategory table for user classification and permissions

fkUserPayTypeID int 4 null
UserPayType.pkUserPayTypeID FK__AccessUser__UserPayType R

Pay type - Links to UserPayType table for payroll classification (salary, hourly, contract, etc.)

fkUserPayCategory int 4 null
UserPayCategory.pkUserPayCategory FK__AccessUser__UserPayCat R

Pay category - Links to UserPayCategory table for detailed payroll categorization

Siteid int 4 null

Primary site assignment - Links to AgencySite table for user’s primary work location

CreatedBy int 4 null

Created by user - UserID of the administrator who created this account

DateUpdated datetime 16,3 null

Last update date - Timestamp of the most recent profile update

UpdatedBy int 4 null

Updated by user - UserID of the person who last modified this account

Signature varchar 200 null

Digital signature - User’s digital signature for electronic document signing

Supervisor int 4 null

Supervisor reference - UserID of this user’s direct supervisor for approval workflows

SupportLevel int 4 null

Support level - User’s support/supervision level for clinical oversight requirements

fkPayDisciplineID int 4 null

Pay discipline - Links to discipline table for payroll rate determination

NysSupervisor int 4 null

NYS supervisor - UserID of supervisor for New York State regulatory compliance

ImportID int 4 null

Import identifier - Reference ID for data migration and import tracking

BoardOfEducation bit 1 null

Board of Education flag - Indicates if user works with Board of Education programs

StripeInfo nvarchar 1073741823 null

Payment processor data - Encrypted payment processing information for user billing

Occupation nvarchar 500 null

Professional occupation - User’s professional occupation or specialty area

WorkName nvarchar 500 null

Work organization - Name of user’s primary work organization or department

HomePhone nvarchar 50 null

Home phone - User’s home telephone number for emergency contact

WorkPhone nvarchar 50 null

Work phone - User’s work telephone number for business communication

CellPhone nvarchar 50 null

Mobile phone - User’s mobile/cell phone number for urgent contact

OtherPhone nvarchar 50 null

Additional phone - Alternative phone number for user contact

Notes nvarchar 500 null

Administrative notes - General notes about the user for administrative reference

TimeClockPassCode nvarchar 8 null

Time clock code - Secure passcode for time clock system authentication

Location nvarchar 100 null

Work location - User’s primary work location or office designation

ExpiredTimeClock datetime 16,3 null

Time clock expiration - Date when time clock access expires for security

AllowCountLogin int 4 null

Login attempt limit - Maximum number of failed login attempts before account lockout

Token nvarchar 100 null

Authentication token - Secure token for API access and single sign-on integration

IsChat bit 1 ((1))

Chat enabled - Flag indicating whether user has access to internal chat/messaging features

PaylocityID varchar 255 null

Paylocity integration ID - External payroll system identifier for integration

WelcomeEmailSentDate datetime 16,3 null

Welcome email date - Timestamp when welcome email was sent to new user

ReceiveAlertNotifications bit 1 null

Alert notifications - Flag controlling whether user receives system alert notifications

Indexes

Constraint Name Type Sort Column(s)
PK_AccessUser Primary key Asc UserID
IX_AgencyStatus Performance Asc AgencyStatus
IX_CompanyID Performance Asc companyID
IX_Email Performance Asc Email
IX_LastName Performance Asc LastName
IX_Login Performance Asc/Asc UserID + Password
IX_PayTypeCat Performance Asc/Asc/Asc fkUserCategoryID + fkUserPayTypeID + fkUserPayCategory
IX_SiteID Performance Asc Siteid
IX_User_Firstname Performance Asc FirstName
IX_UserName Performance Asc userName
IX_UserStatus Performance Asc UserStatus
IX_UserTitle Performance Asc userTitle

Relationships