25 lines
666 B
C#
25 lines
666 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SmallSoftwareDatabase.Models;
|
|
|
|
internal class Worker
|
|
{
|
|
public required string Id { get; set; }
|
|
public required string FIO { get; set; }
|
|
public required string PostId { get; set; }
|
|
public DateTime BirthDate { get; set; }
|
|
public DateTime EmploymentDate { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
|
|
[ForeignKey("WorkerId")]
|
|
public List<Salary>? Salaries { get; set; }
|
|
[ForeignKey("WorkerId")]
|
|
public List<Request>? Requests { get; set; }
|
|
|
|
}
|