using System.ComponentModel.DataAnnotations;

namespace Knots.Models;

public class Discussion
{
    [Key] public int Id { get; set; }
    public bool IsGroup { get; set; } = false;
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;

    public Group? Group { get; set; } 
    public List<Message> Messages { get; set; } = [];
    public List<UserDiscussion> UserDiscussions { get; set; } = [];
}