using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace WebApplication1.Models
{// predlog temi izlistani od nekoj profesor
    public class TopicSuggestion
    {
        [Key]
        public int Id { get; set; }

        [Required]
        public string MentorId { get; set; }
        [ForeignKey("MentorId")]
        public virtual Mentor Mentor { get; set; }

        [Required]
        [StringLength(200)]
        public string Title { get; set; }

        [StringLength(2000)]
        public string Description { get; set; }

        // assign topic to student
        public bool IsAssigned { get; set; } = false;
        public string AssignedStudentId { get; set; }
        [ForeignKey("AssignedStudentId")]
        public virtual Student AssignedStudent { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
        public DateTime? AssignedAt { get; set; }
    }
}