1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
// @generated automatically by Diesel CLI.
diesel::table! {
account_transfers (id) {
id -> Integer,
amount -> Integer,
date -> Text,
description -> Text,
from_account_id -> Integer,
to_account_id -> Integer,
}
}
diesel::table! {
accounts (id) {
id -> Integer,
name -> Text,
opening_balance -> Integer,
opening_date -> Text,
}
}
diesel::table! {
bucket_transfers (id) {
id -> Integer,
amount -> Integer,
description -> Text,
from_bucket_id -> Integer,
to_bucket_id -> Integer,
}
}
diesel::table! {
buckets (id) {
id -> Integer,
balance -> Nullable<Integer>,
balance_cache_key -> Nullable<Text>,
bucket_group -> Text,
name -> Text,
}
}
diesel::table! {
drips (id) {
id -> Integer,
amount -> Integer,
bucket_id -> Integer,
date -> Text,
inserted_at_unix_seconds -> Integer,
pipe_id -> Integer,
}
}
diesel::table! {
pipes (id) {
id -> Integer,
amount -> Integer,
bucket_id -> Integer,
period_length -> Integer,
period_unit -> Text,
start_date -> Text,
}
}
diesel::table! {
transactions (id) {
id -> Integer,
account_id -> Integer,
amount -> Integer,
bucket_id -> Nullable<Integer>,
counterparty -> Text,
date -> Text,
description -> Text,
}
}
diesel::joinable!(drips -> buckets (bucket_id));
diesel::joinable!(pipes -> buckets (bucket_id));
diesel::joinable!(transactions -> accounts (account_id));
diesel::allow_tables_to_appear_in_same_query!(
account_transfers,
accounts,
bucket_transfers,
buckets,
drips,
pipes,
transactions,
);
|