@adaptware/eagles-db 0.5.15 → 0.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/edge.js +3 -4
- package/client/index.js +3 -4
- package/client/libquery_engine-darwin.dylib.node +0 -0
- package/client/wasm.js +3 -4
- package/package.json +1 -1
- package/prisma/.DS_Store +0 -0
- package/prisma/migrations/20260519120000_migrate_shortlisted_to_selected/migration.sql +2 -0
- package/prisma/schema/.DS_Store +0 -0
- package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +84 -0
- package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +26 -0
- package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +13 -0
- package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +2 -0
- package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +87 -0
- package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +38 -0
- package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +40 -0
- package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +232 -0
- package/prisma/schema/migrations/20260716120000_evaluation_category_four_values/migration.sql +204 -0
- package/prisma/schema/migrations/20260716130000_application_withdrawn_analytics/migration.sql +31 -0
- package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +0 -25
- package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +0 -24
- package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +0 -2
- package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +0 -9
- package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +0 -8
- package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +0 -183
- package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +0 -13
- package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +0 -95
- package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +0 -2
- package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +0 -6
- package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +0 -30
- package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +0 -5
- package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +0 -51
- package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +0 -37
- package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +0 -13
- package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +0 -10
- package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +0 -7
package/client/edge.js
CHANGED
|
@@ -2837,7 +2837,7 @@ const config = {
|
|
|
2837
2837
|
"value": "prisma-client-js"
|
|
2838
2838
|
},
|
|
2839
2839
|
"output": {
|
|
2840
|
-
"value": "/Users/
|
|
2840
|
+
"value": "/Users/aadityanarainsingh/Documents/treadspace/eagles/eagles-db/client",
|
|
2841
2841
|
"fromEnvVar": null
|
|
2842
2842
|
},
|
|
2843
2843
|
"config": {
|
|
@@ -2855,12 +2855,11 @@ const config = {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
],
|
|
2857
2857
|
"previewFeatures": [],
|
|
2858
|
-
"sourceFilePath": "/Users/
|
|
2858
|
+
"sourceFilePath": "/Users/aadityanarainsingh/Documents/treadspace/eagles/eagles-db/prisma/schema/schema.prisma",
|
|
2859
2859
|
"isCustomOutput": true
|
|
2860
2860
|
},
|
|
2861
2861
|
"relativeEnvPaths": {
|
|
2862
|
-
"rootEnvPath": null
|
|
2863
|
-
"schemaEnvPath": "../.env"
|
|
2862
|
+
"rootEnvPath": null
|
|
2864
2863
|
},
|
|
2865
2864
|
"relativePath": "../prisma/schema",
|
|
2866
2865
|
"clientVersion": "6.19.3",
|
package/client/index.js
CHANGED
|
@@ -2838,7 +2838,7 @@ const config = {
|
|
|
2838
2838
|
"value": "prisma-client-js"
|
|
2839
2839
|
},
|
|
2840
2840
|
"output": {
|
|
2841
|
-
"value": "/Users/
|
|
2841
|
+
"value": "/Users/aadityanarainsingh/Documents/treadspace/eagles/eagles-db/client",
|
|
2842
2842
|
"fromEnvVar": null
|
|
2843
2843
|
},
|
|
2844
2844
|
"config": {
|
|
@@ -2856,12 +2856,11 @@ const config = {
|
|
|
2856
2856
|
}
|
|
2857
2857
|
],
|
|
2858
2858
|
"previewFeatures": [],
|
|
2859
|
-
"sourceFilePath": "/Users/
|
|
2859
|
+
"sourceFilePath": "/Users/aadityanarainsingh/Documents/treadspace/eagles/eagles-db/prisma/schema/schema.prisma",
|
|
2860
2860
|
"isCustomOutput": true
|
|
2861
2861
|
},
|
|
2862
2862
|
"relativeEnvPaths": {
|
|
2863
|
-
"rootEnvPath": null
|
|
2864
|
-
"schemaEnvPath": "../.env"
|
|
2863
|
+
"rootEnvPath": null
|
|
2865
2864
|
},
|
|
2866
2865
|
"relativePath": "../prisma/schema",
|
|
2867
2866
|
"clientVersion": "6.19.3",
|
|
Binary file
|
package/client/wasm.js
CHANGED
|
@@ -2837,7 +2837,7 @@ const config = {
|
|
|
2837
2837
|
"value": "prisma-client-js"
|
|
2838
2838
|
},
|
|
2839
2839
|
"output": {
|
|
2840
|
-
"value": "/Users/
|
|
2840
|
+
"value": "/Users/aadityanarainsingh/Documents/treadspace/eagles/eagles-db/client",
|
|
2841
2841
|
"fromEnvVar": null
|
|
2842
2842
|
},
|
|
2843
2843
|
"config": {
|
|
@@ -2855,12 +2855,11 @@ const config = {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
],
|
|
2857
2857
|
"previewFeatures": [],
|
|
2858
|
-
"sourceFilePath": "/Users/
|
|
2858
|
+
"sourceFilePath": "/Users/aadityanarainsingh/Documents/treadspace/eagles/eagles-db/prisma/schema/schema.prisma",
|
|
2859
2859
|
"isCustomOutput": true
|
|
2860
2860
|
},
|
|
2861
2861
|
"relativeEnvPaths": {
|
|
2862
|
-
"rootEnvPath": null
|
|
2863
|
-
"schemaEnvPath": "../.env"
|
|
2862
|
+
"rootEnvPath": null
|
|
2864
2863
|
},
|
|
2865
2864
|
"relativePath": "../prisma/schema",
|
|
2866
2865
|
"clientVersion": "6.19.3",
|
package/package.json
CHANGED
package/prisma/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
-- CreateSchema
|
|
2
|
+
CREATE SCHEMA IF NOT EXISTS "analytics";
|
|
3
|
+
|
|
4
|
+
-- CreateEnum
|
|
5
|
+
CREATE TYPE "analytics"."RoundResult" AS ENUM ('PASSED', 'FAILED');
|
|
6
|
+
|
|
7
|
+
-- CreateTable
|
|
8
|
+
CREATE TABLE "analytics"."round_analytics" (
|
|
9
|
+
"id" TEXT NOT NULL,
|
|
10
|
+
"organisation_id" TEXT NOT NULL,
|
|
11
|
+
"application_id" TEXT NOT NULL,
|
|
12
|
+
"candidate_id" TEXT NOT NULL,
|
|
13
|
+
"job_description_id" TEXT NOT NULL,
|
|
14
|
+
"evaluation_plan_id" TEXT NOT NULL,
|
|
15
|
+
"round_id" TEXT NOT NULL,
|
|
16
|
+
"round_name" TEXT,
|
|
17
|
+
"evaluation_category" "EvaluationCategory",
|
|
18
|
+
"round_type" "RoundType",
|
|
19
|
+
"assigned_at" TIMESTAMP(3),
|
|
20
|
+
"interview_created_at" TIMESTAMP(3),
|
|
21
|
+
"interview_scheduled_at" TIMESTAMP(3),
|
|
22
|
+
"interview_started_at" TIMESTAMP(3),
|
|
23
|
+
"interview_completed_at" TIMESTAMP(3),
|
|
24
|
+
"interview_evaluated_at" TIMESTAMP(3),
|
|
25
|
+
"round_completed_at" TIMESTAMP(3),
|
|
26
|
+
"round_result" "analytics"."RoundResult",
|
|
27
|
+
"round_result_at" TIMESTAMP(3),
|
|
28
|
+
"scheduling_duration_minutes" INTEGER,
|
|
29
|
+
"interview_duration_minutes" INTEGER,
|
|
30
|
+
"feedback_duration_minutes" INTEGER,
|
|
31
|
+
"decision_duration_minutes" INTEGER,
|
|
32
|
+
"total_round_duration_minutes" INTEGER,
|
|
33
|
+
"is_custom" BOOLEAN NOT NULL DEFAULT false,
|
|
34
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
35
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
36
|
+
|
|
37
|
+
CONSTRAINT "round_analytics_pkey" PRIMARY KEY ("id")
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
-- CreateTable
|
|
41
|
+
CREATE TABLE "analytics"."job_round_analytics" (
|
|
42
|
+
"id" TEXT NOT NULL,
|
|
43
|
+
"organisation_id" TEXT NOT NULL,
|
|
44
|
+
"job_description_id" TEXT NOT NULL,
|
|
45
|
+
"evaluation_plan_id" TEXT NOT NULL,
|
|
46
|
+
"round_name" TEXT NOT NULL,
|
|
47
|
+
"evaluation_category" "EvaluationCategory",
|
|
48
|
+
"is_custom" BOOLEAN NOT NULL DEFAULT false,
|
|
49
|
+
"assigned_count" INTEGER NOT NULL DEFAULT 0,
|
|
50
|
+
"completed_count" INTEGER NOT NULL DEFAULT 0,
|
|
51
|
+
"passed_count" INTEGER NOT NULL DEFAULT 0,
|
|
52
|
+
"failed_count" INTEGER NOT NULL DEFAULT 0,
|
|
53
|
+
"withdrawn_count" INTEGER NOT NULL DEFAULT 0,
|
|
54
|
+
"no_show_count" INTEGER NOT NULL DEFAULT 0,
|
|
55
|
+
"total_completion_minutes" BIGINT NOT NULL DEFAULT 0,
|
|
56
|
+
"avg_completion_minutes" DOUBLE PRECISION,
|
|
57
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
58
|
+
|
|
59
|
+
CONSTRAINT "job_round_analytics_pkey" PRIMARY KEY ("id")
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
-- CreateIndex
|
|
63
|
+
CREATE UNIQUE INDEX "round_analytics_round_id_key" ON "analytics"."round_analytics"("round_id");
|
|
64
|
+
|
|
65
|
+
-- CreateIndex
|
|
66
|
+
CREATE INDEX "round_analytics_organisation_id_idx" ON "analytics"."round_analytics"("organisation_id");
|
|
67
|
+
|
|
68
|
+
-- CreateIndex
|
|
69
|
+
CREATE INDEX "round_analytics_job_description_id_idx" ON "analytics"."round_analytics"("job_description_id");
|
|
70
|
+
|
|
71
|
+
-- CreateIndex
|
|
72
|
+
CREATE INDEX "round_analytics_application_id_idx" ON "analytics"."round_analytics"("application_id");
|
|
73
|
+
|
|
74
|
+
-- CreateIndex
|
|
75
|
+
CREATE INDEX "round_analytics_candidate_id_idx" ON "analytics"."round_analytics"("candidate_id");
|
|
76
|
+
|
|
77
|
+
-- CreateIndex
|
|
78
|
+
CREATE INDEX "round_analytics_evaluation_category_idx" ON "analytics"."round_analytics"("evaluation_category");
|
|
79
|
+
|
|
80
|
+
-- CreateIndex
|
|
81
|
+
CREATE INDEX "round_analytics_round_result_idx" ON "analytics"."round_analytics"("round_result");
|
|
82
|
+
|
|
83
|
+
-- CreateIndex
|
|
84
|
+
CREATE UNIQUE INDEX "job_round_analytics_job_description_id_evaluation_plan_id_key" ON "analytics"."job_round_analytics"("job_description_id", "evaluation_plan_id");
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "analytics"."interviewer_analytics" (
|
|
3
|
+
"id" TEXT NOT NULL,
|
|
4
|
+
"organisation_id" TEXT NOT NULL,
|
|
5
|
+
"user_id" TEXT NOT NULL,
|
|
6
|
+
"name" TEXT,
|
|
7
|
+
"employee_id" TEXT,
|
|
8
|
+
"interview_count" INTEGER NOT NULL DEFAULT 0,
|
|
9
|
+
"accepted_count" INTEGER NOT NULL DEFAULT 0,
|
|
10
|
+
"rejected_count" INTEGER NOT NULL DEFAULT 0,
|
|
11
|
+
"unsure_count" INTEGER NOT NULL DEFAULT 0,
|
|
12
|
+
"ai_disagreement_count" INTEGER NOT NULL DEFAULT 0,
|
|
13
|
+
"ai_disagreement_percent" DOUBLE PRECISION,
|
|
14
|
+
"avg_difficulty" DOUBLE PRECISION,
|
|
15
|
+
"avg_supportiveness" DOUBLE PRECISION,
|
|
16
|
+
"avg_topics_coverage_percent" DOUBLE PRECISION,
|
|
17
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
18
|
+
|
|
19
|
+
CONSTRAINT "interviewer_analytics_pkey" PRIMARY KEY ("id")
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
-- CreateIndex
|
|
23
|
+
CREATE UNIQUE INDEX "interviewer_analytics_organisation_id_user_id_key" ON "analytics"."interviewer_analytics"("organisation_id", "user_id");
|
|
24
|
+
|
|
25
|
+
-- CreateIndex
|
|
26
|
+
CREATE INDEX "interviewer_analytics_organisation_id_idx" ON "analytics"."interviewer_analytics"("organisation_id");
|
package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- AlterEnum
|
|
2
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_INVITED';
|
|
3
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_INVITATION_RESENT';
|
|
4
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_CREATED';
|
|
5
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_INVITATION_ACCEPTED';
|
|
6
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_INVITATION_EXPIRED';
|
|
7
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_DEACTIVATED';
|
|
8
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_REACTIVATED';
|
|
9
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_ROLE_CHANGED';
|
|
10
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'USER_PROFILE_COMPLETED';
|
|
11
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'CANDIDATE_REGISTERED';
|
|
12
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'CANDIDATE_CREATED';
|
|
13
|
+
ALTER TYPE "public"."ActivityEventType" ADD VALUE 'CANDIDATE_PROFILE_COMPLETED';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "employee_number" INTEGER;
|
|
2
|
+
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "employee_code" TEXT;
|
|
3
|
+
|
|
4
|
+
CREATE UNIQUE INDEX IF NOT EXISTS "User_employee_code_key" ON "User"("employee_code");
|
|
5
|
+
CREATE INDEX IF NOT EXISTS "User_organisation_id_employee_number_idx" ON "User"("organisation_id", "employee_number");
|
|
6
|
+
|
|
7
|
+
DROP TABLE IF EXISTS "analytics"."interviewer_analytics";
|
|
8
|
+
|
|
9
|
+
CREATE TABLE "analytics"."interviewer_organisation_analytics" (
|
|
10
|
+
"id" TEXT NOT NULL,
|
|
11
|
+
"organisation_id" TEXT NOT NULL,
|
|
12
|
+
"user_id" TEXT NOT NULL,
|
|
13
|
+
"name" TEXT,
|
|
14
|
+
"employee_id" TEXT,
|
|
15
|
+
"interview_count" INTEGER NOT NULL DEFAULT 0,
|
|
16
|
+
"accepted_count" INTEGER NOT NULL DEFAULT 0,
|
|
17
|
+
"rejected_count" INTEGER NOT NULL DEFAULT 0,
|
|
18
|
+
"unsure_count" INTEGER NOT NULL DEFAULT 0,
|
|
19
|
+
"ai_disagreement_count" INTEGER NOT NULL DEFAULT 0,
|
|
20
|
+
"ai_disagreement_percent" DOUBLE PRECISION,
|
|
21
|
+
"avg_difficulty" DOUBLE PRECISION,
|
|
22
|
+
"avg_supportiveness" DOUBLE PRECISION,
|
|
23
|
+
"avg_topics_coverage_percent" DOUBLE PRECISION,
|
|
24
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
25
|
+
|
|
26
|
+
CONSTRAINT "interviewer_organisation_analytics_pkey" PRIMARY KEY ("id")
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
CREATE UNIQUE INDEX "interviewer_organisation_analytics_organisation_id_user_id_key"
|
|
30
|
+
ON "analytics"."interviewer_organisation_analytics"("organisation_id", "user_id");
|
|
31
|
+
CREATE INDEX "interviewer_organisation_analytics_organisation_id_idx"
|
|
32
|
+
ON "analytics"."interviewer_organisation_analytics"("organisation_id");
|
|
33
|
+
CREATE INDEX "interviewer_organisation_analytics_organisation_id_user_id_idx"
|
|
34
|
+
ON "analytics"."interviewer_organisation_analytics"("organisation_id", "user_id");
|
|
35
|
+
|
|
36
|
+
CREATE TABLE "analytics"."interviewer_job_analytics" (
|
|
37
|
+
"id" TEXT NOT NULL,
|
|
38
|
+
"organisation_id" TEXT NOT NULL,
|
|
39
|
+
"user_id" TEXT NOT NULL,
|
|
40
|
+
"job_description_id" TEXT NOT NULL,
|
|
41
|
+
"hiring_manager_id" TEXT,
|
|
42
|
+
"department" TEXT,
|
|
43
|
+
"location" TEXT,
|
|
44
|
+
"role_title" TEXT,
|
|
45
|
+
"job_code" TEXT,
|
|
46
|
+
"opened_at" TIMESTAMP(3),
|
|
47
|
+
"name" TEXT,
|
|
48
|
+
"employee_id" TEXT,
|
|
49
|
+
"interview_count" INTEGER NOT NULL DEFAULT 0,
|
|
50
|
+
"accepted_count" INTEGER NOT NULL DEFAULT 0,
|
|
51
|
+
"rejected_count" INTEGER NOT NULL DEFAULT 0,
|
|
52
|
+
"unsure_count" INTEGER NOT NULL DEFAULT 0,
|
|
53
|
+
"ai_disagreement_count" INTEGER NOT NULL DEFAULT 0,
|
|
54
|
+
"ai_disagreement_percent" DOUBLE PRECISION,
|
|
55
|
+
"avg_difficulty" DOUBLE PRECISION,
|
|
56
|
+
"avg_supportiveness" DOUBLE PRECISION,
|
|
57
|
+
"avg_topics_coverage_percent" DOUBLE PRECISION,
|
|
58
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
59
|
+
|
|
60
|
+
CONSTRAINT "interviewer_job_analytics_pkey" PRIMARY KEY ("id")
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
CREATE UNIQUE INDEX "interviewer_job_analytics_organisation_id_user_id_job_descri_key"
|
|
64
|
+
ON "analytics"."interviewer_job_analytics"("organisation_id", "user_id", "job_description_id");
|
|
65
|
+
CREATE INDEX "interviewer_job_analytics_organisation_id_job_description_id_idx"
|
|
66
|
+
ON "analytics"."interviewer_job_analytics"("organisation_id", "job_description_id");
|
|
67
|
+
CREATE INDEX "interviewer_job_analytics_organisation_id_hiring_manager_id_idx"
|
|
68
|
+
ON "analytics"."interviewer_job_analytics"("organisation_id", "hiring_manager_id");
|
|
69
|
+
CREATE INDEX "interviewer_job_analytics_organisation_id_department_idx"
|
|
70
|
+
ON "analytics"."interviewer_job_analytics"("organisation_id", "department");
|
|
71
|
+
CREATE INDEX "interviewer_job_analytics_organisation_id_location_idx"
|
|
72
|
+
ON "analytics"."interviewer_job_analytics"("organisation_id", "location");
|
|
73
|
+
CREATE INDEX "interviewer_job_analytics_organisation_id_user_id_idx"
|
|
74
|
+
ON "analytics"."interviewer_job_analytics"("organisation_id", "user_id");
|
|
75
|
+
|
|
76
|
+
CREATE INDEX IF NOT EXISTS "job_round_analytics_organisation_id_idx"
|
|
77
|
+
ON "analytics"."job_round_analytics"("organisation_id");
|
|
78
|
+
CREATE INDEX IF NOT EXISTS "job_round_analytics_organisation_id_hiring_manager_id_idx"
|
|
79
|
+
ON "analytics"."job_round_analytics"("organisation_id", "hiring_manager_id");
|
|
80
|
+
CREATE INDEX IF NOT EXISTS "job_round_analytics_job_description_id_idx"
|
|
81
|
+
ON "analytics"."job_round_analytics"("job_description_id");
|
|
82
|
+
|
|
83
|
+
CREATE INDEX IF NOT EXISTS "pipeline_distribution_analytics_job_description_id_idx"
|
|
84
|
+
ON "analytics"."pipeline_distribution_analytics"("job_description_id");
|
|
85
|
+
|
|
86
|
+
CREATE INDEX IF NOT EXISTS "open_job_analytics_job_description_id_idx"
|
|
87
|
+
ON "analytics"."open_job_analytics"("job_description_id");
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
-- CreateEnum
|
|
2
|
+
CREATE TYPE "public"."SourceCategory" AS ENUM ('JOB_BOARD', 'REFERRAL', 'AGENCY', 'SOCIAL_MEDIA', 'CAREERS_PAGE', 'EVENT', 'OTHER');
|
|
3
|
+
|
|
4
|
+
-- CreateTable
|
|
5
|
+
CREATE TABLE "public"."Source" (
|
|
6
|
+
"id" TEXT NOT NULL,
|
|
7
|
+
"organisation_id" TEXT NOT NULL,
|
|
8
|
+
"name" TEXT NOT NULL,
|
|
9
|
+
"category" "public"."SourceCategory",
|
|
10
|
+
"parent_source_id" TEXT,
|
|
11
|
+
"colour" TEXT,
|
|
12
|
+
"description" TEXT,
|
|
13
|
+
"is_active" BOOLEAN NOT NULL DEFAULT true,
|
|
14
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
15
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
16
|
+
|
|
17
|
+
CONSTRAINT "Source_pkey" PRIMARY KEY ("id")
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
-- CreateIndex
|
|
21
|
+
CREATE UNIQUE INDEX "Source_organisation_id_name_key" ON "public"."Source"("organisation_id", "name");
|
|
22
|
+
CREATE INDEX "Source_organisation_id_idx" ON "public"."Source"("organisation_id");
|
|
23
|
+
CREATE INDEX "Source_organisation_id_category_idx" ON "public"."Source"("organisation_id", "category");
|
|
24
|
+
CREATE INDEX "Source_organisation_id_is_active_idx" ON "public"."Source"("organisation_id", "is_active");
|
|
25
|
+
CREATE INDEX "Source_parent_source_id_idx" ON "public"."Source"("parent_source_id");
|
|
26
|
+
|
|
27
|
+
-- AddForeignKey
|
|
28
|
+
ALTER TABLE "public"."Source" ADD CONSTRAINT "Source_organisation_id_fkey" FOREIGN KEY ("organisation_id") REFERENCES "public"."Organisation"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
29
|
+
ALTER TABLE "public"."Source" ADD CONSTRAINT "Source_parent_source_id_fkey" FOREIGN KEY ("parent_source_id") REFERENCES "public"."Source"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
30
|
+
|
|
31
|
+
-- AlterTable
|
|
32
|
+
ALTER TABLE "public"."Application" ADD COLUMN "source_id" TEXT;
|
|
33
|
+
|
|
34
|
+
-- CreateIndex
|
|
35
|
+
CREATE INDEX "Application_source_id_idx" ON "public"."Application"("source_id");
|
|
36
|
+
|
|
37
|
+
-- AddForeignKey
|
|
38
|
+
ALTER TABLE "public"."Application" ADD CONSTRAINT "Application_source_id_fkey" FOREIGN KEY ("source_id") REFERENCES "public"."Source"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
CREATE TABLE "analytics"."source_effectiveness_analytics" (
|
|
2
|
+
"id" TEXT NOT NULL,
|
|
3
|
+
"organisation_id" TEXT NOT NULL,
|
|
4
|
+
"job_description_id" TEXT NOT NULL,
|
|
5
|
+
"source_id" TEXT NOT NULL,
|
|
6
|
+
"source_name" TEXT NOT NULL,
|
|
7
|
+
"source_category" "public"."SourceCategory",
|
|
8
|
+
"source_colour" TEXT,
|
|
9
|
+
"job_code" TEXT,
|
|
10
|
+
"job_number" INTEGER,
|
|
11
|
+
"role_title" TEXT,
|
|
12
|
+
"hiring_manager_id" TEXT,
|
|
13
|
+
"applications_count" INTEGER NOT NULL DEFAULT 0,
|
|
14
|
+
"screened_count" INTEGER NOT NULL DEFAULT 0,
|
|
15
|
+
"evaluated_count" INTEGER NOT NULL DEFAULT 0,
|
|
16
|
+
"rejected_count" INTEGER NOT NULL DEFAULT 0,
|
|
17
|
+
"shortlisted_count" INTEGER NOT NULL DEFAULT 0,
|
|
18
|
+
"offered_count" INTEGER NOT NULL DEFAULT 0,
|
|
19
|
+
"offer_accepted_count" INTEGER NOT NULL DEFAULT 0,
|
|
20
|
+
"offer_declined_count" INTEGER NOT NULL DEFAULT 0,
|
|
21
|
+
"withdrawn_count" INTEGER NOT NULL DEFAULT 0,
|
|
22
|
+
"hired_count" INTEGER NOT NULL DEFAULT 0,
|
|
23
|
+
"total_fit_score" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
|
24
|
+
"fit_score_sample_count" INTEGER NOT NULL DEFAULT 0,
|
|
25
|
+
"average_fit_score" DOUBLE PRECISION,
|
|
26
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
27
|
+
|
|
28
|
+
CONSTRAINT "source_effectiveness_analytics_pkey" PRIMARY KEY ("id")
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
CREATE UNIQUE INDEX "source_effectiveness_analytics_organisation_id_job_descripti_key"
|
|
32
|
+
ON "analytics"."source_effectiveness_analytics"("organisation_id", "job_description_id", "source_id");
|
|
33
|
+
CREATE INDEX "source_effectiveness_analytics_organisation_id_idx"
|
|
34
|
+
ON "analytics"."source_effectiveness_analytics"("organisation_id");
|
|
35
|
+
CREATE INDEX "source_effectiveness_analytics_organisation_id_source_id_idx"
|
|
36
|
+
ON "analytics"."source_effectiveness_analytics"("organisation_id", "source_id");
|
|
37
|
+
CREATE INDEX "source_effectiveness_analytics_organisation_id_hiring_manag_idx"
|
|
38
|
+
ON "analytics"."source_effectiveness_analytics"("organisation_id", "hiring_manager_id");
|
|
39
|
+
CREATE INDEX "source_effectiveness_analytics_job_description_id_idx"
|
|
40
|
+
ON "analytics"."source_effectiveness_analytics"("job_description_id");
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
-- Analytics daily history tables for midnight reporting snapshots.
|
|
2
|
+
|
|
3
|
+
CREATE TABLE "analytics"."round_analytics_daily" (
|
|
4
|
+
"id" TEXT NOT NULL,
|
|
5
|
+
"snapshot_date" DATE NOT NULL,
|
|
6
|
+
"organisation_id" TEXT NOT NULL,
|
|
7
|
+
"application_id" TEXT NOT NULL,
|
|
8
|
+
"candidate_id" TEXT NOT NULL,
|
|
9
|
+
"job_description_id" TEXT NOT NULL,
|
|
10
|
+
"evaluation_plan_id" TEXT NOT NULL,
|
|
11
|
+
"round_id" TEXT NOT NULL,
|
|
12
|
+
"round_name" TEXT,
|
|
13
|
+
"evaluation_category" "EvaluationCategory",
|
|
14
|
+
"round_type" "RoundType",
|
|
15
|
+
"assigned_at" TIMESTAMP(3),
|
|
16
|
+
"scheduled_at" TIMESTAMP(3),
|
|
17
|
+
"started_at" TIMESTAMP(3),
|
|
18
|
+
"completed_at" TIMESTAMP(3),
|
|
19
|
+
"evaluated_at" TIMESTAMP(3),
|
|
20
|
+
"round_completed_at" TIMESTAMP(3),
|
|
21
|
+
"round_created_at" TIMESTAMP(3),
|
|
22
|
+
"round_result" "analytics"."RoundResult",
|
|
23
|
+
"round_result_at" TIMESTAMP(3),
|
|
24
|
+
"scheduling_duration_minutes" INTEGER,
|
|
25
|
+
"round_duration_minutes" INTEGER,
|
|
26
|
+
"feedback_duration_minutes" INTEGER,
|
|
27
|
+
"decision_duration_minutes" INTEGER,
|
|
28
|
+
"total_round_duration_minutes" INTEGER,
|
|
29
|
+
"is_custom" BOOLEAN NOT NULL DEFAULT false,
|
|
30
|
+
|
|
31
|
+
CONSTRAINT "round_analytics_daily_pkey" PRIMARY KEY ("id")
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
CREATE TABLE "analytics"."job_round_analytics_daily" (
|
|
35
|
+
"id" TEXT NOT NULL,
|
|
36
|
+
"snapshot_date" DATE NOT NULL,
|
|
37
|
+
"organisation_id" TEXT NOT NULL,
|
|
38
|
+
"job_description_id" TEXT NOT NULL,
|
|
39
|
+
"evaluation_plan_id" TEXT NOT NULL,
|
|
40
|
+
"round_name" TEXT NOT NULL,
|
|
41
|
+
"evaluation_category" "EvaluationCategory",
|
|
42
|
+
"job_code" TEXT,
|
|
43
|
+
"role_title" TEXT,
|
|
44
|
+
"hiring_manager_id" TEXT,
|
|
45
|
+
"plan_order_no" INTEGER,
|
|
46
|
+
"plan_type" "EvaluationPlanType",
|
|
47
|
+
"is_custom" BOOLEAN NOT NULL DEFAULT false,
|
|
48
|
+
"assigned_count" INTEGER NOT NULL DEFAULT 0,
|
|
49
|
+
"completed_count" INTEGER NOT NULL DEFAULT 0,
|
|
50
|
+
"passed_count" INTEGER NOT NULL DEFAULT 0,
|
|
51
|
+
"failed_count" INTEGER NOT NULL DEFAULT 0,
|
|
52
|
+
"withdrawn_count" INTEGER NOT NULL DEFAULT 0,
|
|
53
|
+
"no_show_count" INTEGER NOT NULL DEFAULT 0,
|
|
54
|
+
"total_completion_minutes" BIGINT NOT NULL DEFAULT 0,
|
|
55
|
+
"avg_completion_minutes" DOUBLE PRECISION,
|
|
56
|
+
|
|
57
|
+
CONSTRAINT "job_round_analytics_daily_pkey" PRIMARY KEY ("id")
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
CREATE TABLE "analytics"."open_job_analytics_daily" (
|
|
61
|
+
"id" TEXT NOT NULL,
|
|
62
|
+
"snapshot_date" DATE NOT NULL,
|
|
63
|
+
"organisation_id" TEXT NOT NULL,
|
|
64
|
+
"job_description_id" TEXT NOT NULL,
|
|
65
|
+
"job_code" TEXT,
|
|
66
|
+
"job_number" INTEGER,
|
|
67
|
+
"role_title" TEXT,
|
|
68
|
+
"department" TEXT,
|
|
69
|
+
"hiring_manager_id" TEXT,
|
|
70
|
+
"hiring_manager_name" TEXT,
|
|
71
|
+
"location" TEXT,
|
|
72
|
+
"compensation" TEXT,
|
|
73
|
+
"vacancies" INTEGER NOT NULL DEFAULT 1,
|
|
74
|
+
"opened_at" TIMESTAMP(3) NOT NULL,
|
|
75
|
+
"target_closing_date" TIMESTAMP(3),
|
|
76
|
+
"closing_date" TIMESTAMP(3),
|
|
77
|
+
"is_open" BOOLEAN NOT NULL DEFAULT true,
|
|
78
|
+
"application_count" INTEGER NOT NULL DEFAULT 0,
|
|
79
|
+
"in_consideration_count" INTEGER NOT NULL DEFAULT 0,
|
|
80
|
+
"shortlisted_count" INTEGER NOT NULL DEFAULT 0,
|
|
81
|
+
|
|
82
|
+
CONSTRAINT "open_job_analytics_daily_pkey" PRIMARY KEY ("id")
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
CREATE TABLE "analytics"."pipeline_distribution_analytics_daily" (
|
|
86
|
+
"id" TEXT NOT NULL,
|
|
87
|
+
"snapshot_date" DATE NOT NULL,
|
|
88
|
+
"organisation_id" TEXT NOT NULL,
|
|
89
|
+
"job_description_id" TEXT NOT NULL,
|
|
90
|
+
"job_code" TEXT,
|
|
91
|
+
"job_number" INTEGER,
|
|
92
|
+
"role_title" TEXT,
|
|
93
|
+
"hiring_manager_id" TEXT,
|
|
94
|
+
"application_count" INTEGER NOT NULL DEFAULT 0,
|
|
95
|
+
"filtered_in_count" INTEGER NOT NULL DEFAULT 0,
|
|
96
|
+
"min_fit_score" DOUBLE PRECISION,
|
|
97
|
+
"experience_screening_count" INTEGER NOT NULL DEFAULT 0,
|
|
98
|
+
"technical_screening_count" INTEGER NOT NULL DEFAULT 0,
|
|
99
|
+
"technical_interview_count" INTEGER NOT NULL DEFAULT 0,
|
|
100
|
+
"business_round_count" INTEGER NOT NULL DEFAULT 0,
|
|
101
|
+
"behavioral_round_count" INTEGER NOT NULL DEFAULT 0,
|
|
102
|
+
"shortlisted_count" INTEGER NOT NULL DEFAULT 0,
|
|
103
|
+
|
|
104
|
+
CONSTRAINT "pipeline_distribution_analytics_daily_pkey" PRIMARY KEY ("id")
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
CREATE TABLE "analytics"."source_effectiveness_analytics_daily" (
|
|
108
|
+
"id" TEXT NOT NULL,
|
|
109
|
+
"snapshot_date" DATE NOT NULL,
|
|
110
|
+
"organisation_id" TEXT NOT NULL,
|
|
111
|
+
"job_description_id" TEXT NOT NULL,
|
|
112
|
+
"source_id" TEXT NOT NULL,
|
|
113
|
+
"source_name" TEXT NOT NULL,
|
|
114
|
+
"source_category" "SourceCategory",
|
|
115
|
+
"source_colour" TEXT,
|
|
116
|
+
"job_code" TEXT,
|
|
117
|
+
"job_number" INTEGER,
|
|
118
|
+
"role_title" TEXT,
|
|
119
|
+
"hiring_manager_id" TEXT,
|
|
120
|
+
"applications_count" INTEGER NOT NULL DEFAULT 0,
|
|
121
|
+
"screened_count" INTEGER NOT NULL DEFAULT 0,
|
|
122
|
+
"evaluated_count" INTEGER NOT NULL DEFAULT 0,
|
|
123
|
+
"rejected_count" INTEGER NOT NULL DEFAULT 0,
|
|
124
|
+
"shortlisted_count" INTEGER NOT NULL DEFAULT 0,
|
|
125
|
+
"offered_count" INTEGER NOT NULL DEFAULT 0,
|
|
126
|
+
"offer_accepted_count" INTEGER NOT NULL DEFAULT 0,
|
|
127
|
+
"offer_declined_count" INTEGER NOT NULL DEFAULT 0,
|
|
128
|
+
"withdrawn_count" INTEGER NOT NULL DEFAULT 0,
|
|
129
|
+
"hired_count" INTEGER NOT NULL DEFAULT 0,
|
|
130
|
+
"total_fit_score" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
|
131
|
+
"fit_score_sample_count" INTEGER NOT NULL DEFAULT 0,
|
|
132
|
+
"average_fit_score" DOUBLE PRECISION,
|
|
133
|
+
|
|
134
|
+
CONSTRAINT "source_effectiveness_analytics_daily_pkey" PRIMARY KEY ("id")
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
CREATE TABLE "analytics"."interviewer_organisation_analytics_daily" (
|
|
138
|
+
"id" TEXT NOT NULL,
|
|
139
|
+
"snapshot_date" DATE NOT NULL,
|
|
140
|
+
"organisation_id" TEXT NOT NULL,
|
|
141
|
+
"user_id" TEXT NOT NULL,
|
|
142
|
+
"name" TEXT,
|
|
143
|
+
"employee_id" TEXT,
|
|
144
|
+
"interview_count" INTEGER NOT NULL DEFAULT 0,
|
|
145
|
+
"accepted_count" INTEGER NOT NULL DEFAULT 0,
|
|
146
|
+
"rejected_count" INTEGER NOT NULL DEFAULT 0,
|
|
147
|
+
"unsure_count" INTEGER NOT NULL DEFAULT 0,
|
|
148
|
+
"ai_disagreement_count" INTEGER NOT NULL DEFAULT 0,
|
|
149
|
+
"ai_disagreement_percent" DOUBLE PRECISION,
|
|
150
|
+
"avg_difficulty" DOUBLE PRECISION,
|
|
151
|
+
"avg_supportiveness" DOUBLE PRECISION,
|
|
152
|
+
"avg_topics_coverage_percent" DOUBLE PRECISION,
|
|
153
|
+
|
|
154
|
+
CONSTRAINT "interviewer_organisation_analytics_daily_pkey" PRIMARY KEY ("id")
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
CREATE TABLE "analytics"."interviewer_job_analytics_daily" (
|
|
158
|
+
"id" TEXT NOT NULL,
|
|
159
|
+
"snapshot_date" DATE NOT NULL,
|
|
160
|
+
"organisation_id" TEXT NOT NULL,
|
|
161
|
+
"user_id" TEXT NOT NULL,
|
|
162
|
+
"job_description_id" TEXT NOT NULL,
|
|
163
|
+
"hiring_manager_id" TEXT,
|
|
164
|
+
"department" TEXT,
|
|
165
|
+
"location" TEXT,
|
|
166
|
+
"role_title" TEXT,
|
|
167
|
+
"job_code" TEXT,
|
|
168
|
+
"opened_at" TIMESTAMP(3),
|
|
169
|
+
"name" TEXT,
|
|
170
|
+
"employee_id" TEXT,
|
|
171
|
+
"interview_count" INTEGER NOT NULL DEFAULT 0,
|
|
172
|
+
"accepted_count" INTEGER NOT NULL DEFAULT 0,
|
|
173
|
+
"rejected_count" INTEGER NOT NULL DEFAULT 0,
|
|
174
|
+
"unsure_count" INTEGER NOT NULL DEFAULT 0,
|
|
175
|
+
"ai_disagreement_count" INTEGER NOT NULL DEFAULT 0,
|
|
176
|
+
"ai_disagreement_percent" DOUBLE PRECISION,
|
|
177
|
+
"avg_difficulty" DOUBLE PRECISION,
|
|
178
|
+
"avg_supportiveness" DOUBLE PRECISION,
|
|
179
|
+
"avg_topics_coverage_percent" DOUBLE PRECISION,
|
|
180
|
+
|
|
181
|
+
CONSTRAINT "interviewer_job_analytics_daily_pkey" PRIMARY KEY ("id")
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
CREATE UNIQUE INDEX "round_analytics_daily_snapshot_date_round_id_key" ON "analytics"."round_analytics_daily"("snapshot_date", "round_id");
|
|
185
|
+
CREATE INDEX "rad_snapshot_date_idx" ON "analytics"."round_analytics_daily"("snapshot_date");
|
|
186
|
+
CREATE INDEX "rad_snapshot_org_idx" ON "analytics"."round_analytics_daily"("snapshot_date", "organisation_id");
|
|
187
|
+
CREATE INDEX "rad_snapshot_job_idx" ON "analytics"."round_analytics_daily"("snapshot_date", "job_description_id");
|
|
188
|
+
CREATE INDEX "rad_snapshot_app_idx" ON "analytics"."round_analytics_daily"("snapshot_date", "application_id");
|
|
189
|
+
CREATE INDEX "rad_snapshot_candidate_idx" ON "analytics"."round_analytics_daily"("snapshot_date", "candidate_id");
|
|
190
|
+
CREATE INDEX "rad_snapshot_eval_cat_idx" ON "analytics"."round_analytics_daily"("snapshot_date", "evaluation_category");
|
|
191
|
+
CREATE INDEX "rad_snapshot_round_result_idx" ON "analytics"."round_analytics_daily"("snapshot_date", "round_result");
|
|
192
|
+
|
|
193
|
+
CREATE UNIQUE INDEX "job_round_analytics_daily_snapshot_date_job_description_id_evaluation_plan_id_key" ON "analytics"."job_round_analytics_daily"("snapshot_date", "job_description_id", "evaluation_plan_id");
|
|
194
|
+
CREATE INDEX "jrad_snapshot_date_idx" ON "analytics"."job_round_analytics_daily"("snapshot_date");
|
|
195
|
+
CREATE INDEX "jrad_snapshot_org_idx" ON "analytics"."job_round_analytics_daily"("snapshot_date", "organisation_id");
|
|
196
|
+
CREATE INDEX "jrad_snapshot_org_hm_idx" ON "analytics"."job_round_analytics_daily"("snapshot_date", "organisation_id", "hiring_manager_id");
|
|
197
|
+
CREATE INDEX "jrad_snapshot_job_idx" ON "analytics"."job_round_analytics_daily"("snapshot_date", "job_description_id");
|
|
198
|
+
|
|
199
|
+
CREATE UNIQUE INDEX "open_job_analytics_daily_snapshot_date_job_description_id_key" ON "analytics"."open_job_analytics_daily"("snapshot_date", "job_description_id");
|
|
200
|
+
CREATE INDEX "ojad_snapshot_date_idx" ON "analytics"."open_job_analytics_daily"("snapshot_date");
|
|
201
|
+
CREATE INDEX "ojad_snapshot_org_open_idx" ON "analytics"."open_job_analytics_daily"("snapshot_date", "organisation_id", "is_open");
|
|
202
|
+
CREATE INDEX "ojad_snapshot_org_hm_idx" ON "analytics"."open_job_analytics_daily"("snapshot_date", "organisation_id", "hiring_manager_id");
|
|
203
|
+
CREATE INDEX "ojad_snapshot_org_opened_idx" ON "analytics"."open_job_analytics_daily"("snapshot_date", "organisation_id", "opened_at");
|
|
204
|
+
CREATE INDEX "ojad_snapshot_org_job_num_idx" ON "analytics"."open_job_analytics_daily"("snapshot_date", "organisation_id", "job_number");
|
|
205
|
+
CREATE INDEX "ojad_snapshot_job_idx" ON "analytics"."open_job_analytics_daily"("snapshot_date", "job_description_id");
|
|
206
|
+
|
|
207
|
+
CREATE UNIQUE INDEX "pipeline_distribution_analytics_daily_snapshot_date_job_description_id_key" ON "analytics"."pipeline_distribution_analytics_daily"("snapshot_date", "job_description_id");
|
|
208
|
+
CREATE INDEX "pdad_snapshot_date_idx" ON "analytics"."pipeline_distribution_analytics_daily"("snapshot_date");
|
|
209
|
+
CREATE INDEX "pdad_snapshot_org_idx" ON "analytics"."pipeline_distribution_analytics_daily"("snapshot_date", "organisation_id");
|
|
210
|
+
CREATE INDEX "pdad_snapshot_org_hm_idx" ON "analytics"."pipeline_distribution_analytics_daily"("snapshot_date", "organisation_id", "hiring_manager_id");
|
|
211
|
+
CREATE INDEX "pdad_snapshot_org_job_num_idx" ON "analytics"."pipeline_distribution_analytics_daily"("snapshot_date", "organisation_id", "job_number");
|
|
212
|
+
CREATE INDEX "pdad_snapshot_job_idx" ON "analytics"."pipeline_distribution_analytics_daily"("snapshot_date", "job_description_id");
|
|
213
|
+
|
|
214
|
+
CREATE UNIQUE INDEX "source_effectiveness_analytics_daily_snapshot_date_organisation_id_job_description_id_source_id_key" ON "analytics"."source_effectiveness_analytics_daily"("snapshot_date", "organisation_id", "job_description_id", "source_id");
|
|
215
|
+
CREATE INDEX "sead_snapshot_date_idx" ON "analytics"."source_effectiveness_analytics_daily"("snapshot_date");
|
|
216
|
+
CREATE INDEX "sead_snapshot_org_idx" ON "analytics"."source_effectiveness_analytics_daily"("snapshot_date", "organisation_id");
|
|
217
|
+
CREATE INDEX "sead_snapshot_org_source_idx" ON "analytics"."source_effectiveness_analytics_daily"("snapshot_date", "organisation_id", "source_id");
|
|
218
|
+
CREATE INDEX "sead_snapshot_org_hm_idx" ON "analytics"."source_effectiveness_analytics_daily"("snapshot_date", "organisation_id", "hiring_manager_id");
|
|
219
|
+
CREATE INDEX "sead_snapshot_job_idx" ON "analytics"."source_effectiveness_analytics_daily"("snapshot_date", "job_description_id");
|
|
220
|
+
|
|
221
|
+
CREATE UNIQUE INDEX "interviewer_organisation_analytics_daily_snapshot_date_organisation_id_user_id_key" ON "analytics"."interviewer_organisation_analytics_daily"("snapshot_date", "organisation_id", "user_id");
|
|
222
|
+
CREATE INDEX "ioad_snapshot_date_idx" ON "analytics"."interviewer_organisation_analytics_daily"("snapshot_date");
|
|
223
|
+
CREATE INDEX "ioad_snapshot_org_idx" ON "analytics"."interviewer_organisation_analytics_daily"("snapshot_date", "organisation_id");
|
|
224
|
+
CREATE INDEX "ioad_snapshot_org_user_idx" ON "analytics"."interviewer_organisation_analytics_daily"("snapshot_date", "organisation_id", "user_id");
|
|
225
|
+
|
|
226
|
+
CREATE UNIQUE INDEX "interviewer_job_analytics_daily_snapshot_date_organisation_id_user_id_job_description_id_key" ON "analytics"."interviewer_job_analytics_daily"("snapshot_date", "organisation_id", "user_id", "job_description_id");
|
|
227
|
+
CREATE INDEX "ijad_snapshot_date_idx" ON "analytics"."interviewer_job_analytics_daily"("snapshot_date");
|
|
228
|
+
CREATE INDEX "ijad_snapshot_org_job_idx" ON "analytics"."interviewer_job_analytics_daily"("snapshot_date", "organisation_id", "job_description_id");
|
|
229
|
+
CREATE INDEX "ijad_snapshot_org_hm_idx" ON "analytics"."interviewer_job_analytics_daily"("snapshot_date", "organisation_id", "hiring_manager_id");
|
|
230
|
+
CREATE INDEX "ijad_snapshot_org_dept_idx" ON "analytics"."interviewer_job_analytics_daily"("snapshot_date", "organisation_id", "department");
|
|
231
|
+
CREATE INDEX "ijad_snapshot_org_loc_idx" ON "analytics"."interviewer_job_analytics_daily"("snapshot_date", "organisation_id", "location");
|
|
232
|
+
CREATE INDEX "ijad_snapshot_org_user_idx" ON "analytics"."interviewer_job_analytics_daily"("snapshot_date", "organisation_id", "user_id");
|