Preferences


Description

Job Preferences of User.

Columns

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

Primary Key.

salaryLatest int4 10 null

User previous job salary.

salaryExpectation int4 10 null

Salary Expectation.

internship bool 1 null

isInternship.

fullTime bool 1 null

isFullTime.

partTime bool 1 null

isPartTime.

projectBased bool 1 null

isProjectBased.

UserId uuid 2147483647 null
Users.id Preferences_UserId_fkey C

Foreign Key to User Table.

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 Preferences_CurrencyCode_fkey N

ISO 4217 currency codes. Foreign Key References Currencies..

willingToWorkRemotely bool 1 null
preferredStartDate timestamptz 35,6 null

User preferred start date.

maxSalaryExpectation int4 10 null
daily bool 1 null

Daily represents an opportunity type

contract bool 1 null

Contract represents a contract-based opportunity type

jobTypes jsonb 2147483647 null

JSONB field for job type preferences, used for incremental migration from boolean columns

Indexes

Constraint Name Type Sort Column(s)
Preferences_pkey Primary key Asc id
Preferences_preferredStartDate_idx Performance Asc preferredStartDate
Preferences_UserId_Unique_idx Must be unique Asc UserId

Check Constraints

Constraint Name Constraint
Preferences_maxSalaryExpectation_check (((("salaryExpectation" IS NOT NULL) AND (COALESCE("maxSalaryExpectation", 0) >= COALESCE("salaryExpectation", 0))) OR ("maxSalaryExpectation" IS NULL)))
preferredStartDateCheck (("preferredStartDate" <= '9999-12-31 23:59:59+00'::timestamp with time zone))

Relationships