using EmployeeManagmentDataModels.Models; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace EmployeeManagmentDataBaseImplement.Models { public class Employee : IEmployee { [Key] public int Id { get; set; } [Required] public string NameJob { get; set; } = string.Empty; public DateTime? StartJob { get; set; } public DateTime? EndJob { get; set; } public string? PartTimeJob { get; set; } public float Bid { get; set; } [ForeignKey("PhisicalPerson")] public int? PhisicalPersonsId { get; set; } public PhisicalPerson? PhisicalPerson { get; set; } public List Salaries { get; set; } = new(); public List Vacations { get; set; } = new(); } }