JobSalaries


Description

Job Salary.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 public.gen_random_uuid()

Primary Key.

JobId uuid 2147483647 null
Jobs.id JobSalaries_JobId_fkey R

Foreign Key to Job Table.

salaryType enum_JobSalaries_salaryType 2147483647 'BASIC'::"enum_JobSalaries_salaryType"

Salary Type ENUM (BASIC, BONUS).

salaryMode enum_JobSalaries_salaryMode 2147483647 'MONTH'::"enum_JobSalaries_salaryMode"

Salary Payment Mode ENUM: (MONTH, YEAR, PROJECT).

minAmount int4 10 null

Lower end of salary range.

maxAmount int4 10 √ null

Higher end of salary range.

createdAt timestamptz 35,6 null

Entry creation date

updatedAt timestamptz 35,6 null

Datetime of last modification to any attribute

CurrencyCode varchar 255 null
Currencies.code JobSalaries_CurrencyCode_fkey N

ISO 4217 currency code that salary is in. Foreign Key References Currencies.

paymentFrequency enum_JobSalaries_paymentFrequency 2147483647 √ null

Payment frequency for BASIC salary type (DAILY, WEEKLY, MONTHLY). Only applicable for HOUR or DAY salary modes.

Indexes

Constraint Name Type Sort Column(s)
JobSalaries_pkey Primary key Asc id
JobSalaries_JobId_idx Performance Asc JobId
JobSalaries_maxAmount_idx Performance Asc maxAmount
JobSalaries_minAmount_idx Performance Asc minAmount

Relationships