Initial commit

This commit is contained in:
Kevin Harlay
2026-09-07 13:33:22 +02:00
commit ebfaf6f5ec
295 changed files with 8786 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace ExpenseTracker.Api.DTOs;
public record CategoryDto(
Guid Id,
string Name,
string Color);
public record CreateCategoryDto(
string Name,
string Color);
+35
View File
@@ -0,0 +1,35 @@
namespace ExpenseTracker.Api.DTOs;
public record EntryDto(
Guid Id,
Guid MonthId,
string Type,
decimal Amount,
string Label,
Guid? CategoryId,
string? CategoryName,
DateOnly EntryDate,
DateTime CreatedAt);
public record CreateEntryDto(
string Type,
decimal Amount,
string Label,
Guid? CategoryId,
DateOnly EntryDate);
public record UpdateEntryDto(
string Type,
decimal Amount,
string Label,
Guid? CategoryId,
DateOnly EntryDate);
public record ImportErrorDto(
int Line,
string Message);
public record ImportResultDto(
int ImportedCount,
int ErrorCount,
List<ImportErrorDto> Errors);
+21
View File
@@ -0,0 +1,21 @@
namespace ExpenseTracker.Api.DTOs;
public record MonthDto(
Guid Id,
int Year,
int MonthNumber,
decimal DefaultSalary,
DateTime CreatedAt);
public record CreateMonthDto(
int Year,
int Month,
decimal DefaultSalary);
public record MonthSummaryDto(
Guid MonthId,
int Year,
int MonthNumber,
decimal TotalIncome,
decimal TotalExpense,
decimal Balance);
+8
View File
@@ -0,0 +1,8 @@
namespace ExpenseTracker.Api.DTOs;
public record SettingsDto(
string Key,
string Value);
public record UpdateDefaultSalaryDto(
decimal Value);