summaryrefslogtreecommitdiff
path: root/rust/actualbudget_models/src/actualbudget_schema.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-11-17 16:37:38 +0000
committerJoe Carstairs <me@joeac.net>2024-11-17 16:37:38 +0000
commit4967cbabfc2fddc903dfaa17b11b2baa006fb218 (patch)
treec9672dc18e78e065ec3c0cc26032d4b91df153e9 /rust/actualbudget_models/src/actualbudget_schema.rs
parente044c796405c1800289160cb50d295cf2eda76cf (diff)
actualbudget queries integration tests
Diffstat (limited to 'rust/actualbudget_models/src/actualbudget_schema.rs')
-rw-r--r--rust/actualbudget_models/src/actualbudget_schema.rs25
1 files changed, 16 insertions, 9 deletions
diff --git a/rust/actualbudget_models/src/actualbudget_schema.rs b/rust/actualbudget_models/src/actualbudget_schema.rs
index a872231..02907c0 100644
--- a/rust/actualbudget_models/src/actualbudget_schema.rs
+++ b/rust/actualbudget_models/src/actualbudget_schema.rs
@@ -13,22 +13,29 @@ diesel::table! {
}
diesel::table! {
- transactions (id) {
+ v_transactions (id) {
id -> Text,
- #[sql_name = "isParent"]
is_parent -> Bool,
- #[sql_name = "isChild"]
is_child -> Bool,
- #[sql_name = "acct"]
+ parent_id -> Nullable<Text>,
+ #[sql_name = "account"]
account_id -> Text,
#[sql_name = "category"]
- category_id -> Text,
+ category_id -> Nullable<Text>,
amount -> Integer,
- #[sql_name = "description"]
- payee -> Text,
- notes -> Text,
+ payee -> Nullable<Text>,
+ notes -> Nullable<Text>,
date -> Integer,
- parent_id -> Nullable<Text>,
+ // imported_id -> Text,
+ // error -> Text,
+ // imported_payee -> Text,
+ // starting_balance_flag -> Integer,
+ // transfer_id -> Text,
+ // sort_order -> Real,
+ // cleared -> Integer,
+ // reconciled -> Integer,
+ // tombstone -> Integer,
+ // schedule -> Text,
}
}