using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace PcInventory_v1_1.Models
{
    public class Asset
    {
        [Key]
        public string  AssetTag { get; set; }

        public string SerialNumber { get; set; }
        public int WarrantyPeriod { get; set; }
        public string DeviceApprover { get; set; }
        public string AssetLocation { get; set; }
        public int EmpAssetKey { get; set; }
        public int SectionKey { get; set; }//foreign key for section table
        public double PurchasePrice { get; set; }
        public double BaseLeaseRate { get; set; }
        public double MonthlyChargeRate { get; set; }
        public double LeaseTotal { get; set; }
        public DateTime LeaseStartDate { get; set; }
        public DateTime LeaseEndDate { get; set; }
        public double RunnungLeaseTotal { get; set; }
        public int SupplierKey { get; set; }//foreign key for supplier table
        public int VendorKey { get; set; }//foreign key for lease company table
        public int DeviceInfoKey { get; set; }//foreign key for device info table
       
        public Boolean Confirm { get; set; }
        public string Status { get; set; }


        public virtual Section Section { get; set; }
        public virtual Supplier Supplier { get; set; }
        public virtual Vendor Vendor { get; set; }
        public virtual DeviceInformation DeviceInformation { get; set; }
        public virtual EmployeeAsset EmployeeAsset { get;set; }

        

    }
}