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

30 lines
810 B
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
#nullable disable
[Table("t_well_final_documents"), Comment("Дело скважины")]
public class WellFinalDocument : IWellRelated
{
[Column("id_well")]
public int IdWell { get; set; }
[Column("id_user")]
public int IdUser { get; set; }
[Column("id_category")]
public int IdCategory { get; set; }
[ForeignKey(nameof(IdWell))]
public virtual Well Well { get; set; }
[ForeignKey(nameof(IdUser))]
public virtual User User { get; set; }
[ForeignKey(nameof(IdCategory))]
public virtual FileCategory Category { get; set; }
}
}