mark required fields

This commit is contained in:
2023-10-23 21:34:00 +02:00
parent 1aa4f0b5f6
commit 64a065058a
9 changed files with 22 additions and 38 deletions

View File

@@ -6,6 +6,6 @@ namespace GerbilManagerWebAPI.Models
{
[Key]
public Guid Id { get; init; }
public string? Name { get; init; }
public required string Name { get; init; }
}
}

View File

@@ -6,9 +6,9 @@ namespace GerbilManagerWebAPI.Models
{
[Key]
public Guid Id { get; init; }
public string? Name { get; init; }
public DateTime Date { get; init; }
public int Strength { get; init; }
public required string Name { get; init; }
public required DateTime Date { get; init; }
public int? Strength { get; init; }
public Gerbil? Father { get; init; }
public Gerbil? Mother { get; init; }
}