2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2022-05-20 18:19:52 +05:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2022-05-25 20:19:08 +05:00
|
|
|
using System.Text.Json.Serialization;
|
2022-05-20 18:19:52 +05:00
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
{
|
|
|
|
[Table("t_driller"), Comment("Бурильщик")]
|
2022-06-15 14:57:37 +05:00
|
|
|
public class Driller : IId
|
2022-05-20 18:19:52 +05:00
|
|
|
{
|
|
|
|
[Key]
|
2022-06-15 14:57:37 +05:00
|
|
|
[Column("id"), Comment("Идентификатор")]
|
2022-05-20 18:19:52 +05:00
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
[Column("name"), Comment("Имя")]
|
|
|
|
[StringLength(255)]
|
2022-05-26 13:28:16 +05:00
|
|
|
public string Name { get; set; } = null!;
|
2022-05-20 18:19:52 +05:00
|
|
|
|
|
|
|
[Column("surname"), Comment("Фамилия")]
|
|
|
|
[StringLength(255)]
|
2022-05-26 13:28:16 +05:00
|
|
|
public string Surname { get; set; } = null!;
|
2022-05-20 18:19:52 +05:00
|
|
|
|
|
|
|
[Column("patronymic"), Comment("Отчество")]
|
|
|
|
[StringLength(255)]
|
2022-05-31 16:36:24 +05:00
|
|
|
public string? Patronymic { get; set; }
|
2022-05-25 20:19:08 +05:00
|
|
|
|
|
|
|
[JsonIgnore]
|
2022-05-26 13:28:16 +05:00
|
|
|
[InverseProperty(nameof(Model.Schedule.Driller))]
|
|
|
|
public virtual ICollection<Schedule> Schedule { get; set; } = null!;
|
2022-05-20 18:19:52 +05:00
|
|
|
}
|
|
|
|
}
|