Initial
This commit is contained in:
26
LehrerApp.Core/Models/Student.cs
Normal file
26
LehrerApp.Core/Models/Student.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace LehrerApp.Core.Models;
|
||||
|
||||
public class Student
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public string FirstName { get; set; } = "";
|
||||
public string LastName { get; set; } = "";
|
||||
public string FullName => $"{LastName}, {FirstName}";
|
||||
public DateOnly? DateOfBirth { get; set; }
|
||||
public Gender? Gender { get; set; }
|
||||
public List<Contact> Contacts { get; set; } = [];
|
||||
public string? Notes { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public class Contact
|
||||
{
|
||||
public string Name { get; set; } = "";
|
||||
public string Relation { get; set; } = ""; // "Mutter", "Vater", "Vormund"
|
||||
public string? Phone { get; set; }
|
||||
public string? Email { get; set; }
|
||||
}
|
||||
|
||||
public enum Gender { M, W, D }
|
||||
Reference in New Issue
Block a user