curriculum-api 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/dist/admin-LLA7YFBM.js +2367 -0
- package/dist/chunk-2BZOKT6H.js +877 -0
- package/dist/chunk-IM5Z67ZH.js +245 -0
- package/dist/cli.js +120 -0
- package/dist/index.d.ts +151 -0
- package/dist/index.js +2339 -0
- package/drizzle/0000_init.sql +73 -0
- package/drizzle/0001_demonic_winter_soldier.sql +12 -0
- package/drizzle/0002_crazy_lake.sql +1 -0
- package/drizzle/0003_zippy_frank_castle.sql +1 -0
- package/drizzle/0004_woozy_bloodaxe.sql +2 -0
- package/drizzle/0005_little_kronos.sql +8 -0
- package/drizzle/0006_drop_master_cv.sql +3 -0
- package/drizzle/0007_graceful_karma.sql +5 -0
- package/drizzle/meta/0000_snapshot.json +439 -0
- package/drizzle/meta/0001_snapshot.json +543 -0
- package/drizzle/meta/0002_snapshot.json +550 -0
- package/drizzle/meta/0003_snapshot.json +556 -0
- package/drizzle/meta/0004_snapshot.json +549 -0
- package/drizzle/meta/0005_snapshot.json +595 -0
- package/drizzle/meta/0006_snapshot.json +589 -0
- package/drizzle/meta/0007_snapshot.json +621 -0
- package/drizzle/meta/_journal.json +62 -0
- package/package.json +92 -4
- package/README.md +0 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
CREATE SCHEMA IF NOT EXISTS "curriculum_api";
|
|
2
|
+
--> statement-breakpoint
|
|
3
|
+
CREATE TABLE "curriculum_api"."admin_login_attempts" (
|
|
4
|
+
"ip_hash" text NOT NULL,
|
|
5
|
+
"window_start" timestamp with time zone NOT NULL,
|
|
6
|
+
"count" integer DEFAULT 0 NOT NULL,
|
|
7
|
+
CONSTRAINT "admin_login_attempts_ip_hash_window_start_pk" PRIMARY KEY("ip_hash","window_start")
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
CREATE TABLE "curriculum_api"."personal_info" (
|
|
11
|
+
"key" text PRIMARY KEY NOT NULL,
|
|
12
|
+
"label" text NOT NULL,
|
|
13
|
+
"sort_order" integer DEFAULT 0 NOT NULL,
|
|
14
|
+
"value_encrypted" text NOT NULL,
|
|
15
|
+
"visibility" text NOT NULL,
|
|
16
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
17
|
+
CONSTRAINT "personal_info_visibility" CHECK ("curriculum_api"."personal_info"."visibility" in ('public', 'recruiter', 'print'))
|
|
18
|
+
);
|
|
19
|
+
--> statement-breakpoint
|
|
20
|
+
CREATE TABLE "curriculum_api"."profile" (
|
|
21
|
+
"id" integer PRIMARY KEY DEFAULT 1 NOT NULL,
|
|
22
|
+
"full_name" text NOT NULL,
|
|
23
|
+
"headline" text NOT NULL,
|
|
24
|
+
"master_cv" text NOT NULL,
|
|
25
|
+
"public_system_prompt" text NOT NULL,
|
|
26
|
+
"recruiter_system_prompt" text NOT NULL,
|
|
27
|
+
"tailor_system_prompt" text NOT NULL,
|
|
28
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
29
|
+
CONSTRAINT "profile_singleton" CHECK ("curriculum_api"."profile"."id" = 1)
|
|
30
|
+
);
|
|
31
|
+
--> statement-breakpoint
|
|
32
|
+
CREATE TABLE "curriculum_api"."public_usage" (
|
|
33
|
+
"ip_hash" text NOT NULL,
|
|
34
|
+
"day" date NOT NULL,
|
|
35
|
+
"used" integer DEFAULT 0 NOT NULL,
|
|
36
|
+
CONSTRAINT "public_usage_ip_hash_day_pk" PRIMARY KEY("ip_hash","day")
|
|
37
|
+
);
|
|
38
|
+
--> statement-breakpoint
|
|
39
|
+
CREATE TABLE "curriculum_api"."recruiter_chats" (
|
|
40
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
41
|
+
"token" text NOT NULL,
|
|
42
|
+
"recruiter_name" text NOT NULL,
|
|
43
|
+
"company" text,
|
|
44
|
+
"job_description_short" text,
|
|
45
|
+
"tailored_resume_id" uuid,
|
|
46
|
+
"max_questions" integer DEFAULT 10 NOT NULL,
|
|
47
|
+
"used" integer DEFAULT 0 NOT NULL,
|
|
48
|
+
"status" text DEFAULT 'active' NOT NULL,
|
|
49
|
+
"expires_at" timestamp with time zone,
|
|
50
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
51
|
+
"last_used_at" timestamp with time zone,
|
|
52
|
+
CONSTRAINT "recruiter_chats_token_unique" UNIQUE("token"),
|
|
53
|
+
CONSTRAINT "recruiter_chats_status" CHECK ("curriculum_api"."recruiter_chats"."status" in ('active', 'revoked'))
|
|
54
|
+
);
|
|
55
|
+
--> statement-breakpoint
|
|
56
|
+
CREATE TABLE "curriculum_api"."settings" (
|
|
57
|
+
"key" text PRIMARY KEY NOT NULL,
|
|
58
|
+
"value" text NOT NULL
|
|
59
|
+
);
|
|
60
|
+
--> statement-breakpoint
|
|
61
|
+
CREATE TABLE "curriculum_api"."tailored_resumes" (
|
|
62
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
63
|
+
"title" text NOT NULL,
|
|
64
|
+
"company" text,
|
|
65
|
+
"job_description" text NOT NULL,
|
|
66
|
+
"content" text DEFAULT '' NOT NULL,
|
|
67
|
+
"header_fields" text[],
|
|
68
|
+
"model" text,
|
|
69
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
70
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
71
|
+
);
|
|
72
|
+
--> statement-breakpoint
|
|
73
|
+
ALTER TABLE "curriculum_api"."recruiter_chats" ADD CONSTRAINT "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk" FOREIGN KEY ("tailored_resume_id") REFERENCES "curriculum_api"."tailored_resumes"("id") ON DELETE set null ON UPDATE no action;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
CREATE TABLE "curriculum_api"."recruiter_chat_messages" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"chat_id" uuid NOT NULL,
|
|
4
|
+
"seq" bigint GENERATED ALWAYS AS IDENTITY (sequence name "curriculum_api"."recruiter_chat_messages_seq_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 9223372036854775807 START WITH 1 CACHE 1),
|
|
5
|
+
"role" text NOT NULL,
|
|
6
|
+
"content" text NOT NULL,
|
|
7
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
8
|
+
CONSTRAINT "recruiter_chat_messages_role" CHECK ("curriculum_api"."recruiter_chat_messages"."role" in ('user', 'assistant'))
|
|
9
|
+
);
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
ALTER TABLE "curriculum_api"."recruiter_chat_messages" ADD CONSTRAINT "recruiter_chat_messages_chat_id_recruiter_chats_id_fk" FOREIGN KEY ("chat_id") REFERENCES "curriculum_api"."recruiter_chats"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
12
|
+
CREATE INDEX "recruiter_chat_messages_chat_seq" ON "curriculum_api"."recruiter_chat_messages" USING btree ("chat_id","seq");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "curriculum_api"."tailored_resumes" ADD COLUMN "custom_instructions" text DEFAULT '' NOT NULL;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "curriculum_api"."tailored_resumes" ADD COLUMN "structured" jsonb;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
CREATE TABLE "curriculum_api"."career_library" (
|
|
2
|
+
"id" integer PRIMARY KEY DEFAULT 1 NOT NULL,
|
|
3
|
+
"document" jsonb DEFAULT '{"version":1,"items":[]}'::jsonb NOT NULL,
|
|
4
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
5
|
+
CONSTRAINT "career_library_singleton" CHECK ("curriculum_api"."career_library"."id" = 1)
|
|
6
|
+
);
|
|
7
|
+
--> statement-breakpoint
|
|
8
|
+
ALTER TABLE "curriculum_api"."profile" ADD COLUMN "summary" text DEFAULT '' NOT NULL;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
ALTER TABLE "curriculum_api"."tailored_resumes" ADD COLUMN "score" integer;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "curriculum_api"."tailored_resumes" ADD COLUMN "score_rationale" text DEFAULT '' NOT NULL;--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "curriculum_api"."tailored_resumes" ADD COLUMN "missing_skills" text[] DEFAULT '{}'::text[] NOT NULL;--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "curriculum_api"."tailored_resumes" ADD COLUMN "omissions" jsonb DEFAULT '[]'::jsonb NOT NULL;--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "curriculum_api"."tailored_resumes" ADD CONSTRAINT "tailored_resumes_score" CHECK ("curriculum_api"."tailored_resumes"."score" between 0 and 100);
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "3a658c62-a118-4505-bddf-f503d08feac5",
|
|
3
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"curriculum_api.admin_login_attempts": {
|
|
8
|
+
"name": "admin_login_attempts",
|
|
9
|
+
"schema": "curriculum_api",
|
|
10
|
+
"columns": {
|
|
11
|
+
"ip_hash": {
|
|
12
|
+
"name": "ip_hash",
|
|
13
|
+
"type": "text",
|
|
14
|
+
"primaryKey": false,
|
|
15
|
+
"notNull": true
|
|
16
|
+
},
|
|
17
|
+
"window_start": {
|
|
18
|
+
"name": "window_start",
|
|
19
|
+
"type": "timestamp with time zone",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true
|
|
22
|
+
},
|
|
23
|
+
"count": {
|
|
24
|
+
"name": "count",
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"primaryKey": false,
|
|
27
|
+
"notNull": true,
|
|
28
|
+
"default": 0
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"indexes": {},
|
|
32
|
+
"foreignKeys": {},
|
|
33
|
+
"compositePrimaryKeys": {
|
|
34
|
+
"admin_login_attempts_ip_hash_window_start_pk": {
|
|
35
|
+
"name": "admin_login_attempts_ip_hash_window_start_pk",
|
|
36
|
+
"columns": [
|
|
37
|
+
"ip_hash",
|
|
38
|
+
"window_start"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"uniqueConstraints": {},
|
|
43
|
+
"policies": {},
|
|
44
|
+
"checkConstraints": {},
|
|
45
|
+
"isRLSEnabled": false
|
|
46
|
+
},
|
|
47
|
+
"curriculum_api.personal_info": {
|
|
48
|
+
"name": "personal_info",
|
|
49
|
+
"schema": "curriculum_api",
|
|
50
|
+
"columns": {
|
|
51
|
+
"key": {
|
|
52
|
+
"name": "key",
|
|
53
|
+
"type": "text",
|
|
54
|
+
"primaryKey": true,
|
|
55
|
+
"notNull": true
|
|
56
|
+
},
|
|
57
|
+
"label": {
|
|
58
|
+
"name": "label",
|
|
59
|
+
"type": "text",
|
|
60
|
+
"primaryKey": false,
|
|
61
|
+
"notNull": true
|
|
62
|
+
},
|
|
63
|
+
"sort_order": {
|
|
64
|
+
"name": "sort_order",
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"primaryKey": false,
|
|
67
|
+
"notNull": true,
|
|
68
|
+
"default": 0
|
|
69
|
+
},
|
|
70
|
+
"value_encrypted": {
|
|
71
|
+
"name": "value_encrypted",
|
|
72
|
+
"type": "text",
|
|
73
|
+
"primaryKey": false,
|
|
74
|
+
"notNull": true
|
|
75
|
+
},
|
|
76
|
+
"visibility": {
|
|
77
|
+
"name": "visibility",
|
|
78
|
+
"type": "text",
|
|
79
|
+
"primaryKey": false,
|
|
80
|
+
"notNull": true
|
|
81
|
+
},
|
|
82
|
+
"updated_at": {
|
|
83
|
+
"name": "updated_at",
|
|
84
|
+
"type": "timestamp with time zone",
|
|
85
|
+
"primaryKey": false,
|
|
86
|
+
"notNull": true,
|
|
87
|
+
"default": "now()"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"indexes": {},
|
|
91
|
+
"foreignKeys": {},
|
|
92
|
+
"compositePrimaryKeys": {},
|
|
93
|
+
"uniqueConstraints": {},
|
|
94
|
+
"policies": {},
|
|
95
|
+
"checkConstraints": {
|
|
96
|
+
"personal_info_visibility": {
|
|
97
|
+
"name": "personal_info_visibility",
|
|
98
|
+
"value": "\"curriculum_api\".\"personal_info\".\"visibility\" in ('public', 'recruiter', 'print')"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"isRLSEnabled": false
|
|
102
|
+
},
|
|
103
|
+
"curriculum_api.profile": {
|
|
104
|
+
"name": "profile",
|
|
105
|
+
"schema": "curriculum_api",
|
|
106
|
+
"columns": {
|
|
107
|
+
"id": {
|
|
108
|
+
"name": "id",
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"primaryKey": true,
|
|
111
|
+
"notNull": true,
|
|
112
|
+
"default": 1
|
|
113
|
+
},
|
|
114
|
+
"full_name": {
|
|
115
|
+
"name": "full_name",
|
|
116
|
+
"type": "text",
|
|
117
|
+
"primaryKey": false,
|
|
118
|
+
"notNull": true
|
|
119
|
+
},
|
|
120
|
+
"headline": {
|
|
121
|
+
"name": "headline",
|
|
122
|
+
"type": "text",
|
|
123
|
+
"primaryKey": false,
|
|
124
|
+
"notNull": true
|
|
125
|
+
},
|
|
126
|
+
"master_cv": {
|
|
127
|
+
"name": "master_cv",
|
|
128
|
+
"type": "text",
|
|
129
|
+
"primaryKey": false,
|
|
130
|
+
"notNull": true
|
|
131
|
+
},
|
|
132
|
+
"public_system_prompt": {
|
|
133
|
+
"name": "public_system_prompt",
|
|
134
|
+
"type": "text",
|
|
135
|
+
"primaryKey": false,
|
|
136
|
+
"notNull": true
|
|
137
|
+
},
|
|
138
|
+
"recruiter_system_prompt": {
|
|
139
|
+
"name": "recruiter_system_prompt",
|
|
140
|
+
"type": "text",
|
|
141
|
+
"primaryKey": false,
|
|
142
|
+
"notNull": true
|
|
143
|
+
},
|
|
144
|
+
"tailor_system_prompt": {
|
|
145
|
+
"name": "tailor_system_prompt",
|
|
146
|
+
"type": "text",
|
|
147
|
+
"primaryKey": false,
|
|
148
|
+
"notNull": true
|
|
149
|
+
},
|
|
150
|
+
"updated_at": {
|
|
151
|
+
"name": "updated_at",
|
|
152
|
+
"type": "timestamp with time zone",
|
|
153
|
+
"primaryKey": false,
|
|
154
|
+
"notNull": true,
|
|
155
|
+
"default": "now()"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"indexes": {},
|
|
159
|
+
"foreignKeys": {},
|
|
160
|
+
"compositePrimaryKeys": {},
|
|
161
|
+
"uniqueConstraints": {},
|
|
162
|
+
"policies": {},
|
|
163
|
+
"checkConstraints": {
|
|
164
|
+
"profile_singleton": {
|
|
165
|
+
"name": "profile_singleton",
|
|
166
|
+
"value": "\"curriculum_api\".\"profile\".\"id\" = 1"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"isRLSEnabled": false
|
|
170
|
+
},
|
|
171
|
+
"curriculum_api.public_usage": {
|
|
172
|
+
"name": "public_usage",
|
|
173
|
+
"schema": "curriculum_api",
|
|
174
|
+
"columns": {
|
|
175
|
+
"ip_hash": {
|
|
176
|
+
"name": "ip_hash",
|
|
177
|
+
"type": "text",
|
|
178
|
+
"primaryKey": false,
|
|
179
|
+
"notNull": true
|
|
180
|
+
},
|
|
181
|
+
"day": {
|
|
182
|
+
"name": "day",
|
|
183
|
+
"type": "date",
|
|
184
|
+
"primaryKey": false,
|
|
185
|
+
"notNull": true
|
|
186
|
+
},
|
|
187
|
+
"used": {
|
|
188
|
+
"name": "used",
|
|
189
|
+
"type": "integer",
|
|
190
|
+
"primaryKey": false,
|
|
191
|
+
"notNull": true,
|
|
192
|
+
"default": 0
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"indexes": {},
|
|
196
|
+
"foreignKeys": {},
|
|
197
|
+
"compositePrimaryKeys": {
|
|
198
|
+
"public_usage_ip_hash_day_pk": {
|
|
199
|
+
"name": "public_usage_ip_hash_day_pk",
|
|
200
|
+
"columns": [
|
|
201
|
+
"ip_hash",
|
|
202
|
+
"day"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"uniqueConstraints": {},
|
|
207
|
+
"policies": {},
|
|
208
|
+
"checkConstraints": {},
|
|
209
|
+
"isRLSEnabled": false
|
|
210
|
+
},
|
|
211
|
+
"curriculum_api.recruiter_chats": {
|
|
212
|
+
"name": "recruiter_chats",
|
|
213
|
+
"schema": "curriculum_api",
|
|
214
|
+
"columns": {
|
|
215
|
+
"id": {
|
|
216
|
+
"name": "id",
|
|
217
|
+
"type": "uuid",
|
|
218
|
+
"primaryKey": true,
|
|
219
|
+
"notNull": true,
|
|
220
|
+
"default": "gen_random_uuid()"
|
|
221
|
+
},
|
|
222
|
+
"token": {
|
|
223
|
+
"name": "token",
|
|
224
|
+
"type": "text",
|
|
225
|
+
"primaryKey": false,
|
|
226
|
+
"notNull": true
|
|
227
|
+
},
|
|
228
|
+
"recruiter_name": {
|
|
229
|
+
"name": "recruiter_name",
|
|
230
|
+
"type": "text",
|
|
231
|
+
"primaryKey": false,
|
|
232
|
+
"notNull": true
|
|
233
|
+
},
|
|
234
|
+
"company": {
|
|
235
|
+
"name": "company",
|
|
236
|
+
"type": "text",
|
|
237
|
+
"primaryKey": false,
|
|
238
|
+
"notNull": false
|
|
239
|
+
},
|
|
240
|
+
"job_description_short": {
|
|
241
|
+
"name": "job_description_short",
|
|
242
|
+
"type": "text",
|
|
243
|
+
"primaryKey": false,
|
|
244
|
+
"notNull": false
|
|
245
|
+
},
|
|
246
|
+
"tailored_resume_id": {
|
|
247
|
+
"name": "tailored_resume_id",
|
|
248
|
+
"type": "uuid",
|
|
249
|
+
"primaryKey": false,
|
|
250
|
+
"notNull": false
|
|
251
|
+
},
|
|
252
|
+
"max_questions": {
|
|
253
|
+
"name": "max_questions",
|
|
254
|
+
"type": "integer",
|
|
255
|
+
"primaryKey": false,
|
|
256
|
+
"notNull": true,
|
|
257
|
+
"default": 10
|
|
258
|
+
},
|
|
259
|
+
"used": {
|
|
260
|
+
"name": "used",
|
|
261
|
+
"type": "integer",
|
|
262
|
+
"primaryKey": false,
|
|
263
|
+
"notNull": true,
|
|
264
|
+
"default": 0
|
|
265
|
+
},
|
|
266
|
+
"status": {
|
|
267
|
+
"name": "status",
|
|
268
|
+
"type": "text",
|
|
269
|
+
"primaryKey": false,
|
|
270
|
+
"notNull": true,
|
|
271
|
+
"default": "'active'"
|
|
272
|
+
},
|
|
273
|
+
"expires_at": {
|
|
274
|
+
"name": "expires_at",
|
|
275
|
+
"type": "timestamp with time zone",
|
|
276
|
+
"primaryKey": false,
|
|
277
|
+
"notNull": false
|
|
278
|
+
},
|
|
279
|
+
"created_at": {
|
|
280
|
+
"name": "created_at",
|
|
281
|
+
"type": "timestamp with time zone",
|
|
282
|
+
"primaryKey": false,
|
|
283
|
+
"notNull": true,
|
|
284
|
+
"default": "now()"
|
|
285
|
+
},
|
|
286
|
+
"last_used_at": {
|
|
287
|
+
"name": "last_used_at",
|
|
288
|
+
"type": "timestamp with time zone",
|
|
289
|
+
"primaryKey": false,
|
|
290
|
+
"notNull": false
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"indexes": {},
|
|
294
|
+
"foreignKeys": {
|
|
295
|
+
"recruiter_chats_tailored_resume_id_tailored_resumes_id_fk": {
|
|
296
|
+
"name": "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk",
|
|
297
|
+
"tableFrom": "recruiter_chats",
|
|
298
|
+
"tableTo": "tailored_resumes",
|
|
299
|
+
"schemaTo": "curriculum_api",
|
|
300
|
+
"columnsFrom": [
|
|
301
|
+
"tailored_resume_id"
|
|
302
|
+
],
|
|
303
|
+
"columnsTo": [
|
|
304
|
+
"id"
|
|
305
|
+
],
|
|
306
|
+
"onDelete": "set null",
|
|
307
|
+
"onUpdate": "no action"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"compositePrimaryKeys": {},
|
|
311
|
+
"uniqueConstraints": {
|
|
312
|
+
"recruiter_chats_token_unique": {
|
|
313
|
+
"name": "recruiter_chats_token_unique",
|
|
314
|
+
"nullsNotDistinct": false,
|
|
315
|
+
"columns": [
|
|
316
|
+
"token"
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"policies": {},
|
|
321
|
+
"checkConstraints": {
|
|
322
|
+
"recruiter_chats_status": {
|
|
323
|
+
"name": "recruiter_chats_status",
|
|
324
|
+
"value": "\"curriculum_api\".\"recruiter_chats\".\"status\" in ('active', 'revoked')"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"isRLSEnabled": false
|
|
328
|
+
},
|
|
329
|
+
"curriculum_api.settings": {
|
|
330
|
+
"name": "settings",
|
|
331
|
+
"schema": "curriculum_api",
|
|
332
|
+
"columns": {
|
|
333
|
+
"key": {
|
|
334
|
+
"name": "key",
|
|
335
|
+
"type": "text",
|
|
336
|
+
"primaryKey": true,
|
|
337
|
+
"notNull": true
|
|
338
|
+
},
|
|
339
|
+
"value": {
|
|
340
|
+
"name": "value",
|
|
341
|
+
"type": "text",
|
|
342
|
+
"primaryKey": false,
|
|
343
|
+
"notNull": true
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"indexes": {},
|
|
347
|
+
"foreignKeys": {},
|
|
348
|
+
"compositePrimaryKeys": {},
|
|
349
|
+
"uniqueConstraints": {},
|
|
350
|
+
"policies": {},
|
|
351
|
+
"checkConstraints": {},
|
|
352
|
+
"isRLSEnabled": false
|
|
353
|
+
},
|
|
354
|
+
"curriculum_api.tailored_resumes": {
|
|
355
|
+
"name": "tailored_resumes",
|
|
356
|
+
"schema": "curriculum_api",
|
|
357
|
+
"columns": {
|
|
358
|
+
"id": {
|
|
359
|
+
"name": "id",
|
|
360
|
+
"type": "uuid",
|
|
361
|
+
"primaryKey": true,
|
|
362
|
+
"notNull": true,
|
|
363
|
+
"default": "gen_random_uuid()"
|
|
364
|
+
},
|
|
365
|
+
"title": {
|
|
366
|
+
"name": "title",
|
|
367
|
+
"type": "text",
|
|
368
|
+
"primaryKey": false,
|
|
369
|
+
"notNull": true
|
|
370
|
+
},
|
|
371
|
+
"company": {
|
|
372
|
+
"name": "company",
|
|
373
|
+
"type": "text",
|
|
374
|
+
"primaryKey": false,
|
|
375
|
+
"notNull": false
|
|
376
|
+
},
|
|
377
|
+
"job_description": {
|
|
378
|
+
"name": "job_description",
|
|
379
|
+
"type": "text",
|
|
380
|
+
"primaryKey": false,
|
|
381
|
+
"notNull": true
|
|
382
|
+
},
|
|
383
|
+
"content": {
|
|
384
|
+
"name": "content",
|
|
385
|
+
"type": "text",
|
|
386
|
+
"primaryKey": false,
|
|
387
|
+
"notNull": true,
|
|
388
|
+
"default": "''"
|
|
389
|
+
},
|
|
390
|
+
"header_fields": {
|
|
391
|
+
"name": "header_fields",
|
|
392
|
+
"type": "text[]",
|
|
393
|
+
"primaryKey": false,
|
|
394
|
+
"notNull": false
|
|
395
|
+
},
|
|
396
|
+
"model": {
|
|
397
|
+
"name": "model",
|
|
398
|
+
"type": "text",
|
|
399
|
+
"primaryKey": false,
|
|
400
|
+
"notNull": false
|
|
401
|
+
},
|
|
402
|
+
"created_at": {
|
|
403
|
+
"name": "created_at",
|
|
404
|
+
"type": "timestamp with time zone",
|
|
405
|
+
"primaryKey": false,
|
|
406
|
+
"notNull": true,
|
|
407
|
+
"default": "now()"
|
|
408
|
+
},
|
|
409
|
+
"updated_at": {
|
|
410
|
+
"name": "updated_at",
|
|
411
|
+
"type": "timestamp with time zone",
|
|
412
|
+
"primaryKey": false,
|
|
413
|
+
"notNull": true,
|
|
414
|
+
"default": "now()"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"indexes": {},
|
|
418
|
+
"foreignKeys": {},
|
|
419
|
+
"compositePrimaryKeys": {},
|
|
420
|
+
"uniqueConstraints": {},
|
|
421
|
+
"policies": {},
|
|
422
|
+
"checkConstraints": {},
|
|
423
|
+
"isRLSEnabled": false
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"enums": {},
|
|
427
|
+
"schemas": {
|
|
428
|
+
"curriculum_api": "curriculum_api"
|
|
429
|
+
},
|
|
430
|
+
"sequences": {},
|
|
431
|
+
"roles": {},
|
|
432
|
+
"policies": {},
|
|
433
|
+
"views": {},
|
|
434
|
+
"_meta": {
|
|
435
|
+
"columns": {},
|
|
436
|
+
"schemas": {},
|
|
437
|
+
"tables": {}
|
|
438
|
+
}
|
|
439
|
+
}
|