forked from ddrilling/AsbCloudServer
34 lines
940 B
C#
34 lines
940 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_cluster"), Comment("Кусты")]
|
|
public partial class Cluster
|
|
{
|
|
public Cluster()
|
|
{
|
|
Wells = new HashSet<Well>();
|
|
}
|
|
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
[Column("caption"), Comment("Название")]
|
|
[StringLength(255)]
|
|
public string Caption { get; set; }
|
|
[Column("id_deposit")]
|
|
public int? IdDeposit { get; set; }
|
|
|
|
[ForeignKey(nameof(IdDeposit))]
|
|
[InverseProperty(nameof(Model.Deposit.Clusters))]
|
|
public virtual Deposit Deposit { get; set; }
|
|
[InverseProperty(nameof(Well.Cluster))]
|
|
public virtual ICollection<Well> Wells { get; set; }
|
|
}
|
|
}
|