Skip to content

Budget sakna3#13

Open
saknarajapakshe wants to merge 30 commits into
Merge-Myfunctionsfrom
Budget-Sakna3
Open

Budget sakna3#13
saknarajapakshe wants to merge 30 commits into
Merge-Myfunctionsfrom
Budget-Sakna3

Conversation

@saknarajapakshe

Copy link
Copy Markdown
Collaborator

No description provided.

behan02 and others added 30 commits April 30, 2025 09:17
…al; update CORS policy in Program.cs for specific origins
…RS policy in Program.cs for additional origins
- Implemented SavingRecordsController for CRUD operations on saving records.
- Created CreateSavingRecordDto and SavingRecordDto for data transfer.
- Added SavingRecord model with relationships to User and Goal.
- Updated ApplicationDbContext to include SavingRecords DbSet and configure relationships.
- Created migrations for SavingRecords table and updated existing migrations.
- Enhanced Goal model to include a collection of SavingRecords.
- Modified GoalsController to validate user existence when creating goals.
- Updated appsettings.json for local database connection.
- Removed unnecessary folder reference in project file.
- Created migration 20250717081440_AddTypeColumn to add a 'Type' column to the Categories table.
- Updated the model builder to reflect the new 'Type' property in the Category entity.
- Removed unnecessary migrations related to adding and removing 'Type' from SavingRecord.
…additional fields in Transactions table

- Created migration to add CreatedAt and UpdatedAt columns to Users table.
- Renamed ImpactId to TransactionBudgetImpactId in TransactionBudgetImpacts table.
- Added new fields (Location, MerchantName, ReceiptUrl, Tags) to Transactions table.
- Updated PopulateCategories.sql to ensure existing categories are updated and new categories are inserted.
- Added BudgetService with methods for creating, updating, deleting, and retrieving budget details.
- Implemented transaction recording and budget impact calculations.
- Introduced methods for fetching user budgets, budget transactions, and expense breakdowns.
- Added functionality for handling budget periods and daily budget limits.

feat: Create DatabaseSeeder for initial data population

- Implemented DatabaseSeeder to seed categories and a default user if they do not exist.
- Added console logging for seeding operations and error handling.

feat: Introduce TransactionService for transaction management

- Created TransactionService to handle user transactions, including creation, updates, and deletions.
- Implemented methods for fetching user transactions and transaction details.
- Added support for recurring transactions and budget impacts.

chore: Set up project structure and configuration files

- Created project file for SpendSmart_Backend with necessary dependencies.
- Added appsettings.json and appsettings.Development.json for configuration.
- Included WeatherForecast class for demonstration purposes.
- Established backend solution file and package-lock.json for package management.
…nagement

- Created project.nuget.cache to track NuGet package dependencies and their expected files.
- Added package-lock.json to ensure consistent package installations across environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants