using planli.backend.Enums;
using System.ComponentModel.DataAnnotations;

namespace planli.backend.planli.db.Model
{
    public class BoardMember
    {
        [Key]
        public int UserId { get; set; }

        [Required]
        public User User { get; set; }

        [Required]
        public int BoardId { get; set; }

        [Required]
        public Board Board { get; set; }

        [Required]
        public BoardRole Role { get; set; }

        [Required]
        public DateTime JoinedAt { get; set; }
    }
}
