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    }
18}
19
20diesel::table! {
21    document_relationships (child_filepath, parent_filepath) {
22        child_id -> Text,
23        parent_id -> Text,
24        child_filepath -> Text,
25        parent_filepath -> Text,
26    }
27}
28
29diesel::table! {
30    document_search (rowid) {
31        rowid -> Integer,
32        document_filepath -> Text,
33        content -> Nullable<Text>,
34        title -> Nullable<Text>,
35        document_type -> Nullable<Text>,
36    }
37}
38
39diesel::table! {
40    document_tags (document_filepath, tag) {
41        document_filepath -> Text,
42        tag -> Text,
43    }
44}
45
46diesel::joinable!(document_tags -> documents (document_filepath));
47diesel::joinable!(document_search -> documents (document_filepath));
48
49diesel::allow_tables_to_appear_in_same_query!(
50    documents,
51    document_relationships,
52    document_search,
53    document_tags,
54);