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,549 @@
1
+ {
2
+ "id": "29504352-a21c-491c-97c8-4d52980f6eb4",
3
+ "prevId": "cadb7ac6-9091-4ddd-86c5-94c9e4762563",
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_chat_messages": {
212
+ "name": "recruiter_chat_messages",
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
+ "chat_id": {
223
+ "name": "chat_id",
224
+ "type": "uuid",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "seq": {
229
+ "name": "seq",
230
+ "type": "bigint",
231
+ "primaryKey": false,
232
+ "notNull": true,
233
+ "identity": {
234
+ "type": "always",
235
+ "name": "recruiter_chat_messages_seq_seq",
236
+ "schema": "curriculum_api",
237
+ "increment": "1",
238
+ "startWith": "1",
239
+ "minValue": "1",
240
+ "maxValue": "9223372036854775807",
241
+ "cache": "1",
242
+ "cycle": false
243
+ }
244
+ },
245
+ "role": {
246
+ "name": "role",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true
250
+ },
251
+ "content": {
252
+ "name": "content",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true
256
+ },
257
+ "created_at": {
258
+ "name": "created_at",
259
+ "type": "timestamp with time zone",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "default": "now()"
263
+ }
264
+ },
265
+ "indexes": {
266
+ "recruiter_chat_messages_chat_seq": {
267
+ "name": "recruiter_chat_messages_chat_seq",
268
+ "columns": [
269
+ {
270
+ "expression": "chat_id",
271
+ "isExpression": false,
272
+ "asc": true,
273
+ "nulls": "last"
274
+ },
275
+ {
276
+ "expression": "seq",
277
+ "isExpression": false,
278
+ "asc": true,
279
+ "nulls": "last"
280
+ }
281
+ ],
282
+ "isUnique": false,
283
+ "concurrently": false,
284
+ "method": "btree",
285
+ "with": {}
286
+ }
287
+ },
288
+ "foreignKeys": {
289
+ "recruiter_chat_messages_chat_id_recruiter_chats_id_fk": {
290
+ "name": "recruiter_chat_messages_chat_id_recruiter_chats_id_fk",
291
+ "tableFrom": "recruiter_chat_messages",
292
+ "tableTo": "recruiter_chats",
293
+ "schemaTo": "curriculum_api",
294
+ "columnsFrom": [
295
+ "chat_id"
296
+ ],
297
+ "columnsTo": [
298
+ "id"
299
+ ],
300
+ "onDelete": "cascade",
301
+ "onUpdate": "no action"
302
+ }
303
+ },
304
+ "compositePrimaryKeys": {},
305
+ "uniqueConstraints": {},
306
+ "policies": {},
307
+ "checkConstraints": {
308
+ "recruiter_chat_messages_role": {
309
+ "name": "recruiter_chat_messages_role",
310
+ "value": "\"curriculum_api\".\"recruiter_chat_messages\".\"role\" in ('user', 'assistant')"
311
+ }
312
+ },
313
+ "isRLSEnabled": false
314
+ },
315
+ "curriculum_api.recruiter_chats": {
316
+ "name": "recruiter_chats",
317
+ "schema": "curriculum_api",
318
+ "columns": {
319
+ "id": {
320
+ "name": "id",
321
+ "type": "uuid",
322
+ "primaryKey": true,
323
+ "notNull": true,
324
+ "default": "gen_random_uuid()"
325
+ },
326
+ "token": {
327
+ "name": "token",
328
+ "type": "text",
329
+ "primaryKey": false,
330
+ "notNull": true
331
+ },
332
+ "recruiter_name": {
333
+ "name": "recruiter_name",
334
+ "type": "text",
335
+ "primaryKey": false,
336
+ "notNull": true
337
+ },
338
+ "company": {
339
+ "name": "company",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": false
343
+ },
344
+ "job_description_short": {
345
+ "name": "job_description_short",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": false
349
+ },
350
+ "tailored_resume_id": {
351
+ "name": "tailored_resume_id",
352
+ "type": "uuid",
353
+ "primaryKey": false,
354
+ "notNull": false
355
+ },
356
+ "max_questions": {
357
+ "name": "max_questions",
358
+ "type": "integer",
359
+ "primaryKey": false,
360
+ "notNull": true,
361
+ "default": 10
362
+ },
363
+ "used": {
364
+ "name": "used",
365
+ "type": "integer",
366
+ "primaryKey": false,
367
+ "notNull": true,
368
+ "default": 0
369
+ },
370
+ "status": {
371
+ "name": "status",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": true,
375
+ "default": "'active'"
376
+ },
377
+ "expires_at": {
378
+ "name": "expires_at",
379
+ "type": "timestamp with time zone",
380
+ "primaryKey": false,
381
+ "notNull": false
382
+ },
383
+ "created_at": {
384
+ "name": "created_at",
385
+ "type": "timestamp with time zone",
386
+ "primaryKey": false,
387
+ "notNull": true,
388
+ "default": "now()"
389
+ },
390
+ "last_used_at": {
391
+ "name": "last_used_at",
392
+ "type": "timestamp with time zone",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ }
396
+ },
397
+ "indexes": {},
398
+ "foreignKeys": {
399
+ "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk": {
400
+ "name": "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk",
401
+ "tableFrom": "recruiter_chats",
402
+ "tableTo": "tailored_resumes",
403
+ "schemaTo": "curriculum_api",
404
+ "columnsFrom": [
405
+ "tailored_resume_id"
406
+ ],
407
+ "columnsTo": [
408
+ "id"
409
+ ],
410
+ "onDelete": "set null",
411
+ "onUpdate": "no action"
412
+ }
413
+ },
414
+ "compositePrimaryKeys": {},
415
+ "uniqueConstraints": {
416
+ "recruiter_chats_token_unique": {
417
+ "name": "recruiter_chats_token_unique",
418
+ "nullsNotDistinct": false,
419
+ "columns": [
420
+ "token"
421
+ ]
422
+ }
423
+ },
424
+ "policies": {},
425
+ "checkConstraints": {
426
+ "recruiter_chats_status": {
427
+ "name": "recruiter_chats_status",
428
+ "value": "\"curriculum_api\".\"recruiter_chats\".\"status\" in ('active', 'revoked')"
429
+ }
430
+ },
431
+ "isRLSEnabled": false
432
+ },
433
+ "curriculum_api.settings": {
434
+ "name": "settings",
435
+ "schema": "curriculum_api",
436
+ "columns": {
437
+ "key": {
438
+ "name": "key",
439
+ "type": "text",
440
+ "primaryKey": true,
441
+ "notNull": true
442
+ },
443
+ "value": {
444
+ "name": "value",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ }
449
+ },
450
+ "indexes": {},
451
+ "foreignKeys": {},
452
+ "compositePrimaryKeys": {},
453
+ "uniqueConstraints": {},
454
+ "policies": {},
455
+ "checkConstraints": {},
456
+ "isRLSEnabled": false
457
+ },
458
+ "curriculum_api.tailored_resumes": {
459
+ "name": "tailored_resumes",
460
+ "schema": "curriculum_api",
461
+ "columns": {
462
+ "id": {
463
+ "name": "id",
464
+ "type": "uuid",
465
+ "primaryKey": true,
466
+ "notNull": true,
467
+ "default": "gen_random_uuid()"
468
+ },
469
+ "title": {
470
+ "name": "title",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": true
474
+ },
475
+ "company": {
476
+ "name": "company",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": false
480
+ },
481
+ "job_description": {
482
+ "name": "job_description",
483
+ "type": "text",
484
+ "primaryKey": false,
485
+ "notNull": true
486
+ },
487
+ "custom_instructions": {
488
+ "name": "custom_instructions",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": true,
492
+ "default": "''"
493
+ },
494
+ "header_fields": {
495
+ "name": "header_fields",
496
+ "type": "text[]",
497
+ "primaryKey": false,
498
+ "notNull": false
499
+ },
500
+ "model": {
501
+ "name": "model",
502
+ "type": "text",
503
+ "primaryKey": false,
504
+ "notNull": false
505
+ },
506
+ "structured": {
507
+ "name": "structured",
508
+ "type": "jsonb",
509
+ "primaryKey": false,
510
+ "notNull": false
511
+ },
512
+ "created_at": {
513
+ "name": "created_at",
514
+ "type": "timestamp with time zone",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "default": "now()"
518
+ },
519
+ "updated_at": {
520
+ "name": "updated_at",
521
+ "type": "timestamp with time zone",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "default": "now()"
525
+ }
526
+ },
527
+ "indexes": {},
528
+ "foreignKeys": {},
529
+ "compositePrimaryKeys": {},
530
+ "uniqueConstraints": {},
531
+ "policies": {},
532
+ "checkConstraints": {},
533
+ "isRLSEnabled": false
534
+ }
535
+ },
536
+ "enums": {},
537
+ "schemas": {
538
+ "curriculum_api": "curriculum_api"
539
+ },
540
+ "sequences": {},
541
+ "roles": {},
542
+ "policies": {},
543
+ "views": {},
544
+ "_meta": {
545
+ "columns": {},
546
+ "schemas": {},
547
+ "tables": {}
548
+ }
549
+ }