medicalHistory: deletion when patient is deleted

This commit is contained in:
andrei-mihnea-cerbu
2024-04-08 22:06:01 +03:00
parent 13bfa2bdd9
commit 7b24c178b3
62 changed files with 321 additions and 356 deletions
@@ -1,5 +0,0 @@
namespace Application.Services.Database;
public interface IConversationRepository
{
}
@@ -1,6 +1,6 @@
using Core.Entities;
namespace Application.Services.Database;
namespace Application.Services.Database.PostgreSQL;
public interface IDoctorRepository
{
@@ -1,6 +1,6 @@
using Core.Entities;
namespace Application.Services.Database;
namespace Application.Services.Database.PostgreSQL;
public interface IMedicalHistoryRepository
{
@@ -1,6 +1,6 @@
using Core.Entities;
namespace Application.Services.Database;
namespace Application.Services.Database.PostgreSQL;
public interface IPatientRepository
{
@@ -10,9 +10,9 @@ public interface IPatientRepository
Task<Patient?> FindByEmailAsync(string email);
Task UpdateAsync(Patient doctor);
Task UpdateAsync(Patient patient);
Task DeleteAsync(Patient doctor);
Task DeleteAsync(Patient patient);
Task<IEnumerable<Patient>> GetAllAsync();
}