metis_core/dal/database/
schema.rs

1// @generated automatically by Diesel
2
3diesel::table! {
4    documents (filepath) {
5        filepath -> Text,
6        id -> Text,
7        title -> Text,
8        document_type -> Text,
9        created_at -> Double,
10        updated_at -> Double,
11        archived -> Bool,
12        exit_criteria_met -> Bool,
13        file_hash -> Text,
14        frontmatter_json -> Text,
15        content -> Nullable<Text>,
16        phase -> Text,
17        strategy_id -> Nullable<Text>,
18        initiative_id -> Nullable<Text>,
19        short_code -> Text,
20    }
21}
22
23diesel::table! {
24    document_relationships (child_filepath, parent_filepath) {
25        child_id -> Text,
26        parent_id -> Text,
27        child_filepath -> Text,
28        parent_filepath -> Text,
29    }
30}
31
32diesel::table! {
33    document_search (rowid) {
34        rowid -> Integer,
35        document_filepath -> Text,
36        content -> Nullable<Text>,
37        title -> Nullable<Text>,
38        document_type -> Nullable<Text>,
39    }
40}
41
42diesel::table! {
43    document_tags (document_filepath, tag) {
44        document_filepath -> Text,
45        tag -> Text,
46    }
47}
48
49diesel::table! {
50    configuration (key) {
51        key -> Text,
52        value -> Text,
53        updated_at -> Double,
54    }
55}
56
57diesel::joinable!(document_tags -> documents (document_filepath));
58diesel::joinable!(document_search -> documents (document_filepath));
59
60diesel::allow_tables_to_appear_in_same_query!(
61    documents,
62    document_relationships,
63    document_search,
64    document_tags,
65    configuration,
66);