Skip to content

๐Ÿ’ฐ Wallets

User Wallet Entity

The following properties for fin_user_wallets table:

Name Type Description Unique Required
wallet_id INT Primary key, unique wallet ID โœ… โœ…
wallet_name String Name of the wallet โŒ โœ…
wallet_balance Decimal Total Balance of the wallet โŒ โœ…
wallet_description String Description of the wallet โŒ โŒ
wallet_default Decimal Default transaction of the wallet โŒ โŒ
wallet_icon String Icon of the wallet โŒ โŒ
wallet_type_id INT Foreign key from Wallet Type table โŒ โœ…
user_id INT Foreign key from User table โŒ โœ…

User Wallet Type Entity

The following properties for user_wallet_type table:

Name Type Description Unique Required
wallet_type_id INT Primary key, unique bank ID โœ… โœ…
wallet_type_name String Name of the wallet โŒ โœ…
wallet_account_type String Type of the wallet (Debit/Credit) โŒ โœ…
wallet_description String Description of wallet type โŒ โœ…
wallet_limit INT Limit of wallet type each user โŒ โœ…
wallet_type_is_active boolean Is wallet type active (Default: True) โŒ โœ…
wallet_type_is_creatable boolean Is wallet creatable (Default: True) โŒ โœ…
wallet_type_is_creditable boolean Is wallet creditable (Default: True) โŒ โœ…
wallet_type_is_debitable boolean Is wallet debitable (Default: True) โŒ โœ…
wallet_type_is_public boolean Is wallet type public (Default: False) โŒ โœ…
wallet_type_is_user boolean Is wallet transactable (Default: True) โŒ โœ…
currency_id boolean Foreign key from Currency table โŒ โœ…

NOTE - Unique: Ensures the uniqueness of the values entered into a property of a database table. - Required: Ensures that the values entered a property of a database table can NOT be NULL.

Wallet Account Type

A Wallet Account Type is a classification used to indicate the nature of transactions associated with a wallet. It helps differentiate between different types of wallets based on their primary purpose. There are two main account types:

  1. Account Credit: A debit wallet is primarily used for saving and accumulating funds.
  2. When a transaction occurs in a credit wallet, it is considered an addition (i.e., funds are added to the wallet).
  3. Examples of credit wallets include personal savings accounts, emergency funds, and investment accounts.

  4. Account Debit: A debit wallet is typically associated with loans, credit lines, or borrowed funds.

  5. When a transaction occurs in a debit wallet, it is considered a reduction (i.e., funds are deducted from the wallet).
  6. Examples of debit wallets include credit accounts, student loans, and mortgages.

  7. Is Active: An active wallet represents the current operational state of the wallet.

  8. The status of the wallet determines whether users can perform transactions with it.
  9. Examples of inactive wallets include unauthorized access attempts, security concerns, or other exceptional cases.

  10. Is Creatable: An creatable wallet represents the ability to create new wallet by the user directly.

  11. By default, wallets are creatable. Users can directly create and transact with the wallets. Non creditable wallet only can be created by administrators or designated personnel have the authority to it.
  12. Examples of non creatable wallets include benefits fund, allowance wallet, or other exceptional cases.

  13. Is Creditable: A wallet represents the accessible to credit (in/deposit) transaction by the user to the company.

  14. Users can directly initiate credit (in/deposit) transactions with a creditable wallet. When a user wants to transact with a creditable wallet, they can initiate the process by making a request.
  15. Examples of non creditable wallets include benefits fund, allowance wallets, or other not addable cases.

  16. Is Debitable: A wallet represents the accessible to debit (out/withdraw) transaction by the user to the company.

  17. Users can directly initiate debit (out/withdraw) transactions with a debitable wallet. When a user wants to transact with a debitable wallet, they can initiate the process by making a request.
  18. Examples of non creditable wallets include long term funds, saving plan, or other not withdrawable cases.

  19. Is Public: A public wallet is accessible by all users, allowing them to view its balance and transaction history.

  20. By default, wallets are not public. In other words, users cannot directly access or transact with a public wallet. Only administrators or designated personnel have the authority to manage and withdraw funds from a public wallet. It serves as a transparent account for various purposes.
  21. Examples of public wallets include collaborative, sharing, and kindness wallet for a common cause.

  22. Is User: A wallet represents the transactional wallet accessible to the user by default.

  23. In contrast, a non user wallet is not directly transactable by the user. Instead, it is managed by an administrator or system. Users cannot directly initiate transactions with a non user wallet. When a user wants to transact with a non user wallet, they can initiate the process by making a request.
  24. Examples of non user wallets include reserved funds that are not available for regular transactions.

By clearly defining the wallet account type, users can better understand the purpose and expected behavior of their wallets. Whether it's for saving or borrowing, choosing the right account type ensures effective financial management. ๐Ÿ˜Š


Powered by Berani Digital ID ยฉ 2024