mirror of
https://github.com/Stone-Red-Code/EchoHub.git
synced 2026-09-07 23:40:19 +02:00
- Created User, Channel, Message, and ServerInfo models with necessary properties. - Added DTOs for user profiles, server information, and message handling. - Implemented JWT authentication service for user login and token generation. - Developed Entity Framework Core DbContext for database interactions. - Introduced SignalR ChatHub for real-time messaging and presence tracking. - Implemented file storage and image to ASCII conversion services. - Set up CORS and middleware for API endpoints. - Created launch settings and development configuration for server and web projects.
13 lines
351 B
C#
13 lines
351 B
C#
namespace EchoHub.Core.Models;
|
|
|
|
public class Channel
|
|
{
|
|
public Guid Id { get; set; }
|
|
public required string Name { get; set; }
|
|
public string? Topic { get; set; }
|
|
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
|
public Guid CreatedByUserId { get; set; }
|
|
|
|
public List<Message> Messages { get; set; } = [];
|
|
}
|