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.
@@ -0,0 +1,595 @@
1
+ {
2
+ "id": "b33065b6-1ef1-4f93-8267-55b8b024b1e4",
3
+ "prevId": "29504352-a21c-491c-97c8-4d52980f6eb4",
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.career_library": {
48
+ "name": "career_library",
49
+ "schema": "curriculum_api",
50
+ "columns": {
51
+ "id": {
52
+ "name": "id",
53
+ "type": "integer",
54
+ "primaryKey": true,
55
+ "notNull": true,
56
+ "default": 1
57
+ },
58
+ "document": {
59
+ "name": "document",
60
+ "type": "jsonb",
61
+ "primaryKey": false,
62
+ "notNull": true,
63
+ "default": "'{\"version\":1,\"items\":[]}'::jsonb"
64
+ },
65
+ "updated_at": {
66
+ "name": "updated_at",
67
+ "type": "timestamp with time zone",
68
+ "primaryKey": false,
69
+ "notNull": true,
70
+ "default": "now()"
71
+ }
72
+ },
73
+ "indexes": {},
74
+ "foreignKeys": {},
75
+ "compositePrimaryKeys": {},
76
+ "uniqueConstraints": {},
77
+ "policies": {},
78
+ "checkConstraints": {
79
+ "career_library_singleton": {
80
+ "name": "career_library_singleton",
81
+ "value": "\"curriculum_api\".\"career_library\".\"id\" = 1"
82
+ }
83
+ },
84
+ "isRLSEnabled": false
85
+ },
86
+ "curriculum_api.personal_info": {
87
+ "name": "personal_info",
88
+ "schema": "curriculum_api",
89
+ "columns": {
90
+ "key": {
91
+ "name": "key",
92
+ "type": "text",
93
+ "primaryKey": true,
94
+ "notNull": true
95
+ },
96
+ "label": {
97
+ "name": "label",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": true
101
+ },
102
+ "sort_order": {
103
+ "name": "sort_order",
104
+ "type": "integer",
105
+ "primaryKey": false,
106
+ "notNull": true,
107
+ "default": 0
108
+ },
109
+ "value_encrypted": {
110
+ "name": "value_encrypted",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": true
114
+ },
115
+ "visibility": {
116
+ "name": "visibility",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": true
120
+ },
121
+ "updated_at": {
122
+ "name": "updated_at",
123
+ "type": "timestamp with time zone",
124
+ "primaryKey": false,
125
+ "notNull": true,
126
+ "default": "now()"
127
+ }
128
+ },
129
+ "indexes": {},
130
+ "foreignKeys": {},
131
+ "compositePrimaryKeys": {},
132
+ "uniqueConstraints": {},
133
+ "policies": {},
134
+ "checkConstraints": {
135
+ "personal_info_visibility": {
136
+ "name": "personal_info_visibility",
137
+ "value": "\"curriculum_api\".\"personal_info\".\"visibility\" in ('public', 'recruiter', 'print')"
138
+ }
139
+ },
140
+ "isRLSEnabled": false
141
+ },
142
+ "curriculum_api.profile": {
143
+ "name": "profile",
144
+ "schema": "curriculum_api",
145
+ "columns": {
146
+ "id": {
147
+ "name": "id",
148
+ "type": "integer",
149
+ "primaryKey": true,
150
+ "notNull": true,
151
+ "default": 1
152
+ },
153
+ "full_name": {
154
+ "name": "full_name",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": true
158
+ },
159
+ "headline": {
160
+ "name": "headline",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true
164
+ },
165
+ "summary": {
166
+ "name": "summary",
167
+ "type": "text",
168
+ "primaryKey": false,
169
+ "notNull": true,
170
+ "default": "''"
171
+ },
172
+ "master_cv": {
173
+ "name": "master_cv",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "public_system_prompt": {
179
+ "name": "public_system_prompt",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true
183
+ },
184
+ "recruiter_system_prompt": {
185
+ "name": "recruiter_system_prompt",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true
189
+ },
190
+ "tailor_system_prompt": {
191
+ "name": "tailor_system_prompt",
192
+ "type": "text",
193
+ "primaryKey": false,
194
+ "notNull": true
195
+ },
196
+ "updated_at": {
197
+ "name": "updated_at",
198
+ "type": "timestamp with time zone",
199
+ "primaryKey": false,
200
+ "notNull": true,
201
+ "default": "now()"
202
+ }
203
+ },
204
+ "indexes": {},
205
+ "foreignKeys": {},
206
+ "compositePrimaryKeys": {},
207
+ "uniqueConstraints": {},
208
+ "policies": {},
209
+ "checkConstraints": {
210
+ "profile_singleton": {
211
+ "name": "profile_singleton",
212
+ "value": "\"curriculum_api\".\"profile\".\"id\" = 1"
213
+ }
214
+ },
215
+ "isRLSEnabled": false
216
+ },
217
+ "curriculum_api.public_usage": {
218
+ "name": "public_usage",
219
+ "schema": "curriculum_api",
220
+ "columns": {
221
+ "ip_hash": {
222
+ "name": "ip_hash",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": true
226
+ },
227
+ "day": {
228
+ "name": "day",
229
+ "type": "date",
230
+ "primaryKey": false,
231
+ "notNull": true
232
+ },
233
+ "used": {
234
+ "name": "used",
235
+ "type": "integer",
236
+ "primaryKey": false,
237
+ "notNull": true,
238
+ "default": 0
239
+ }
240
+ },
241
+ "indexes": {},
242
+ "foreignKeys": {},
243
+ "compositePrimaryKeys": {
244
+ "public_usage_ip_hash_day_pk": {
245
+ "name": "public_usage_ip_hash_day_pk",
246
+ "columns": [
247
+ "ip_hash",
248
+ "day"
249
+ ]
250
+ }
251
+ },
252
+ "uniqueConstraints": {},
253
+ "policies": {},
254
+ "checkConstraints": {},
255
+ "isRLSEnabled": false
256
+ },
257
+ "curriculum_api.recruiter_chat_messages": {
258
+ "name": "recruiter_chat_messages",
259
+ "schema": "curriculum_api",
260
+ "columns": {
261
+ "id": {
262
+ "name": "id",
263
+ "type": "uuid",
264
+ "primaryKey": true,
265
+ "notNull": true,
266
+ "default": "gen_random_uuid()"
267
+ },
268
+ "chat_id": {
269
+ "name": "chat_id",
270
+ "type": "uuid",
271
+ "primaryKey": false,
272
+ "notNull": true
273
+ },
274
+ "seq": {
275
+ "name": "seq",
276
+ "type": "bigint",
277
+ "primaryKey": false,
278
+ "notNull": true,
279
+ "identity": {
280
+ "type": "always",
281
+ "name": "recruiter_chat_messages_seq_seq",
282
+ "schema": "curriculum_api",
283
+ "increment": "1",
284
+ "startWith": "1",
285
+ "minValue": "1",
286
+ "maxValue": "9223372036854775807",
287
+ "cache": "1",
288
+ "cycle": false
289
+ }
290
+ },
291
+ "role": {
292
+ "name": "role",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true
296
+ },
297
+ "content": {
298
+ "name": "content",
299
+ "type": "text",
300
+ "primaryKey": false,
301
+ "notNull": true
302
+ },
303
+ "created_at": {
304
+ "name": "created_at",
305
+ "type": "timestamp with time zone",
306
+ "primaryKey": false,
307
+ "notNull": true,
308
+ "default": "now()"
309
+ }
310
+ },
311
+ "indexes": {
312
+ "recruiter_chat_messages_chat_seq": {
313
+ "name": "recruiter_chat_messages_chat_seq",
314
+ "columns": [
315
+ {
316
+ "expression": "chat_id",
317
+ "isExpression": false,
318
+ "asc": true,
319
+ "nulls": "last"
320
+ },
321
+ {
322
+ "expression": "seq",
323
+ "isExpression": false,
324
+ "asc": true,
325
+ "nulls": "last"
326
+ }
327
+ ],
328
+ "isUnique": false,
329
+ "concurrently": false,
330
+ "method": "btree",
331
+ "with": {}
332
+ }
333
+ },
334
+ "foreignKeys": {
335
+ "recruiter_chat_messages_chat_id_recruiter_chats_id_fk": {
336
+ "name": "recruiter_chat_messages_chat_id_recruiter_chats_id_fk",
337
+ "tableFrom": "recruiter_chat_messages",
338
+ "tableTo": "recruiter_chats",
339
+ "schemaTo": "curriculum_api",
340
+ "columnsFrom": [
341
+ "chat_id"
342
+ ],
343
+ "columnsTo": [
344
+ "id"
345
+ ],
346
+ "onDelete": "cascade",
347
+ "onUpdate": "no action"
348
+ }
349
+ },
350
+ "compositePrimaryKeys": {},
351
+ "uniqueConstraints": {},
352
+ "policies": {},
353
+ "checkConstraints": {
354
+ "recruiter_chat_messages_role": {
355
+ "name": "recruiter_chat_messages_role",
356
+ "value": "\"curriculum_api\".\"recruiter_chat_messages\".\"role\" in ('user', 'assistant')"
357
+ }
358
+ },
359
+ "isRLSEnabled": false
360
+ },
361
+ "curriculum_api.recruiter_chats": {
362
+ "name": "recruiter_chats",
363
+ "schema": "curriculum_api",
364
+ "columns": {
365
+ "id": {
366
+ "name": "id",
367
+ "type": "uuid",
368
+ "primaryKey": true,
369
+ "notNull": true,
370
+ "default": "gen_random_uuid()"
371
+ },
372
+ "token": {
373
+ "name": "token",
374
+ "type": "text",
375
+ "primaryKey": false,
376
+ "notNull": true
377
+ },
378
+ "recruiter_name": {
379
+ "name": "recruiter_name",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": true
383
+ },
384
+ "company": {
385
+ "name": "company",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": false
389
+ },
390
+ "job_description_short": {
391
+ "name": "job_description_short",
392
+ "type": "text",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ },
396
+ "tailored_resume_id": {
397
+ "name": "tailored_resume_id",
398
+ "type": "uuid",
399
+ "primaryKey": false,
400
+ "notNull": false
401
+ },
402
+ "max_questions": {
403
+ "name": "max_questions",
404
+ "type": "integer",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "default": 10
408
+ },
409
+ "used": {
410
+ "name": "used",
411
+ "type": "integer",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "default": 0
415
+ },
416
+ "status": {
417
+ "name": "status",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "default": "'active'"
422
+ },
423
+ "expires_at": {
424
+ "name": "expires_at",
425
+ "type": "timestamp with time zone",
426
+ "primaryKey": false,
427
+ "notNull": false
428
+ },
429
+ "created_at": {
430
+ "name": "created_at",
431
+ "type": "timestamp with time zone",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "default": "now()"
435
+ },
436
+ "last_used_at": {
437
+ "name": "last_used_at",
438
+ "type": "timestamp with time zone",
439
+ "primaryKey": false,
440
+ "notNull": false
441
+ }
442
+ },
443
+ "indexes": {},
444
+ "foreignKeys": {
445
+ "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk": {
446
+ "name": "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk",
447
+ "tableFrom": "recruiter_chats",
448
+ "tableTo": "tailored_resumes",
449
+ "schemaTo": "curriculum_api",
450
+ "columnsFrom": [
451
+ "tailored_resume_id"
452
+ ],
453
+ "columnsTo": [
454
+ "id"
455
+ ],
456
+ "onDelete": "set null",
457
+ "onUpdate": "no action"
458
+ }
459
+ },
460
+ "compositePrimaryKeys": {},
461
+ "uniqueConstraints": {
462
+ "recruiter_chats_token_unique": {
463
+ "name": "recruiter_chats_token_unique",
464
+ "nullsNotDistinct": false,
465
+ "columns": [
466
+ "token"
467
+ ]
468
+ }
469
+ },
470
+ "policies": {},
471
+ "checkConstraints": {
472
+ "recruiter_chats_status": {
473
+ "name": "recruiter_chats_status",
474
+ "value": "\"curriculum_api\".\"recruiter_chats\".\"status\" in ('active', 'revoked')"
475
+ }
476
+ },
477
+ "isRLSEnabled": false
478
+ },
479
+ "curriculum_api.settings": {
480
+ "name": "settings",
481
+ "schema": "curriculum_api",
482
+ "columns": {
483
+ "key": {
484
+ "name": "key",
485
+ "type": "text",
486
+ "primaryKey": true,
487
+ "notNull": true
488
+ },
489
+ "value": {
490
+ "name": "value",
491
+ "type": "text",
492
+ "primaryKey": false,
493
+ "notNull": true
494
+ }
495
+ },
496
+ "indexes": {},
497
+ "foreignKeys": {},
498
+ "compositePrimaryKeys": {},
499
+ "uniqueConstraints": {},
500
+ "policies": {},
501
+ "checkConstraints": {},
502
+ "isRLSEnabled": false
503
+ },
504
+ "curriculum_api.tailored_resumes": {
505
+ "name": "tailored_resumes",
506
+ "schema": "curriculum_api",
507
+ "columns": {
508
+ "id": {
509
+ "name": "id",
510
+ "type": "uuid",
511
+ "primaryKey": true,
512
+ "notNull": true,
513
+ "default": "gen_random_uuid()"
514
+ },
515
+ "title": {
516
+ "name": "title",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": true
520
+ },
521
+ "company": {
522
+ "name": "company",
523
+ "type": "text",
524
+ "primaryKey": false,
525
+ "notNull": false
526
+ },
527
+ "job_description": {
528
+ "name": "job_description",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": true
532
+ },
533
+ "custom_instructions": {
534
+ "name": "custom_instructions",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "default": "''"
539
+ },
540
+ "header_fields": {
541
+ "name": "header_fields",
542
+ "type": "text[]",
543
+ "primaryKey": false,
544
+ "notNull": false
545
+ },
546
+ "model": {
547
+ "name": "model",
548
+ "type": "text",
549
+ "primaryKey": false,
550
+ "notNull": false
551
+ },
552
+ "structured": {
553
+ "name": "structured",
554
+ "type": "jsonb",
555
+ "primaryKey": false,
556
+ "notNull": false
557
+ },
558
+ "created_at": {
559
+ "name": "created_at",
560
+ "type": "timestamp with time zone",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "default": "now()"
564
+ },
565
+ "updated_at": {
566
+ "name": "updated_at",
567
+ "type": "timestamp with time zone",
568
+ "primaryKey": false,
569
+ "notNull": true,
570
+ "default": "now()"
571
+ }
572
+ },
573
+ "indexes": {},
574
+ "foreignKeys": {},
575
+ "compositePrimaryKeys": {},
576
+ "uniqueConstraints": {},
577
+ "policies": {},
578
+ "checkConstraints": {},
579
+ "isRLSEnabled": false
580
+ }
581
+ },
582
+ "enums": {},
583
+ "schemas": {
584
+ "curriculum_api": "curriculum_api"
585
+ },
586
+ "sequences": {},
587
+ "roles": {},
588
+ "policies": {},
589
+ "views": {},
590
+ "_meta": {
591
+ "columns": {},
592
+ "schemas": {},
593
+ "tables": {}
594
+ }
595
+ }