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,589 @@
1
+ {
2
+ "id": "8478cbc2-b9c5-4d57-bc42-c4bbb30a4dd1",
3
+ "prevId": "b33065b6-1ef1-4f93-8267-55b8b024b1e4",
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
+ "public_system_prompt": {
173
+ "name": "public_system_prompt",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "recruiter_system_prompt": {
179
+ "name": "recruiter_system_prompt",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true
183
+ },
184
+ "tailor_system_prompt": {
185
+ "name": "tailor_system_prompt",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true
189
+ },
190
+ "updated_at": {
191
+ "name": "updated_at",
192
+ "type": "timestamp with time zone",
193
+ "primaryKey": false,
194
+ "notNull": true,
195
+ "default": "now()"
196
+ }
197
+ },
198
+ "indexes": {},
199
+ "foreignKeys": {},
200
+ "compositePrimaryKeys": {},
201
+ "uniqueConstraints": {},
202
+ "policies": {},
203
+ "checkConstraints": {
204
+ "profile_singleton": {
205
+ "name": "profile_singleton",
206
+ "value": "\"curriculum_api\".\"profile\".\"id\" = 1"
207
+ }
208
+ },
209
+ "isRLSEnabled": false
210
+ },
211
+ "curriculum_api.public_usage": {
212
+ "name": "public_usage",
213
+ "schema": "curriculum_api",
214
+ "columns": {
215
+ "ip_hash": {
216
+ "name": "ip_hash",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": true
220
+ },
221
+ "day": {
222
+ "name": "day",
223
+ "type": "date",
224
+ "primaryKey": false,
225
+ "notNull": true
226
+ },
227
+ "used": {
228
+ "name": "used",
229
+ "type": "integer",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "default": 0
233
+ }
234
+ },
235
+ "indexes": {},
236
+ "foreignKeys": {},
237
+ "compositePrimaryKeys": {
238
+ "public_usage_ip_hash_day_pk": {
239
+ "name": "public_usage_ip_hash_day_pk",
240
+ "columns": [
241
+ "ip_hash",
242
+ "day"
243
+ ]
244
+ }
245
+ },
246
+ "uniqueConstraints": {},
247
+ "policies": {},
248
+ "checkConstraints": {},
249
+ "isRLSEnabled": false
250
+ },
251
+ "curriculum_api.recruiter_chat_messages": {
252
+ "name": "recruiter_chat_messages",
253
+ "schema": "curriculum_api",
254
+ "columns": {
255
+ "id": {
256
+ "name": "id",
257
+ "type": "uuid",
258
+ "primaryKey": true,
259
+ "notNull": true,
260
+ "default": "gen_random_uuid()"
261
+ },
262
+ "chat_id": {
263
+ "name": "chat_id",
264
+ "type": "uuid",
265
+ "primaryKey": false,
266
+ "notNull": true
267
+ },
268
+ "seq": {
269
+ "name": "seq",
270
+ "type": "bigint",
271
+ "primaryKey": false,
272
+ "notNull": true,
273
+ "identity": {
274
+ "type": "always",
275
+ "name": "recruiter_chat_messages_seq_seq",
276
+ "schema": "curriculum_api",
277
+ "increment": "1",
278
+ "startWith": "1",
279
+ "minValue": "1",
280
+ "maxValue": "9223372036854775807",
281
+ "cache": "1",
282
+ "cycle": false
283
+ }
284
+ },
285
+ "role": {
286
+ "name": "role",
287
+ "type": "text",
288
+ "primaryKey": false,
289
+ "notNull": true
290
+ },
291
+ "content": {
292
+ "name": "content",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true
296
+ },
297
+ "created_at": {
298
+ "name": "created_at",
299
+ "type": "timestamp with time zone",
300
+ "primaryKey": false,
301
+ "notNull": true,
302
+ "default": "now()"
303
+ }
304
+ },
305
+ "indexes": {
306
+ "recruiter_chat_messages_chat_seq": {
307
+ "name": "recruiter_chat_messages_chat_seq",
308
+ "columns": [
309
+ {
310
+ "expression": "chat_id",
311
+ "isExpression": false,
312
+ "asc": true,
313
+ "nulls": "last"
314
+ },
315
+ {
316
+ "expression": "seq",
317
+ "isExpression": false,
318
+ "asc": true,
319
+ "nulls": "last"
320
+ }
321
+ ],
322
+ "isUnique": false,
323
+ "concurrently": false,
324
+ "method": "btree",
325
+ "with": {}
326
+ }
327
+ },
328
+ "foreignKeys": {
329
+ "recruiter_chat_messages_chat_id_recruiter_chats_id_fk": {
330
+ "name": "recruiter_chat_messages_chat_id_recruiter_chats_id_fk",
331
+ "tableFrom": "recruiter_chat_messages",
332
+ "tableTo": "recruiter_chats",
333
+ "schemaTo": "curriculum_api",
334
+ "columnsFrom": [
335
+ "chat_id"
336
+ ],
337
+ "columnsTo": [
338
+ "id"
339
+ ],
340
+ "onDelete": "cascade",
341
+ "onUpdate": "no action"
342
+ }
343
+ },
344
+ "compositePrimaryKeys": {},
345
+ "uniqueConstraints": {},
346
+ "policies": {},
347
+ "checkConstraints": {
348
+ "recruiter_chat_messages_role": {
349
+ "name": "recruiter_chat_messages_role",
350
+ "value": "\"curriculum_api\".\"recruiter_chat_messages\".\"role\" in ('user', 'assistant')"
351
+ }
352
+ },
353
+ "isRLSEnabled": false
354
+ },
355
+ "curriculum_api.recruiter_chats": {
356
+ "name": "recruiter_chats",
357
+ "schema": "curriculum_api",
358
+ "columns": {
359
+ "id": {
360
+ "name": "id",
361
+ "type": "uuid",
362
+ "primaryKey": true,
363
+ "notNull": true,
364
+ "default": "gen_random_uuid()"
365
+ },
366
+ "token": {
367
+ "name": "token",
368
+ "type": "text",
369
+ "primaryKey": false,
370
+ "notNull": true
371
+ },
372
+ "recruiter_name": {
373
+ "name": "recruiter_name",
374
+ "type": "text",
375
+ "primaryKey": false,
376
+ "notNull": true
377
+ },
378
+ "company": {
379
+ "name": "company",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": false
383
+ },
384
+ "job_description_short": {
385
+ "name": "job_description_short",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": false
389
+ },
390
+ "tailored_resume_id": {
391
+ "name": "tailored_resume_id",
392
+ "type": "uuid",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ },
396
+ "max_questions": {
397
+ "name": "max_questions",
398
+ "type": "integer",
399
+ "primaryKey": false,
400
+ "notNull": true,
401
+ "default": 10
402
+ },
403
+ "used": {
404
+ "name": "used",
405
+ "type": "integer",
406
+ "primaryKey": false,
407
+ "notNull": true,
408
+ "default": 0
409
+ },
410
+ "status": {
411
+ "name": "status",
412
+ "type": "text",
413
+ "primaryKey": false,
414
+ "notNull": true,
415
+ "default": "'active'"
416
+ },
417
+ "expires_at": {
418
+ "name": "expires_at",
419
+ "type": "timestamp with time zone",
420
+ "primaryKey": false,
421
+ "notNull": false
422
+ },
423
+ "created_at": {
424
+ "name": "created_at",
425
+ "type": "timestamp with time zone",
426
+ "primaryKey": false,
427
+ "notNull": true,
428
+ "default": "now()"
429
+ },
430
+ "last_used_at": {
431
+ "name": "last_used_at",
432
+ "type": "timestamp with time zone",
433
+ "primaryKey": false,
434
+ "notNull": false
435
+ }
436
+ },
437
+ "indexes": {},
438
+ "foreignKeys": {
439
+ "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk": {
440
+ "name": "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk",
441
+ "tableFrom": "recruiter_chats",
442
+ "tableTo": "tailored_resumes",
443
+ "schemaTo": "curriculum_api",
444
+ "columnsFrom": [
445
+ "tailored_resume_id"
446
+ ],
447
+ "columnsTo": [
448
+ "id"
449
+ ],
450
+ "onDelete": "set null",
451
+ "onUpdate": "no action"
452
+ }
453
+ },
454
+ "compositePrimaryKeys": {},
455
+ "uniqueConstraints": {
456
+ "recruiter_chats_token_unique": {
457
+ "name": "recruiter_chats_token_unique",
458
+ "nullsNotDistinct": false,
459
+ "columns": [
460
+ "token"
461
+ ]
462
+ }
463
+ },
464
+ "policies": {},
465
+ "checkConstraints": {
466
+ "recruiter_chats_status": {
467
+ "name": "recruiter_chats_status",
468
+ "value": "\"curriculum_api\".\"recruiter_chats\".\"status\" in ('active', 'revoked')"
469
+ }
470
+ },
471
+ "isRLSEnabled": false
472
+ },
473
+ "curriculum_api.settings": {
474
+ "name": "settings",
475
+ "schema": "curriculum_api",
476
+ "columns": {
477
+ "key": {
478
+ "name": "key",
479
+ "type": "text",
480
+ "primaryKey": true,
481
+ "notNull": true
482
+ },
483
+ "value": {
484
+ "name": "value",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true
488
+ }
489
+ },
490
+ "indexes": {},
491
+ "foreignKeys": {},
492
+ "compositePrimaryKeys": {},
493
+ "uniqueConstraints": {},
494
+ "policies": {},
495
+ "checkConstraints": {},
496
+ "isRLSEnabled": false
497
+ },
498
+ "curriculum_api.tailored_resumes": {
499
+ "name": "tailored_resumes",
500
+ "schema": "curriculum_api",
501
+ "columns": {
502
+ "id": {
503
+ "name": "id",
504
+ "type": "uuid",
505
+ "primaryKey": true,
506
+ "notNull": true,
507
+ "default": "gen_random_uuid()"
508
+ },
509
+ "title": {
510
+ "name": "title",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": true
514
+ },
515
+ "company": {
516
+ "name": "company",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": false
520
+ },
521
+ "job_description": {
522
+ "name": "job_description",
523
+ "type": "text",
524
+ "primaryKey": false,
525
+ "notNull": true
526
+ },
527
+ "custom_instructions": {
528
+ "name": "custom_instructions",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": true,
532
+ "default": "''"
533
+ },
534
+ "header_fields": {
535
+ "name": "header_fields",
536
+ "type": "text[]",
537
+ "primaryKey": false,
538
+ "notNull": false
539
+ },
540
+ "model": {
541
+ "name": "model",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": false
545
+ },
546
+ "structured": {
547
+ "name": "structured",
548
+ "type": "jsonb",
549
+ "primaryKey": false,
550
+ "notNull": false
551
+ },
552
+ "created_at": {
553
+ "name": "created_at",
554
+ "type": "timestamp with time zone",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "default": "now()"
558
+ },
559
+ "updated_at": {
560
+ "name": "updated_at",
561
+ "type": "timestamp with time zone",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "default": "now()"
565
+ }
566
+ },
567
+ "indexes": {},
568
+ "foreignKeys": {},
569
+ "compositePrimaryKeys": {},
570
+ "uniqueConstraints": {},
571
+ "policies": {},
572
+ "checkConstraints": {},
573
+ "isRLSEnabled": false
574
+ }
575
+ },
576
+ "enums": {},
577
+ "schemas": {
578
+ "curriculum_api": "curriculum_api"
579
+ },
580
+ "sequences": {},
581
+ "roles": {},
582
+ "policies": {},
583
+ "views": {},
584
+ "_meta": {
585
+ "columns": {},
586
+ "schemas": {},
587
+ "tables": {}
588
+ }
589
+ }