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

namespace WebApplication1.Models
{
    public enum ContactStatus
    {
        Pending,
        Accepted,
        Rejected
    }
    public class MentorContact
	{
        [Key]
        public int Id { get; set; }
        public string StudentId { get; set; }
        public virtual Student Student { get; set; }
        public string MentorId { get; set; }
        public virtual Mentor Mentor { get; set; }
        public string Type { get; set; } //project type
        public int? TeamSize { get; set; }
        public string SubjectName { get; set; }

        [StringLength(1000, ErrorMessage = "Message cannot exceed 1000 characters.")]
        public string Message { get; set; }
        public ContactStatus Status { get; set; } = ContactStatus.Pending;
        public DateTime Timestamp { get; set; } = DateTime.Now;

        public int? TopicSuggestionId { get; set; }
        [ForeignKey("TopicSuggestionId")]
        public virtual TopicSuggestion TopicSuggestion { get; set; }


    }
}