Structurare backend
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Core.Entities
|
||||
{
|
||||
public class Chat
|
||||
{
|
||||
public Chat()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; private set; }
|
||||
public Guid UserId { get; private set; }
|
||||
public Guid DoctorId { get; private set; }
|
||||
public string? Content { get; private set; }
|
||||
|
||||
public void SetUserId(Guid userId) { UserId = userId; }
|
||||
public void SetDoctorId(Guid doctorId) { DoctorId = doctorId; }
|
||||
public void SetContent(string content) { Content = content; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Core.Entities
|
||||
{
|
||||
public class Doctor
|
||||
{
|
||||
public Doctor()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; private set; }
|
||||
public string? Name { get; private set; }
|
||||
public string? Email { get; private set; }
|
||||
public string? Password { get; private set; }
|
||||
public string? Description { get; private set; }
|
||||
|
||||
public void SetName(string name) { Name = name; }
|
||||
public void SetEmail(string email) { Email = email; }
|
||||
public void SetPassword(string password) { Password = password; }
|
||||
public void SetDescription (string description) { Description = description; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Core.Entities
|
||||
{
|
||||
public class MedicalHistory
|
||||
{
|
||||
public MedicalHistory()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; private set; }
|
||||
public Guid UserId { get; private set; }
|
||||
public byte[] Description { get; private set; } = [];
|
||||
|
||||
public void SetUserId(Guid userId) { UserId = userId; }
|
||||
public void SetDescription(byte[] description) { Description = description; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Core.Entities
|
||||
{
|
||||
public class Pacient
|
||||
{
|
||||
public Pacient()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; private set; }
|
||||
public string? Name { get; private set; }
|
||||
public string? Email { get; private set; }
|
||||
public string? Password { get; private set; }
|
||||
|
||||
public void SetName(string name) { Name = name; }
|
||||
public void SetEmail(string email) { Email = email; }
|
||||
public void SetPassword(string password) { Password = password; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user