Adding chat system

This commit is contained in:
hz
2025-06-05 09:06:32 -05:00
parent 4f1342e0af
commit ea25e3b63d
6 changed files with 159 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace GameAuthApi.Models;
public class ChatMessage
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
[BsonRepresentation(BsonType.ObjectId)]
public string SenderId { get; set; }
public string Content { get; set; }
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
}