using System.ComponentModel.DataAnnotations;
using System.Net.Mime;

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 int KeyId { get; set; }
    
    List<Message> Messages { get; set; }
    List<User> Users { get; set; }
    
    public int DiscussionId { get; set; }       
    public Discussion Discussion { get; set; } = null!;
}