forked from ddrilling/AsbCloudServer
28 lines
774 B
C#
28 lines
774 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[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; } = null!;
|
|
|
|
[ForeignKey(nameof(IdUser))]
|
|
public virtual User User { get; set; } = null!;
|
|
|
|
[ForeignKey(nameof(IdCategory))]
|
|
public virtual FileCategory Category { get; set; } = null!;
|
|
}
|
|
}
|