﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SysUt14Gr03.Models
{
    [Table("Timer")]
    public class Time
    {
        [Key]
        public int Time_id { get; set; }
        public TimeSpan Tid { get; set; }
        public DateTime? Start { get; set; }
        public DateTime? Stopp { get; set; }
        public DateTime Opprettet { get; set; }
        public Boolean Aktiv { get; set; }
        public Boolean Manuell { get; set; }
        public Boolean IsFerdig { get; set; }

        public int Oppgave_id { get; set; }
        public int Bruker_id { get; set; }

        public virtual List<Pause> Pause { get; set; }

        public virtual Bruker Bruker { get; set; }
        public virtual Oppgave Oppgave { get; set; }
    }
}