Skip to main content

cortex/
schema.rs

1// @generated automatically by Diesel CLI.
2
3diesel::table! {
4    /// Representation of the `audit_log` table.
5    ///
6    /// (Automatically generated by Diesel.)
7    audit_log (id) {
8        /// The `id` column of the `audit_log` table.
9        ///
10        /// Its SQL type is `Int8`.
11        ///
12        /// (Automatically generated by Diesel.)
13        id -> Int8,
14        /// The `actor` column of the `audit_log` table.
15        ///
16        /// Its SQL type is `Varchar`.
17        ///
18        /// (Automatically generated by Diesel.)
19        #[max_length = 200]
20        actor -> Varchar,
21        /// The `action` column of the `audit_log` table.
22        ///
23        /// Its SQL type is `Varchar`.
24        ///
25        /// (Automatically generated by Diesel.)
26        #[max_length = 100]
27        action -> Varchar,
28        /// The `target` column of the `audit_log` table.
29        ///
30        /// Its SQL type is `Varchar`.
31        ///
32        /// (Automatically generated by Diesel.)
33        #[max_length = 512]
34        target -> Varchar,
35        /// The `outcome` column of the `audit_log` table.
36        ///
37        /// Its SQL type is `Varchar`.
38        ///
39        /// (Automatically generated by Diesel.)
40        #[max_length = 48]
41        outcome -> Varchar,
42        /// The `details` column of the `audit_log` table.
43        ///
44        /// Its SQL type is `Text`.
45        ///
46        /// (Automatically generated by Diesel.)
47        details -> Text,
48        /// The `at` column of the `audit_log` table.
49        ///
50        /// Its SQL type is `Timestamp`.
51        ///
52        /// (Automatically generated by Diesel.)
53        at -> Timestamp,
54    }
55}
56
57diesel::table! {
58    /// Representation of the `corpora` table.
59    ///
60    /// (Automatically generated by Diesel.)
61    corpora (id) {
62        /// The `id` column of the `corpora` table.
63        ///
64        /// Its SQL type is `Int4`.
65        ///
66        /// (Automatically generated by Diesel.)
67        id -> Int4,
68        /// The `path` column of the `corpora` table.
69        ///
70        /// Its SQL type is `Varchar`.
71        ///
72        /// (Automatically generated by Diesel.)
73        #[max_length = 200]
74        path -> Varchar,
75        /// The `name` column of the `corpora` table.
76        ///
77        /// Its SQL type is `Varchar`.
78        ///
79        /// (Automatically generated by Diesel.)
80        #[max_length = 200]
81        name -> Varchar,
82        /// The `complex` column of the `corpora` table.
83        ///
84        /// Its SQL type is `Bool`.
85        ///
86        /// (Automatically generated by Diesel.)
87        complex -> Bool,
88        /// The `description` column of the `corpora` table.
89        ///
90        /// Its SQL type is `Text`.
91        ///
92        /// (Automatically generated by Diesel.)
93        description -> Text,
94        /// The `parent_corpus_id` column of the `corpora` table.
95        ///
96        /// Its SQL type is `Nullable<Int4>`.
97        ///
98        /// (Automatically generated by Diesel.)
99        parent_corpus_id -> Nullable<Int4>,
100        /// The `selection` column of the `corpora` table.
101        ///
102        /// Its SQL type is `Nullable<Jsonb>`.
103        ///
104        /// (Automatically generated by Diesel.)
105        selection -> Nullable<Jsonb>,
106        /// The `public_id` column of the `corpora` table.
107        ///
108        /// Its SQL type is `Uuid`.
109        ///
110        /// (Automatically generated by Diesel.)
111        public_id -> Uuid,
112    }
113}
114
115diesel::table! {
116    /// Representation of the `historical_runs` table.
117    ///
118    /// (Automatically generated by Diesel.)
119    historical_runs (id) {
120        /// The `id` column of the `historical_runs` table.
121        ///
122        /// Its SQL type is `Int4`.
123        ///
124        /// (Automatically generated by Diesel.)
125        id -> Int4,
126        /// The `service_id` column of the `historical_runs` table.
127        ///
128        /// Its SQL type is `Int4`.
129        ///
130        /// (Automatically generated by Diesel.)
131        service_id -> Int4,
132        /// The `corpus_id` column of the `historical_runs` table.
133        ///
134        /// Its SQL type is `Int4`.
135        ///
136        /// (Automatically generated by Diesel.)
137        corpus_id -> Int4,
138        /// The `total` column of the `historical_runs` table.
139        ///
140        /// Its SQL type is `Int4`.
141        ///
142        /// (Automatically generated by Diesel.)
143        total -> Int4,
144        /// The `invalid` column of the `historical_runs` table.
145        ///
146        /// Its SQL type is `Int4`.
147        ///
148        /// (Automatically generated by Diesel.)
149        invalid -> Int4,
150        /// The `fatal` column of the `historical_runs` table.
151        ///
152        /// Its SQL type is `Int4`.
153        ///
154        /// (Automatically generated by Diesel.)
155        fatal -> Int4,
156        /// The `error` column of the `historical_runs` table.
157        ///
158        /// Its SQL type is `Int4`.
159        ///
160        /// (Automatically generated by Diesel.)
161        error -> Int4,
162        /// The `warning` column of the `historical_runs` table.
163        ///
164        /// Its SQL type is `Int4`.
165        ///
166        /// (Automatically generated by Diesel.)
167        warning -> Int4,
168        /// The `no_problem` column of the `historical_runs` table.
169        ///
170        /// Its SQL type is `Int4`.
171        ///
172        /// (Automatically generated by Diesel.)
173        no_problem -> Int4,
174        /// The `in_progress` column of the `historical_runs` table.
175        ///
176        /// Its SQL type is `Int4`.
177        ///
178        /// (Automatically generated by Diesel.)
179        in_progress -> Int4,
180        /// The `start_time` column of the `historical_runs` table.
181        ///
182        /// Its SQL type is `Timestamp`.
183        ///
184        /// (Automatically generated by Diesel.)
185        start_time -> Timestamp,
186        /// The `end_time` column of the `historical_runs` table.
187        ///
188        /// Its SQL type is `Nullable<Timestamp>`.
189        ///
190        /// (Automatically generated by Diesel.)
191        end_time -> Nullable<Timestamp>,
192        /// The `owner` column of the `historical_runs` table.
193        ///
194        /// Its SQL type is `Varchar`.
195        ///
196        /// (Automatically generated by Diesel.)
197        #[max_length = 200]
198        owner -> Varchar,
199        /// The `description` column of the `historical_runs` table.
200        ///
201        /// Its SQL type is `Text`.
202        ///
203        /// (Automatically generated by Diesel.)
204        description -> Text,
205        /// The `public_id` column of the `historical_runs` table.
206        ///
207        /// Its SQL type is `Uuid`.
208        ///
209        /// (Automatically generated by Diesel.)
210        public_id -> Uuid,
211    }
212}
213
214diesel::table! {
215    /// Representation of the `historical_tasks` table.
216    ///
217    /// (Automatically generated by Diesel.)
218    historical_tasks (id) {
219        /// The `id` column of the `historical_tasks` table.
220        ///
221        /// Its SQL type is `Int8`.
222        ///
223        /// (Automatically generated by Diesel.)
224        id -> Int8,
225        /// The `task_id` column of the `historical_tasks` table.
226        ///
227        /// Its SQL type is `Int8`.
228        ///
229        /// (Automatically generated by Diesel.)
230        task_id -> Int8,
231        /// The `status` column of the `historical_tasks` table.
232        ///
233        /// Its SQL type is `Int4`.
234        ///
235        /// (Automatically generated by Diesel.)
236        status -> Int4,
237        /// The `saved_at` column of the `historical_tasks` table.
238        ///
239        /// Its SQL type is `Timestamp`.
240        ///
241        /// (Automatically generated by Diesel.)
242        saved_at -> Timestamp,
243    }
244}
245
246diesel::table! {
247    /// Representation of the `jobs` table.
248    ///
249    /// (Automatically generated by Diesel.)
250    jobs (id) {
251        /// The `id` column of the `jobs` table.
252        ///
253        /// Its SQL type is `Int8`.
254        ///
255        /// (Automatically generated by Diesel.)
256        id -> Int8,
257        /// The `uuid` column of the `jobs` table.
258        ///
259        /// Its SQL type is `Uuid`.
260        ///
261        /// (Automatically generated by Diesel.)
262        uuid -> Uuid,
263        /// The `kind` column of the `jobs` table.
264        ///
265        /// Its SQL type is `Varchar`.
266        ///
267        /// (Automatically generated by Diesel.)
268        #[max_length = 50]
269        kind -> Varchar,
270        /// The `status` column of the `jobs` table.
271        ///
272        /// Its SQL type is `Varchar`.
273        ///
274        /// (Automatically generated by Diesel.)
275        #[max_length = 20]
276        status -> Varchar,
277        /// The `progress_current` column of the `jobs` table.
278        ///
279        /// Its SQL type is `Int4`.
280        ///
281        /// (Automatically generated by Diesel.)
282        progress_current -> Int4,
283        /// The `progress_total` column of the `jobs` table.
284        ///
285        /// Its SQL type is `Nullable<Int4>`.
286        ///
287        /// (Automatically generated by Diesel.)
288        progress_total -> Nullable<Int4>,
289        /// The `message` column of the `jobs` table.
290        ///
291        /// Its SQL type is `Text`.
292        ///
293        /// (Automatically generated by Diesel.)
294        message -> Text,
295        /// The `actor` column of the `jobs` table.
296        ///
297        /// Its SQL type is `Varchar`.
298        ///
299        /// (Automatically generated by Diesel.)
300        #[max_length = 200]
301        actor -> Varchar,
302        /// The `params` column of the `jobs` table.
303        ///
304        /// Its SQL type is `Jsonb`.
305        ///
306        /// (Automatically generated by Diesel.)
307        params -> Jsonb,
308        /// The `result` column of the `jobs` table.
309        ///
310        /// Its SQL type is `Nullable<Jsonb>`.
311        ///
312        /// (Automatically generated by Diesel.)
313        result -> Nullable<Jsonb>,
314        /// The `created_at` column of the `jobs` table.
315        ///
316        /// Its SQL type is `Timestamp`.
317        ///
318        /// (Automatically generated by Diesel.)
319        created_at -> Timestamp,
320        /// The `updated_at` column of the `jobs` table.
321        ///
322        /// Its SQL type is `Timestamp`.
323        ///
324        /// (Automatically generated by Diesel.)
325        updated_at -> Timestamp,
326    }
327}
328
329diesel::table! {
330    /// Representation of the `log_errors` table.
331    ///
332    /// (Automatically generated by Diesel.)
333    log_errors (id) {
334        /// The `id` column of the `log_errors` table.
335        ///
336        /// Its SQL type is `Int8`.
337        ///
338        /// (Automatically generated by Diesel.)
339        id -> Int8,
340        /// The `task_id` column of the `log_errors` table.
341        ///
342        /// Its SQL type is `Int8`.
343        ///
344        /// (Automatically generated by Diesel.)
345        task_id -> Int8,
346        /// The `category` column of the `log_errors` table.
347        ///
348        /// Its SQL type is `Nullable<Varchar>`.
349        ///
350        /// (Automatically generated by Diesel.)
351        #[max_length = 50]
352        category -> Nullable<Varchar>,
353        /// The `what` column of the `log_errors` table.
354        ///
355        /// Its SQL type is `Nullable<Varchar>`.
356        ///
357        /// (Automatically generated by Diesel.)
358        #[max_length = 50]
359        what -> Nullable<Varchar>,
360        /// The `details` column of the `log_errors` table.
361        ///
362        /// Its SQL type is `Nullable<Varchar>`.
363        ///
364        /// (Automatically generated by Diesel.)
365        #[max_length = 2000]
366        details -> Nullable<Varchar>,
367        /// The `recorded_at` column of the `log_errors` table.
368        ///
369        /// Its SQL type is `Nullable<Timestamptz>`.
370        ///
371        /// (Automatically generated by Diesel.)
372        recorded_at -> Nullable<Timestamptz>,
373    }
374}
375
376diesel::table! {
377    /// Representation of the `log_fatals` table.
378    ///
379    /// (Automatically generated by Diesel.)
380    log_fatals (id) {
381        /// The `id` column of the `log_fatals` table.
382        ///
383        /// Its SQL type is `Int8`.
384        ///
385        /// (Automatically generated by Diesel.)
386        id -> Int8,
387        /// The `task_id` column of the `log_fatals` table.
388        ///
389        /// Its SQL type is `Int8`.
390        ///
391        /// (Automatically generated by Diesel.)
392        task_id -> Int8,
393        /// The `category` column of the `log_fatals` table.
394        ///
395        /// Its SQL type is `Nullable<Varchar>`.
396        ///
397        /// (Automatically generated by Diesel.)
398        #[max_length = 50]
399        category -> Nullable<Varchar>,
400        /// The `what` column of the `log_fatals` table.
401        ///
402        /// Its SQL type is `Nullable<Varchar>`.
403        ///
404        /// (Automatically generated by Diesel.)
405        #[max_length = 50]
406        what -> Nullable<Varchar>,
407        /// The `details` column of the `log_fatals` table.
408        ///
409        /// Its SQL type is `Nullable<Varchar>`.
410        ///
411        /// (Automatically generated by Diesel.)
412        #[max_length = 2000]
413        details -> Nullable<Varchar>,
414        /// The `recorded_at` column of the `log_fatals` table.
415        ///
416        /// Its SQL type is `Nullable<Timestamptz>`.
417        ///
418        /// (Automatically generated by Diesel.)
419        recorded_at -> Nullable<Timestamptz>,
420    }
421}
422
423diesel::table! {
424    /// Representation of the `log_infos` table.
425    ///
426    /// (Automatically generated by Diesel.)
427    log_infos (id) {
428        /// The `id` column of the `log_infos` table.
429        ///
430        /// Its SQL type is `Int8`.
431        ///
432        /// (Automatically generated by Diesel.)
433        id -> Int8,
434        /// The `task_id` column of the `log_infos` table.
435        ///
436        /// Its SQL type is `Int8`.
437        ///
438        /// (Automatically generated by Diesel.)
439        task_id -> Int8,
440        /// The `category` column of the `log_infos` table.
441        ///
442        /// Its SQL type is `Nullable<Varchar>`.
443        ///
444        /// (Automatically generated by Diesel.)
445        #[max_length = 50]
446        category -> Nullable<Varchar>,
447        /// The `what` column of the `log_infos` table.
448        ///
449        /// Its SQL type is `Nullable<Varchar>`.
450        ///
451        /// (Automatically generated by Diesel.)
452        #[max_length = 50]
453        what -> Nullable<Varchar>,
454        /// The `details` column of the `log_infos` table.
455        ///
456        /// Its SQL type is `Nullable<Varchar>`.
457        ///
458        /// (Automatically generated by Diesel.)
459        #[max_length = 2000]
460        details -> Nullable<Varchar>,
461    }
462}
463
464diesel::table! {
465    /// Representation of the `log_invalids` table.
466    ///
467    /// (Automatically generated by Diesel.)
468    log_invalids (id) {
469        /// The `id` column of the `log_invalids` table.
470        ///
471        /// Its SQL type is `Int8`.
472        ///
473        /// (Automatically generated by Diesel.)
474        id -> Int8,
475        /// The `task_id` column of the `log_invalids` table.
476        ///
477        /// Its SQL type is `Int8`.
478        ///
479        /// (Automatically generated by Diesel.)
480        task_id -> Int8,
481        /// The `category` column of the `log_invalids` table.
482        ///
483        /// Its SQL type is `Nullable<Varchar>`.
484        ///
485        /// (Automatically generated by Diesel.)
486        #[max_length = 50]
487        category -> Nullable<Varchar>,
488        /// The `what` column of the `log_invalids` table.
489        ///
490        /// Its SQL type is `Nullable<Varchar>`.
491        ///
492        /// (Automatically generated by Diesel.)
493        #[max_length = 50]
494        what -> Nullable<Varchar>,
495        /// The `details` column of the `log_invalids` table.
496        ///
497        /// Its SQL type is `Nullable<Varchar>`.
498        ///
499        /// (Automatically generated by Diesel.)
500        #[max_length = 2000]
501        details -> Nullable<Varchar>,
502    }
503}
504
505diesel::table! {
506    /// Representation of the `log_warnings` table.
507    ///
508    /// (Automatically generated by Diesel.)
509    log_warnings (id) {
510        /// The `id` column of the `log_warnings` table.
511        ///
512        /// Its SQL type is `Int8`.
513        ///
514        /// (Automatically generated by Diesel.)
515        id -> Int8,
516        /// The `task_id` column of the `log_warnings` table.
517        ///
518        /// Its SQL type is `Int8`.
519        ///
520        /// (Automatically generated by Diesel.)
521        task_id -> Int8,
522        /// The `category` column of the `log_warnings` table.
523        ///
524        /// Its SQL type is `Nullable<Varchar>`.
525        ///
526        /// (Automatically generated by Diesel.)
527        #[max_length = 50]
528        category -> Nullable<Varchar>,
529        /// The `what` column of the `log_warnings` table.
530        ///
531        /// Its SQL type is `Nullable<Varchar>`.
532        ///
533        /// (Automatically generated by Diesel.)
534        #[max_length = 50]
535        what -> Nullable<Varchar>,
536        /// The `details` column of the `log_warnings` table.
537        ///
538        /// Its SQL type is `Nullable<Varchar>`.
539        ///
540        /// (Automatically generated by Diesel.)
541        #[max_length = 2000]
542        details -> Nullable<Varchar>,
543        /// The `recorded_at` column of the `log_warnings` table.
544        ///
545        /// Its SQL type is `Nullable<Timestamptz>`.
546        ///
547        /// (Automatically generated by Diesel.)
548        recorded_at -> Nullable<Timestamptz>,
549    }
550}
551
552diesel::table! {
553    /// Representation of the `report_grain_cache` table.
554    ///
555    /// (Automatically generated by Diesel.)
556    report_grain_cache (id) {
557        /// The `corpus_id` column of the `report_grain_cache` table.
558        ///
559        /// Its SQL type is `Int4`.
560        ///
561        /// (Automatically generated by Diesel.)
562        corpus_id -> Int4,
563        /// The `service_id` column of the `report_grain_cache` table.
564        ///
565        /// Its SQL type is `Int4`.
566        ///
567        /// (Automatically generated by Diesel.)
568        service_id -> Int4,
569        /// The `severity` column of the `report_grain_cache` table.
570        ///
571        /// Its SQL type is `Text`.
572        ///
573        /// (Automatically generated by Diesel.)
574        severity -> Text,
575        /// The `category` column of the `report_grain_cache` table.
576        ///
577        /// Its SQL type is `Nullable<Varchar>`.
578        ///
579        /// (Automatically generated by Diesel.)
580        category -> Nullable<Varchar>,
581        /// The `what` column of the `report_grain_cache` table.
582        ///
583        /// Its SQL type is `Nullable<Varchar>`.
584        ///
585        /// (Automatically generated by Diesel.)
586        what -> Nullable<Varchar>,
587        /// The `category_is_total` column of the `report_grain_cache` table.
588        ///
589        /// Its SQL type is `Int4`.
590        ///
591        /// (Automatically generated by Diesel.)
592        category_is_total -> Int4,
593        /// The `what_is_total` column of the `report_grain_cache` table.
594        ///
595        /// Its SQL type is `Int4`.
596        ///
597        /// (Automatically generated by Diesel.)
598        what_is_total -> Int4,
599        /// The `task_count` column of the `report_grain_cache` table.
600        ///
601        /// Its SQL type is `Int8`.
602        ///
603        /// (Automatically generated by Diesel.)
604        task_count -> Int8,
605        /// The `message_count` column of the `report_grain_cache` table.
606        ///
607        /// Its SQL type is `Int8`.
608        ///
609        /// (Automatically generated by Diesel.)
610        message_count -> Int8,
611        /// The `computed_at` column of the `report_grain_cache` table.
612        ///
613        /// Its SQL type is `Timestamptz`.
614        ///
615        /// (Automatically generated by Diesel.)
616        computed_at -> Timestamptz,
617        /// The `id` column of the `report_grain_cache` table.
618        ///
619        /// Its SQL type is `Int8`.
620        ///
621        /// (Automatically generated by Diesel.)
622        id -> Int8,
623    }
624}
625
626diesel::table! {
627    /// Representation of the `report_summary_meta` table.
628    ///
629    /// (Automatically generated by Diesel.)
630    report_summary_meta (singleton) {
631        /// The `singleton` column of the `report_summary_meta` table.
632        ///
633        /// Its SQL type is `Bool`.
634        ///
635        /// (Automatically generated by Diesel.)
636        singleton -> Bool,
637        /// The `refreshed_at` column of the `report_summary_meta` table.
638        ///
639        /// Its SQL type is `Timestamptz`.
640        ///
641        /// (Automatically generated by Diesel.)
642        refreshed_at -> Timestamptz,
643    }
644}
645
646diesel::table! {
647    /// Representation of the `services` table.
648    ///
649    /// (Automatically generated by Diesel.)
650    services (id) {
651        /// The `id` column of the `services` table.
652        ///
653        /// Its SQL type is `Int4`.
654        ///
655        /// (Automatically generated by Diesel.)
656        id -> Int4,
657        /// The `name` column of the `services` table.
658        ///
659        /// Its SQL type is `Varchar`.
660        ///
661        /// (Automatically generated by Diesel.)
662        #[max_length = 200]
663        name -> Varchar,
664        /// The `version` column of the `services` table.
665        ///
666        /// Its SQL type is `Float4`.
667        ///
668        /// (Automatically generated by Diesel.)
669        version -> Float4,
670        /// The `inputformat` column of the `services` table.
671        ///
672        /// Its SQL type is `Varchar`.
673        ///
674        /// (Automatically generated by Diesel.)
675        #[max_length = 20]
676        inputformat -> Varchar,
677        /// The `outputformat` column of the `services` table.
678        ///
679        /// Its SQL type is `Varchar`.
680        ///
681        /// (Automatically generated by Diesel.)
682        #[max_length = 20]
683        outputformat -> Varchar,
684        /// The `inputconverter` column of the `services` table.
685        ///
686        /// Its SQL type is `Nullable<Varchar>`.
687        ///
688        /// (Automatically generated by Diesel.)
689        #[max_length = 200]
690        inputconverter -> Nullable<Varchar>,
691        /// The `complex` column of the `services` table.
692        ///
693        /// Its SQL type is `Bool`.
694        ///
695        /// (Automatically generated by Diesel.)
696        complex -> Bool,
697        /// The `description` column of the `services` table.
698        ///
699        /// Its SQL type is `Text`.
700        ///
701        /// (Automatically generated by Diesel.)
702        description -> Text,
703        /// The `public_id` column of the `services` table.
704        ///
705        /// Its SQL type is `Uuid`.
706        ///
707        /// (Automatically generated by Diesel.)
708        public_id -> Uuid,
709        /// The `lease_timeout_seconds` column of the `services` table.
710        ///
711        /// Its SQL type is `Nullable<Int4>`.
712        ///
713        /// (Automatically generated by Diesel.)
714        lease_timeout_seconds -> Nullable<Int4>,
715    }
716}
717
718diesel::table! {
719    /// Representation of the `sessions` table.
720    ///
721    /// (Automatically generated by Diesel.)
722    sessions (id) {
723        /// The `id` column of the `sessions` table.
724        ///
725        /// Its SQL type is `Varchar`.
726        ///
727        /// (Automatically generated by Diesel.)
728        #[max_length = 64]
729        id -> Varchar,
730        /// The `owner` column of the `sessions` table.
731        ///
732        /// Its SQL type is `Varchar`.
733        ///
734        /// (Automatically generated by Diesel.)
735        #[max_length = 200]
736        owner -> Varchar,
737        /// The `method` column of the `sessions` table.
738        ///
739        /// Its SQL type is `Varchar`.
740        ///
741        /// (Automatically generated by Diesel.)
742        #[max_length = 20]
743        method -> Varchar,
744        /// The `created_at` column of the `sessions` table.
745        ///
746        /// Its SQL type is `Timestamp`.
747        ///
748        /// (Automatically generated by Diesel.)
749        created_at -> Timestamp,
750        /// The `expires_at` column of the `sessions` table.
751        ///
752        /// Its SQL type is `Timestamp`.
753        ///
754        /// (Automatically generated by Diesel.)
755        expires_at -> Timestamp,
756    }
757}
758
759diesel::table! {
760    /// Representation of the `task_runtimes` table.
761    ///
762    /// (Automatically generated by Diesel.)
763    task_runtimes (task_id) {
764        /// The `task_id` column of the `task_runtimes` table.
765        ///
766        /// Its SQL type is `Int8`.
767        ///
768        /// (Automatically generated by Diesel.)
769        task_id -> Int8,
770        /// The `service_id` column of the `task_runtimes` table.
771        ///
772        /// Its SQL type is `Int4`.
773        ///
774        /// (Automatically generated by Diesel.)
775        service_id -> Int4,
776        /// The `runtime_ms` column of the `task_runtimes` table.
777        ///
778        /// Its SQL type is `Int4`.
779        ///
780        /// (Automatically generated by Diesel.)
781        runtime_ms -> Int4,
782    }
783}
784
785diesel::table! {
786    /// Representation of the `tasks` table.
787    ///
788    /// (Automatically generated by Diesel.)
789    tasks (id) {
790        /// The `id` column of the `tasks` table.
791        ///
792        /// Its SQL type is `Int8`.
793        ///
794        /// (Automatically generated by Diesel.)
795        id -> Int8,
796        /// The `service_id` column of the `tasks` table.
797        ///
798        /// Its SQL type is `Int4`.
799        ///
800        /// (Automatically generated by Diesel.)
801        service_id -> Int4,
802        /// The `corpus_id` column of the `tasks` table.
803        ///
804        /// Its SQL type is `Int4`.
805        ///
806        /// (Automatically generated by Diesel.)
807        corpus_id -> Int4,
808        /// The `status` column of the `tasks` table.
809        ///
810        /// Its SQL type is `Int4`.
811        ///
812        /// (Automatically generated by Diesel.)
813        status -> Int4,
814        /// The `entry` column of the `tasks` table.
815        ///
816        /// Its SQL type is `Varchar`.
817        ///
818        /// (Automatically generated by Diesel.)
819        #[max_length = 4096]
820        entry -> Varchar,
821    }
822}
823
824diesel::table! {
825    /// Representation of the `webauthn_credentials` table.
826    ///
827    /// (Automatically generated by Diesel.)
828    webauthn_credentials (id) {
829        /// The `id` column of the `webauthn_credentials` table.
830        ///
831        /// Its SQL type is `Int8`.
832        ///
833        /// (Automatically generated by Diesel.)
834        id -> Int8,
835        /// The `owner` column of the `webauthn_credentials` table.
836        ///
837        /// Its SQL type is `Varchar`.
838        ///
839        /// (Automatically generated by Diesel.)
840        #[max_length = 200]
841        owner -> Varchar,
842        /// The `label` column of the `webauthn_credentials` table.
843        ///
844        /// Its SQL type is `Varchar`.
845        ///
846        /// (Automatically generated by Diesel.)
847        #[max_length = 200]
848        label -> Varchar,
849        /// The `credential` column of the `webauthn_credentials` table.
850        ///
851        /// Its SQL type is `Jsonb`.
852        ///
853        /// (Automatically generated by Diesel.)
854        credential -> Jsonb,
855        /// The `created_at` column of the `webauthn_credentials` table.
856        ///
857        /// Its SQL type is `Timestamp`.
858        ///
859        /// (Automatically generated by Diesel.)
860        created_at -> Timestamp,
861        /// The `last_used` column of the `webauthn_credentials` table.
862        ///
863        /// Its SQL type is `Nullable<Timestamp>`.
864        ///
865        /// (Automatically generated by Diesel.)
866        last_used -> Nullable<Timestamp>,
867    }
868}
869
870diesel::table! {
871    /// Representation of the `webauthn_users` table.
872    ///
873    /// (Automatically generated by Diesel.)
874    webauthn_users (owner) {
875        /// The `owner` column of the `webauthn_users` table.
876        ///
877        /// Its SQL type is `Varchar`.
878        ///
879        /// (Automatically generated by Diesel.)
880        #[max_length = 200]
881        owner -> Varchar,
882        /// The `handle` column of the `webauthn_users` table.
883        ///
884        /// Its SQL type is `Uuid`.
885        ///
886        /// (Automatically generated by Diesel.)
887        handle -> Uuid,
888        /// The `created_at` column of the `webauthn_users` table.
889        ///
890        /// Its SQL type is `Timestamp`.
891        ///
892        /// (Automatically generated by Diesel.)
893        created_at -> Timestamp,
894    }
895}
896
897diesel::table! {
898    /// Representation of the `worker_metadata` table.
899    ///
900    /// (Automatically generated by Diesel.)
901    worker_metadata (id) {
902        /// The `id` column of the `worker_metadata` table.
903        ///
904        /// Its SQL type is `Int4`.
905        ///
906        /// (Automatically generated by Diesel.)
907        id -> Int4,
908        /// The `service_id` column of the `worker_metadata` table.
909        ///
910        /// Its SQL type is `Int4`.
911        ///
912        /// (Automatically generated by Diesel.)
913        service_id -> Int4,
914        /// The `last_dispatched_task_id` column of the `worker_metadata` table.
915        ///
916        /// Its SQL type is `Int8`.
917        ///
918        /// (Automatically generated by Diesel.)
919        last_dispatched_task_id -> Int8,
920        /// The `last_returned_task_id` column of the `worker_metadata` table.
921        ///
922        /// Its SQL type is `Nullable<Int8>`.
923        ///
924        /// (Automatically generated by Diesel.)
925        last_returned_task_id -> Nullable<Int8>,
926        /// The `total_dispatched` column of the `worker_metadata` table.
927        ///
928        /// Its SQL type is `Int4`.
929        ///
930        /// (Automatically generated by Diesel.)
931        total_dispatched -> Int4,
932        /// The `total_returned` column of the `worker_metadata` table.
933        ///
934        /// Its SQL type is `Int4`.
935        ///
936        /// (Automatically generated by Diesel.)
937        total_returned -> Int4,
938        /// The `first_seen` column of the `worker_metadata` table.
939        ///
940        /// Its SQL type is `Timestamp`.
941        ///
942        /// (Automatically generated by Diesel.)
943        first_seen -> Timestamp,
944        /// The `session_seen` column of the `worker_metadata` table.
945        ///
946        /// Its SQL type is `Nullable<Timestamp>`.
947        ///
948        /// (Automatically generated by Diesel.)
949        session_seen -> Nullable<Timestamp>,
950        /// The `time_last_dispatch` column of the `worker_metadata` table.
951        ///
952        /// Its SQL type is `Timestamp`.
953        ///
954        /// (Automatically generated by Diesel.)
955        time_last_dispatch -> Timestamp,
956        /// The `time_last_return` column of the `worker_metadata` table.
957        ///
958        /// Its SQL type is `Nullable<Timestamp>`.
959        ///
960        /// (Automatically generated by Diesel.)
961        time_last_return -> Nullable<Timestamp>,
962        /// The `name` column of the `worker_metadata` table.
963        ///
964        /// Its SQL type is `Varchar`.
965        ///
966        /// (Automatically generated by Diesel.)
967        #[max_length = 200]
968        name -> Varchar,
969    }
970}
971
972diesel::joinable!(historical_tasks -> tasks (task_id));
973diesel::joinable!(log_errors -> tasks (task_id));
974diesel::joinable!(log_fatals -> tasks (task_id));
975diesel::joinable!(log_infos -> tasks (task_id));
976diesel::joinable!(log_invalids -> tasks (task_id));
977diesel::joinable!(log_warnings -> tasks (task_id));
978diesel::joinable!(tasks -> corpora (corpus_id));
979diesel::joinable!(tasks -> services (service_id));
980diesel::joinable!(webauthn_credentials -> webauthn_users (owner));
981
982diesel::allow_tables_to_appear_in_same_query!(
983  audit_log,
984  corpora,
985  historical_runs,
986  historical_tasks,
987  jobs,
988  log_errors,
989  log_fatals,
990  log_infos,
991  log_invalids,
992  log_warnings,
993  report_grain_cache,
994  report_summary_meta,
995  services,
996  sessions,
997  task_runtimes,
998  tasks,
999  webauthn_credentials,
1000  webauthn_users,
1001  worker_metadata,
1002);