forked from ddrilling/AsbCloudServer
32 lines
969 B
C#
32 lines
969 B
C#
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")]
|
|
public double? Latitude { get; set; }
|
|
|
|
[Column("longitude")]
|
|
public double? Longitude { get; set; }
|
|
|
|
[Column("timezone", TypeName = "jsonb"), Comment("Смещение часового пояса от UTC")]
|
|
public SimpleTimezone Timezone { get; set; } = new();
|
|
}
|
|
}
|