using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

#nullable disable

namespace AsbCloudDb.Model
{
    [Table("t_relation_company_well"), Comment("отношение скважин и компаний")]
    public partial class RelationCompanyWell
    {
        [Column("id_well")]
        public int IdWell { get; set; }

        [Column("id_company")]
        public int IdCompany { get; set; }

        [ForeignKey(nameof(IdWell))]
        [InverseProperty(nameof(Model.Well.RelationCompaniesWells))]
        public virtual Well Well { get; set; }

        [ForeignKey(nameof(IdCompany))]
        [InverseProperty(nameof(Model.Company.RelationCompaniesWells))]
        public virtual Company Company { get; set; }
    }
}