Добавил модели данных

This commit is contained in:
Никита Потапов 2024-05-07 23:43:40 +04:00
parent 03c3d1ffc5
commit 2440753f26
7 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,7 @@
namespace MedicalDatabaseContracts
{
public class AbstractModel
{
public int Id { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace MedicalDatabaseContracts
{
public class AbstractPersonModel : AbstractModel
{
public string Name { get; set; } = string.Empty;
public string Surname { get; set; } = string.Empty;
public string? Patronymic { get; set; }
public string PhoneNumber { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,7 @@
namespace MedicalDatabaseContracts.Models
{
public class Diagnose : AbstractModel
{
public string Name { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,7 @@
namespace MedicalDatabaseContracts.Models
{
public class Doctor : AbstractPersonModel
{
public int SpecializationId { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace MedicalDatabaseContracts.Models
{
public class Patient : AbstractPersonModel
{
public char Gender { get; set; }
public DateOnly Birthday { get; set; }
public int Weight { get; set; }
public int Height { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace MedicalDatabaseContracts.Models
{
public class Specialization : AbstractModel
{
public string Name { get; set; } = string.Empty;
public bool IsPediatric { get; set; }
public bool IsTherapeutic { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace MedicalDatabaseContracts.Models
{
public class Visit : AbstractModel
{
public int PatientId { get; set; }
public int DoctorId { get; set; }
public int DiagnoseId { get; set; }
public string? Comment { get; set; }
}
}