2024-11-12 21:25:53 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2024-11-12 22:10:44 +04:00
|
|
|
|
using EmployeeManagmentDataModels.Models;
|
2024-11-12 21:25:53 +04:00
|
|
|
|
|
|
|
|
|
namespace EmployeeManagmentDataBaseImplement.Models
|
|
|
|
|
{
|
|
|
|
|
public class Employee
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public string Name { 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("PhysicalPerson")]
|
|
|
|
|
public int PhysicalPersonsId { get; set; }
|
|
|
|
|
public PhysicalPerson? PhysicalPerson { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|