diff options
| author | Joe Carstairs <me@joeac.net> | 2026-01-15 22:35:39 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-01-17 11:49:54 +0000 |
| commit | 2809e6a2ef3ea636f3de5873f6c874923b410400 (patch) | |
| tree | c018f557a34efcec5bdb3780be6fba898d37d074 /schist_core/schist_models/src/schema.rs | |
| parent | 1056421dd45b7e9af6f63a95026cb069cfa34e29 (diff) | |
renames categories -> buckets, refactors category_transfers -> bucket_transactions
Diffstat (limited to 'schist_core/schist_models/src/schema.rs')
| -rw-r--r-- | schist_core/schist_models/src/schema.rs | 8 |
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, |
