using System.ComponentModel.DataAnnotations;

namespace planli.backend.planli.db.Model
{
    public class Board
    {
        [Key]
        public int Id { get; set; }
        
        [Required]
        public string Name { get; set; }

        public ICollection<BoardMember> Members { get; set; } = new List<BoardMember>();
        public ICollection<ToDo> ToDo { get; set; } = new List<ToDo>();
    }
}
