Bookmarks


Description

Candidates’ bookmarks of jobs and companies, and Companies’ bookmarks of candidates.

Columns

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

Primary Key.

createdAt timestamptz 35,6 null

Entry creation date

updatedAt timestamptz 35,6 null

Datetime of last modification to any attribute

UserId uuid 2147483647 null
Users.id Bookmarks_UserId_fkey C

Foreign Key to User Table.

JobId uuid 2147483647 null
Jobs.id Bookmarks_JobId_fkey R

Foreign Key to Job Table.

CompanyId uuid 2147483647 null
Companies.id Bookmarks_CompanyId_fkey R

Foreign Key to Company Table.

note text 2147483647 null

Note regarding bookmark.

CandidateId uuid 2147483647 null
Users.id Bookmarks_CandidateId_fkey C

Candidates that is bookmarked.

ForJobId uuid 2147483647 null
Jobs.id Bookmarks_ForJobId_fkey R

Job that a candidate is being bookmarked by employers for. Foreign Key References Jobs.

Indexes

Constraint Name Type Sort Column(s)
Bookmarks_pkey Primary key Asc id
Bookmarks_CandidateId_idx Performance Asc CandidateId
Bookmarks_CompanyId_idx Performance Asc CompanyId
Bookmarks_ForJobId_idx Performance Asc ForJobId
Bookmarks_JobId_idx Performance Asc JobId
Bookmarks_UserId_CandidateId_ForJobId_key Must be unique Asc/Asc/Asc UserId + CandidateId + ForJobId
Bookmarks_UserId_CompanyId_key Must be unique Asc/Asc UserId + CompanyId
Bookmarks_UserId_idx Performance Asc UserId
Bookmarks_UserId_JobId_key Must be unique Asc/Asc UserId + JobId

Relationships