Init commit

This commit is contained in:
2023-10-16 20:48:58 +02:00
parent 5ebc16046c
commit 2d5dfd6154
14 changed files with 286 additions and 0 deletions

8
Models/Breeder.cs Normal file
View File

@@ -0,0 +1,8 @@
namespace GerbilManager.Models
{
public record Breeder
{
public Guid Id { get; init; }
public string Name { get; init; }
}
}

9
Models/Gender.cs Normal file
View File

@@ -0,0 +1,9 @@
namespace GerbilManager.Models
{
public enum Gender
{
unknown,
male,
female
}
}

11
Models/Gerbil.cs Normal file
View File

@@ -0,0 +1,11 @@
namespace GerbilManager.Models
{
public record Gerbil
{
public Guid Id { get; init; }
public string Name { get; init; }
public Gender Gender { get; init; }
public Litter Litter { get; init; }
public Breeder Breeder { get; init; }
}
}

13
Models/Litter.cs Normal file
View File

@@ -0,0 +1,13 @@
namespace GerbilManager.Models
{
public record Litter
{
public Guid Id { get; init; }
public string Name { get; init; }
public DateTime Date { get; init; }
public int Strength { get; init; }
public Gerbil Father { get; init; }
public Gerbil Mother { get; init; }
}
}