forked from ddrilling/AsbCloudServer
dbaa0ab754
1. Переименовал сущности РТК. Теперь они называются более корректно 2. Поправлены комментарии в сущности 3. Поправлены DTO 4. Добавлены новые миграции 5. Удалил лишние разрешения
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace AsbCloudDb.Model.ProcessMaps;
|
|
|
|
public abstract class ProcessMapBase : IId, IWellRelated
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("id_well"), Comment("Id скважины")]
|
|
public int IdWell { get; set; }
|
|
|
|
[Column("id_user"), Comment("Id пользователя")]
|
|
public int IdUser { get; set; }
|
|
|
|
[Column("last_update", TypeName = "timestamp with time zone"), Comment("Дата последнего изменения")]
|
|
public DateTimeOffset LastUpdate { get; set; }
|
|
|
|
[Column("depth_start"), Comment("Глубина по стволу от, м")]
|
|
public double DepthStart { get; set; }
|
|
|
|
[Column("depth_end"), Comment("Глубина по стволу до, м")]
|
|
public double DepthEnd { get; set; }
|
|
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(IdWell))]
|
|
public virtual Well Well { get; set; } = null!;
|
|
|
|
[ForeignKey(nameof(IdUser))]
|
|
public virtual User User { get; set; } = null!;
|
|
} |