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

32 lines
969 B
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_deposit"), Comment("Месторождение")]
public partial class Deposit : IId, IMapPoint
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("caption")]
[StringLength(255)]
public string Caption { get; set; } = null!;
[InverseProperty(nameof(Cluster.Deposit))]
public virtual ICollection<Cluster> Clusters { get; set; } = null!;
[Column("latitude")]
2021-07-21 15:22:58 +05:00
public double? Latitude { get; set; }
[Column("longitude")]
2021-07-21 15:22:58 +05:00
public double? Longitude { get; set; }
2022-01-02 12:33:18 +05:00
[Column("timezone", TypeName = "jsonb"), Comment("Смещение часового пояса от UTC")]
public SimpleTimezone Timezone { get; set; } = new();
}
}