DD.WellWorkover.Cloud/AsbCloudDb/Model/GTR/WitsBase.cs

26 lines
734 B
C#
Raw Normal View History

2023-03-28 01:05:15 +05:00
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model.GTR
{
[Table("t_wits_base"), Comment("таблица данных ГТИ")]
public abstract class WitsBase : ITelemetryData
{
[Column("id_telemetry")]
public int IdTelemetry { get; set; }
[Column("id_record")]
public int IdRecord { get; set; }
[Column("id_item")]
public int IdItem { get; set; }
[Column("date", TypeName = "timestamp with time zone")]
public DateTimeOffset DateTime { get; set; }
[ForeignKey(nameof(IdTelemetry))]
public virtual Telemetry? Telemetry { get; set; }
}
}