homestar_runtime/db/
schema.rs

1// @generated automatically by Diesel CLI.
2
3diesel::table! {
4    receipts (cid) {
5        cid -> Text,
6        ran -> Text,
7        instruction -> Text,
8        out -> Binary,
9        meta -> Binary,
10        issuer -> Nullable<Text>,
11        prf -> Binary,
12        version -> Text,
13    }
14}
15
16diesel::table! {
17    workflows (cid) {
18        cid -> Text,
19        name -> Nullable<Text>,
20        num_tasks -> Integer,
21        resources -> Binary,
22        created_at -> Timestamp,
23        completed_at -> Nullable<Timestamp>,
24        status -> crate::workflow::StatusMapping,
25        retries -> Integer,
26    }
27}
28
29diesel::table! {
30    workflows_receipts (workflow_cid, receipt_cid) {
31        workflow_cid -> Text,
32        receipt_cid -> Text,
33    }
34}
35
36diesel::joinable!(workflows_receipts -> receipts (receipt_cid));
37diesel::joinable!(workflows_receipts -> workflows (workflow_cid));
38
39diesel::allow_tables_to_appear_in_same_query!(
40    receipts,
41    workflows,
42    workflows_receipts,
43);