Allicce / engeto-hackethon-team-3

0 stars 0 forks source link

[backend] create transaction #1

Open Allicce opened 1 week ago

Allicce commented 1 week ago

Examples of possible data visualization in frontend for returning all transactions:

Periods Descriptions
Nov 2024 Return all transactions from 1.11.2024 until now
March 2024 Return all transactions from 1.3.2024 to 31.3.2024
1.11.2024 - 19.11.2024 Return all transactions for periods 1.11.2024 - 19.11.2024
1.1.2024 - 19.11.2024 Return all transactions for periods 1.1.2024 - 19.11.2024

Examples of possible data visualization in frontend for returning all categories and amounts:

Periods Descriptions
Nov 2024 Return all categories and amounts from 1.11.2024 until now
March 2024 Return all categories and amounts from 1.3.2024 to 31.3.2024
1.11.2024 - 19.11.2024 Return all categories and amounts for periods 1.11.2024 - 19.11.2024
1.1.2024 - 19.11.2024 Return all categories and amounts for periods 1.1.2024 - 19.11.2024

Example of category data:

{
   name: 'Book',
  amount: '15 500',
  currency: 'czk',
  color: ''#64B5F6'
}

Transaction Data Structure

name: String date: UNIX timestamp category: enumeration of [CATEGORIES] budget-category: enumeration of [BUDGET_CTEGORIES] contributor: enumeration of [BUDGET_ALLOWED_USERS] amount: number transaction-type: enumeration of [TRANSACTION_TYPES]