metis_core/dal/database/
schema.rs1diesel::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 }
20}
21
22diesel::table! {
23 document_relationships (child_filepath, parent_filepath) {
24 child_id -> Text,
25 parent_id -> Text,
26 child_filepath -> Text,
27 parent_filepath -> Text,
28 }
29}
30
31diesel::table! {
32 document_search (rowid) {
33 rowid -> Integer,
34 document_filepath -> Text,
35 content -> Nullable<Text>,
36 title -> Nullable<Text>,
37 document_type -> Nullable<Text>,
38 }
39}
40
41diesel::table! {
42 document_tags (document_filepath, tag) {
43 document_filepath -> Text,
44 tag -> Text,
45 }
46}
47
48diesel::table! {
49 configuration (key) {
50 key -> Text,
51 value -> Text,
52 updated_at -> Double,
53 }
54}
55
56diesel::joinable!(document_tags -> documents (document_filepath));
57diesel::joinable!(document_search -> documents (document_filepath));
58
59diesel::allow_tables_to_appear_in_same_query!(
60 documents,
61 document_relationships,
62 document_search,
63 document_tags,
64 configuration,
65);