using System;
using System.ComponentModel.DataAnnotations.Schema;
using MyPortal.Database.Interfaces;

namespace MyPortal.Database.Models.Entity
{
    [Table("HomeworkSubmissions")]
    public class HomeworkSubmission : BaseTypes.Entity, ITaskEntity
    {
        [Column(Order = 2)] public Guid HomeworkId { get; set; }

        [Column(Order = 3)] public Guid StudentId { get; set; }

        [Column(Order = 4)] public Guid TaskId { get; set; }

        [Column(Order = 5)] public Guid? DocumentId { get; set; }

        [Column(Order = 6)] public int PointsAchieved { get; set; }

        [Column(Order = 7)] public string Comments { get; set; }

        public virtual HomeworkItem HomeworkItem { get; set; }
        public virtual Student Student { get; set; }
        public virtual Task Task { get; set; }
        public virtual Document SubmittedWork { get; set; }
    }
}