跳到主要内容

Employee Entities

Employee-related entities covering profiles, awards, levels, settings, phone numbers, availability, and recurring expenses.

Employee

The main employee entity, linked 1:1 to a User.

ColumnTypeDescription
idUUIDPrimary key
userIdUUIDFK to user (1:1)
startedWorkOnDate?Employment start date
endWorkDate?Employment end date
payPeriodenum?BI_WEEKLY, MONTHLY, etc.
billRateValuenumber?Billing rate
billRateCurrencystring?Billing currency
reWeeklyLimitnumber?Weekly hour limit
offerDateDate?Offer date
acceptDateDate?Offer acceptance date
rejectDateDate?Offer rejection date
employeeLevelstring?Seniority level
isTrackingEnabledbooleanTime tracking enabled
isActivebooleanCurrently active
short_descriptionstring?Short bio
descriptionstring?Full description
averageIncomenumber?Average income
averageBonusnumber?Average bonus
totalWorkHoursnumber?Total logged hours
averageExpensesnumber?Average expenses
show_anonymous_bonusboolean?Show bonus anonymously
show_average_bonusboolean?Show average bonus
show_average_expensesboolean?Show average expenses
show_average_incomeboolean?Show average income
show_billrateboolean?Show billing rate
show_payperiodboolean?Show pay period
show_start_work_onboolean?Show start date
isOnlineboolean?Currently online
isAwayboolean?Currently away

Key Relations:

RelationTypeTarget
userOneToOneUser
contactManyToOneContact
organizationPositionManyToOneOrganizationPosition
tagsManyToManyTag
skillsManyToManySkill
projectsManyToManyOrganizationProject
teamsManyToManyOrganizationTeam
timeLogsOneToManyTimeLog
awardsOneToManyEmployeeAward

EmployeeAward

ColumnTypeDescription
namestringAward name
yearstringYear awarded
employeeIdUUIDFK to employee

EmployeeLevel

ColumnTypeDescription
levelstringLevel name (e.g., A, B)
tagTag[]Associated tags

EmployeeSetting

ColumnTypeDescription
settingNamestringSetting key
settingValuestringSetting value
employeeIdUUIDFK to employee

EmployeePhone

ColumnTypeDescription
typestringPhone type
phoneNumberstringPhone number
employeeIdUUIDFK to employee

EmployeeAvailability

ColumnTypeDescription
dayOfWeeknumber0 (Sun) - 6 (Sat)
startTimestringHH:mm format
endTimestringHH:mm format
employeeIdUUIDFK to employee

EmployeeRecurringExpense

ColumnTypeDescription
categoryNamestringExpense category
valuenumberAmount
currencystringCurrency code
startDaynumberStart day of month
startMonthnumberStart month
startYearnumberStart year
startDateDateStart date
endDaynumber?End day
endMonthnumber?End month
endYearnumber?End year
employeeIdUUIDFK to employee