Files
FACULTATE-HEALTHCARE_MANAGER/backend/Core/Entities/Chat.cs
T
2024-04-08 00:03:24 +03:00

23 lines
484 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Core.Entities;
public class Chat
{
[BsonId]
[BsonRepresentation(BsonType.String)]
public Guid Id { get; set; }
public Guid PatientId { get; set; }
public Guid DoctorId { get; set; }
public List<Message> Messages { get; set; } = new();
}
public class Message
{
[BsonRepresentation(BsonType.String)] public Guid UserId { get; set; }
public string Content { get; set; }
}