DD.WellWorkover.Cloud/AsbCloudDb/Model/Contact.cs

52 lines
1.6 KiB
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore;
2023-10-09 12:20:00 +05:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_contact"), Comment("Контакты")]
public partial class Contact : IId
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("id_company_type"), Comment("вид деятельности")]
[StringLength(255)]
public int IdCompanyType { get; set; }
[Column("id_well"), Comment("ключ скважины")]
[StringLength(255)]
public int IdWell { get; set; }
2023-10-09 12:20:00 +05:00
2023-10-13 16:58:27 +05:00
[Column("full_name"), Comment("ФИО")]
2023-10-09 12:20:00 +05:00
[StringLength(255)]
2023-10-13 16:58:27 +05:00
public string FullName { get; set; } = string.Empty;
2023-10-09 12:20:00 +05:00
[Column("email"), Comment("email")]
[StringLength(255)]
public string? Email { get; set; }
2023-10-09 12:20:00 +05:00
[Column("phone"), Comment("номер телефона")]
[StringLength(50)]
public string? Phone { get; set; }
2023-10-09 12:20:00 +05:00
[Column("position"), Comment("должность")]
[StringLength(255)]
public string Position { get; set; } = string.Empty;
[Column("company"), Comment("компания")]
[StringLength(255)]
public string Company { get; set; } = string.Empty;
[ForeignKey(nameof(IdCompanyType))]
[InverseProperty(nameof(Model.CompanyType.Contacts))]
public virtual CompanyType CompanyType { get; set; } = null!;
2023-10-09 12:20:00 +05:00
[ForeignKey(nameof(IdWell))]
[InverseProperty(nameof(Model.Well.Contacts))]
public virtual Well Well { get; set; } = null!;
2023-10-09 12:20:00 +05:00
}
}