Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
Primary Key. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| title | varchar | 255 | null |
|
|
Job Title. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status | enum_Jobs_status | 2147483647 | null |
|
|
Status of the job posting (ie. OPEN, CLOSED). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| varchar | 255 | √ | null |
|
|
File name linking to their resumes in s3 bucket glints-dashboard/job-banner-pic. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | enum_Jobs_type | 2147483647 | null |
|
|
Type of job (ie. FULL_TIME, INTERNSHIP …). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| attachments | jsonb | 2147483647 | '[]'::jsonb |
|
|
File name of attachment files, in s3 glints-dashboard/job-attachment. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| createdAt | timestamptz | 35,6 | null |
|
|
Entry creation date |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| updatedAt | timestamptz | 35,6 | null |
|
|
Datetime of last modification to any attribute |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CreatorId | uuid | 2147483647 | null |
|
|
Id of user who posted the job. Foreign Key References Users Table.. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CompanyId | uuid | 2147483647 | null |
|
|
Foreign Key to Company Table. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| numberOfHires | int4 | 10 | 1 |
|
|
Number of Hires for this job posting. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isPublic | bool | 1 | true |
|
|
Boolean indicating whether a job can be shown on main Glints site. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| JobCategoryId | int4 | 10 | √ | null |
|
|
Foreign Key to JobCategory Table. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isRemote | bool | 1 | false |
|
|
Boolean indicating whether a job is remote. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| descriptionRaw | jsonb | 2147483647 | √ | null |
|
|
Description of the job, in a JSON object format, to work with DraftJS. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CityId | int4 | 10 | √ | null |
|
|
Foreign Key to Cities Table. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CountryCode | varchar | 255 | null |
|
|
Country Code of country that this job is in. Foreign Key Reference Countries. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| expiryDate | date | 13 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| minYearsOfExperience | int4 | 10 | √ | 0 |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| maxYearsOfExperience | int4 | 10 | √ | 50 |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| startDate | date | 13 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| endDate | date | 13 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isCoverLetterMandatory | bool | 1 | √ | false |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| externalApplyURL | varchar | 255 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| closedAt | timestamptz | 35,6 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| acceptsForeignApplications | bool | 1 | false |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CitySubDivisionId | int4 | 10 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isHot | bool | 1 | √ | false |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shouldPublishOnLinkedin | bool | 1 | false |
|
|
Consent given by a company user to post their job on Linkedin. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shouldShowBenefits | bool | 1 | true |
|
|
Consent given by a company user to show job benefits to candidates. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| interviewProcessRaw | jsonb | 2147483647 | √ | null |
|
|
Interview process of the job, in a JSON object format, to work with DraftJS. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shouldShowSalary | bool | 1 | true |
|
|
Boolean indicating if employer wants to show the job salary or not. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HierarchicalJobCategoryId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Hierarchical Job Category Table. Only level 3 hierarchical job category is allowed. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DistrictId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Location Table. Only District level key is allowed. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| educationLevel | enum_EducationLevel_type | 2147483647 | √ | null |
|
|
Education level required for the job |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| EmployerServiceRepId | uuid | 2147483647 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fraudReportFlag | enum_Jobs_fraudReportFlag | 2147483647 | √ | null |
|
|
An identifier for the CR team to know in which stage is the current job in, in terms of the report investigation |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| minAge | int2 | 5 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| maxAge | int2 | 5 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gender | enum_Users_gender | 2147483647 | √ | null |
|
|
Gender preferred for the job |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isLocationRequiredForCandidate | bool | 1 | √ | null |
|
|
Boolean indicating if candidate location is required. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isEducationRequiredForCandidate | bool | 1 | √ | null |
|
|
Boolean indicating if candidate education is required. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| workArrangementOption | enum_public_Jobs_workArrangementOption | 2147483647 | 'ONSITE'::"enum_public_Jobs_workArrangementOption" |
|
|
Work arrangement option for the job |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata | jsonb | 2147483647 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| isResumeRequiredForCandidate | bool | 1 | false |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| screeningQuestionsEnabled | bool | 1 | false |
|
|
Boolean indicates if screening question is enabled or not |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| vipFields | jsonb | 2147483647 | √ | null |
|
|
This field will contains list of VIP fields with the current value set for a job |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| vipCandidateInformation | jsonb | 2147483647 | √ | null |
|
|
Contains a list of candidate information. Only if the job is from a VIP company |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CompanyAddressId | uuid | 2147483647 | √ | null |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Banner Pic | varchar | 50 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| Jobs_pkey | Primary key | Asc | id |
| Jobs_CompanyId_idx | Performance | Asc | CompanyId |
| Jobs_CompanyId_status_fraudReportFlag_idx | Performance | Asc/Asc/Asc | CompanyId + status + fraudReportFlag |
| Jobs_CountryCode_idx | Performance | Asc | CountryCode |
| Jobs_CreatorId_idx | Performance | Asc | CreatorId |
| Jobs_expiryDate_idx | Performance | Asc | expiryDate |
| Jobs_id_CompanyId_idx | Performance | Asc/Asc | id + CompanyId |
| Jobs_status_idx | Performance | Asc | status |
| Jobs_title_idx | Performance | Asc | title |
| Jobs_type_idx | Performance | Asc | type |
| Jobs_updatedAt_idx | Performance | Asc | updatedAt |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| Jobs_minAge_check | (((("minAge" IS NOT NULL) AND ("minAge" >= 0) AND ("minAge" <= 100)) OR ("minAge" IS NULL))) |
| Jobs_maxAge_check | (((("maxAge" IS NOT NULL) AND ("maxAge" >= 0) AND ("maxAge" <= 100)) OR ("maxAge" IS NULL))) |
| Jobs_no_duplicate_job_constraint | (((companies_get_country_code("CompanyId") <> 'VN'::text) OR (status <> 'OPEN'::"enum_Jobs_status") OR jobs_check_duplicate_job(id, (title)::text, "DistrictId", "descriptionRaw"))) NOT VALID |
| Jobs_expiryDate_check | (("expiryDate" <= (now() + '41 days'::interval))) NOT VALID |
| minAge_and_maxAge_check | (((("minAge" IS NOT NULL) AND ("maxAge" IS NOT NULL) AND ("minAge" < "maxAge")) OR ("minAge" IS NULL) OR ("maxAge" IS NULL))) |
| Jobs_closedAt_check | ((((status = 'CLOSED'::"enum_Jobs_status") AND ("closedAt" IS NOT NULL)) OR ((status <> 'CLOSED'::"enum_Jobs_status") AND ("closedAt" IS NULL)))) |
| Jobs_HierarchicalJobCategoryId_not_null_non_closed_Jobs | (((status = 'CLOSED'::"enum_Jobs_status") OR ("HierarchicalJobCategoryId" IS NOT NULL))) |



