adding pages and css and .gitignore, scripts, resources, to-do.md

This commit is contained in:
2026-10-27 10:15:05 +02:00
parent d7aaf05123
commit 35aed79337
23 changed files with 360 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace StatiKosev.Data;
public class UserMessage
{
public int Id { get; set; }
[MaxLength(2000)] public required string Body { get; set; }
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
public bool IsRead { get; set; }
}
public record SendUserMessageRequest(
[Required, StringLength(2000, MinimumLength = 1)] string Body, string Username);