namespace CalledIt.DataAccess.Entities;

public class GroupEntity
{
    public int Id { get; set; }

    public string Name { get; set; } = string.Empty;

    public int CompetitionId { get; set; }

    public int CreatedByUserId { get; set; }

    public string InviteCode { get; set; } = string.Empty;

    public DateTime CreatedAt { get; set; }

    public CompetitionEntity Competition { get; set; } = null!;

    public UserEntity CreatedBy { get; set; } = null!;

    public ICollection<GroupMemberEntity> Members { get; set; } = [];
}
