using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; #nullable disable namespace AsbCloudDb.Model { [Table("t_well"), Comment("скважины")] public partial class Well : IId { [Key] [Column("id")] public int Id { get; set; } [Column("caption")] [StringLength(255)] public string Caption { get; set; } [Column("id_cluster")] public int? IdCluster { get; set; } [Column("id_customer")] public int? IdCustomer { get; set; } [Column("id_telemetry")] public int? IdTelemetry { get; set; } [ForeignKey(nameof(IdCluster))] [InverseProperty(nameof(Model.Cluster.Wells))] public virtual Cluster Cluster { get; set; } [ForeignKey(nameof(IdCustomer))] [InverseProperty(nameof(Model.Customer.Wells))] public virtual Customer Customer { get; set; } [ForeignKey(nameof(IdTelemetry))] [InverseProperty(nameof(Model.Telemetry.Well))] public virtual Telemetry Telemetry { get; set; } } }