Initial commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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>();
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace ExpenseTracker.Api.Models;
|
||||
|
||||
public enum EntryType
|
||||
{
|
||||
INCOME,
|
||||
EXPENSE
|
||||
}
|
||||
@@ -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>();
|
||||
}
|
||||
Reference in New Issue
Block a user