masudur-rahman / expense-tracker-bot

Telegram Bot for Tracking daily transactions
Apache License 2.0
9 stars 0 forks source link

Transaction Flow #1

Open masudur-rahman opened 1 year ago

masudur-rahman commented 1 year ago

IMG_20230628_004115

masudur-rahman commented 1 year ago

Expense Tracker

System Entities

Accounts:

UserDebts:

Debtors:

Creditors:

Transactions:

TxnCategory:

TxnSubcategory:

Categories and Subcategories:

Food: food Restaurants (rest) Groceries (grocery) Takeout (takeout) Snacks (snacks) Fruits (fruits) Housing: house Rent (rent) Utilities (utility) Furniture () Electronics Real State Entertainment: ent Movies Subscription Recreation Books Personal Care: personal Salon Toiletries Gym Clothing Health Travel: travel Accommodation Dining Sightseeing Transportation Gifts Miscellaneous: misc Withdraw DPS Credit Card Payment Bank Transfer Giveaway Misc


Categories and Subcategories:

Food: -> food Restaurants -> food-rest Groceries -> food-groc Takeout -> food-take Snacks -> food-snack Fruits -> food-fruit

Housing: -> house Rent -> house-rent Utilities -> house-util Furniture -> house-furn Electronics -> house-elec Real State -> house-real

Entertainment: -> ent Movies -> ent-movie Subscription -> ent-sub Recreation -> ent-rec Books -> ent-books

Personal Care: -> pc Salon -> pc-salon Toiletries -> pc-toilet Gym -> pc-gym Clothing -> pc-cloth Health -> pc-health

Travel: -> trv Accommodation -> trv-accom Dining -> trv-dine Sightseeing -> trv-sight Transportation -> trv-trans Gifts -> trv-gift

Financial: -> fin Salary -> fin-sal Withdraw -> fin-with DPS -> fin-dps Credit Card Payment -> fin-ccpay Bank Transfer -> fin-bank Loan -> fin-loan Borrow -> fin-borrow

Miscellaneous: -> misc Giveaway -> misc-give Misc -> misc-misc


System Entities

Accounts:

User:

Transactions: {Also will be used for Debts and Credits as expense and income, but will be mentioned in subcategory}

TxnCategory:

TxnSubcategory:

There would be different types of transcations in system.

What should be the sequence of user input ?

Type -> Amount -> SrcID (and/or) DstID -> Category -> Subcategory -> (UserID) -> Remarks