mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-05 00:38:24 +01:00
* feat(careers): open roles from public job boards, skills and training paths per bottleneck - research/job-boards.json: all 138 directory companies' careers pages and ATS, each checked on the company's own site; 6 on public Greenhouse/Ashby APIs are read daily (ASM, MetOx, Anthropic, OpenAI, xAI, CoreWeave), the rest linked. - research_jobs (scripts/db/011-jobs.sql) + POST /api/cron/jobs: daily fetch, filed under role family, seniority, bottlenecks and skills by published rules. - /careers: filters (bottleneck, family, company, country, seniority, remote), which bottlenecks are hiring most; /careers/[slug] per bottleneck; /careers/paths (O*NET 31.0 + ESCO records, posting skill counts, 56 checked learning paths); /careers/companies; hiring section on company pages. - Desk: follow companies/role families for jobs; new postings are a desk source. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> * feat(careers): chain roles by default, sidebar hiring board, tighter filing rules Software and business postings are filed under bottlenecks by title only (AI labs' boilerplate named foundries and grid interconnection); the board defaults to roles in the chain with a scope switch; the hiring counts sit beside the list; learning paths come before the occupational record. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> * refactor(desk): relative dates in lib/when.ts, job rows loaded in lib/desk-jobs.ts Keeps lib/desk.ts and the desk page under the 300-line ceiling with the job and science sources both on the desk. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> --------- Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
47 lines
1.9 KiB
PL/PgSQL
47 lines
1.9 KiB
PL/PgSQL
BEGIN;
|
|
|
|
-- Open roles at directory companies, read from the public job-board APIs of
|
|
-- the applicant-tracking systems they use (Greenhouse, Lever, Ashby), each
|
|
-- board verified on the company's own careers page (research/job-boards.json).
|
|
-- Only what a posting states and what is derived from it by the published
|
|
-- rules is kept: no description text, no salary unless stated, nothing about
|
|
-- applicants. A posting that disappears from its board is closed, not deleted,
|
|
-- so "new this week" and "open now" can both be answered.
|
|
CREATE TABLE IF NOT EXISTS research_jobs (
|
|
id text PRIMARY KEY,
|
|
company_slug text NOT NULL,
|
|
company text NOT NULL,
|
|
title text NOT NULL,
|
|
location text NOT NULL DEFAULT '',
|
|
countries text[] NOT NULL DEFAULT '{}',
|
|
remote boolean NOT NULL DEFAULT false,
|
|
department text NOT NULL DEFAULT '',
|
|
family text NOT NULL,
|
|
seniority text NOT NULL,
|
|
bottlenecks text[] NOT NULL DEFAULT '{}',
|
|
skills text[] NOT NULL DEFAULT '{}',
|
|
posted_at timestamptz,
|
|
url text NOT NULL,
|
|
first_seen timestamptz NOT NULL DEFAULT now(),
|
|
last_seen timestamptz NOT NULL DEFAULT now(),
|
|
closed_at timestamptz
|
|
);
|
|
CREATE INDEX IF NOT EXISTS research_jobs_open ON research_jobs (closed_at, first_seen DESC);
|
|
CREATE INDEX IF NOT EXISTS research_jobs_company ON research_jobs (company_slug) WHERE closed_at IS NULL;
|
|
CREATE INDEX IF NOT EXISTS research_jobs_bottlenecks ON research_jobs USING gin (bottlenecks);
|
|
|
|
CREATE TABLE IF NOT EXISTS research_job_runs (
|
|
id bigserial PRIMARY KEY,
|
|
started_at timestamptz NOT NULL DEFAULT now(),
|
|
finished_at timestamptz,
|
|
boards integer NOT NULL DEFAULT 0,
|
|
seen integer NOT NULL DEFAULT 0,
|
|
jobs_new integer NOT NULL DEFAULT 0,
|
|
closed integer NOT NULL DEFAULT 0,
|
|
failed integer NOT NULL DEFAULT 0
|
|
);
|
|
|
|
COMMENT ON TABLE research_jobs IS 'Open roles at directory companies from public Greenhouse/Lever/Ashby boards, filed by lib/careers.ts rules.';
|
|
|
|
COMMIT;
|