mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-04 08:36:11 +02:00
14 lines
398 B
C#
14 lines
398 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 bool IsPublic { get; set; } = true;
|
|
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
|
public Guid CreatedByUserId { get; set; }
|
|
|
|
public List<Message> Messages { get; set; } = [];
|
|
}
|