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
+8
View File
@@ -0,0 +1,8 @@
namespace ExpenseTracker.Api.Models;
public class AppSetting
{
public Guid Id { get; set; }
public string Key { get; set; } = string.Empty;
public string Value { get; set; } = string.Empty;
}
+10
View File
@@ -0,0 +1,10 @@
namespace ExpenseTracker.Api.Models;
public class Category
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Color { get; set; } = string.Empty;
public ICollection<Entry> Entries { get; set; } = new List<Entry>();
}
+16
View File
@@ -0,0 +1,16 @@
namespace ExpenseTracker.Api.Models;
public class Entry
{
public Guid Id { get; set; }
public Guid MonthId { get; set; }
public EntryType Type { get; set; }
public decimal Amount { get; set; }
public string Label { get; set; } = string.Empty;
public Guid? CategoryId { get; set; }
public DateOnly EntryDate { get; set; }
public DateTime CreatedAt { get; set; }
public Month Month { get; set; } = null!;
public Category? Category { get; set; }
}
+7
View File
@@ -0,0 +1,7 @@
namespace ExpenseTracker.Api.Models;
public enum EntryType
{
INCOME,
EXPENSE
}
+12
View File
@@ -0,0 +1,12 @@
namespace ExpenseTracker.Api.Models;
public class Month
{
public Guid Id { get; set; }
public int Year { get; set; }
public int MonthNumber { get; set; }
public decimal DefaultSalary { get; set; }
public DateTime CreatedAt { get; set; }
public ICollection<Entry> Entries { get; set; } = new List<Entry>();
}