summaryrefslogtreecommitdiff
path: root/schist_core/schist_models/src/schema.rs
diff options
context:
space:
mode:
Diffstat (limited to 'schist_core/schist_models/src/schema.rs')
-rw-r--r--schist_core/schist_models/src/schema.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/schist_core/schist_models/src/schema.rs b/schist_core/schist_models/src/schema.rs
index d16e636..8744696 100644
--- a/schist_core/schist_models/src/schema.rs
+++ b/schist_core/schist_models/src/schema.rs
@@ -21,12 +21,11 @@ diesel::table! {
}
diesel::table! {
- bucket_transfers (id) {
+ bucket_transactions (id) {
id -> Integer,
amount -> Integer,
+ bucket_id -> Integer,
description -> Text,
- from_bucket_id -> Integer,
- to_bucket_id -> Integer,
}
}
@@ -74,6 +73,7 @@ diesel::table! {
}
}
+diesel::joinable!(bucket_transactions -> buckets (bucket_id));
diesel::joinable!(drips -> buckets (bucket_id));
diesel::joinable!(pipes -> buckets (bucket_id));
diesel::joinable!(transactions -> accounts (account_id));
@@ -81,7 +81,7 @@ diesel::joinable!(transactions -> accounts (account_id));
diesel::allow_tables_to_appear_in_same_query!(
account_transfers,
accounts,
- bucket_transfers,
+ bucket_transactions,
buckets,
drips,
pipes,