using System.ComponentModel.DataAnnotations;

namespace Knots.Models;

public class Group
{
    [Key] public int Id { get; set; }
    [Required, MaxLength(50)] public string? Name { get; set; }
    [Required] public int MembersAmount { get; set; }
    public string? ProfilePicture { get; set; }

    public List<GroupUser> GroupUsers { get; set; } = [];

    public int DiscussionId { get; set; }
    public Discussion Discussion { get; set; } = null!;
}