2023-03-28 01:05:15 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2023-03-28 21:47:34 +05:00
|
|
|
|
using System;
|
2023-03-28 01:05:15 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model.GTR
|
|
|
|
|
{
|
|
|
|
|
[Table("t_wits_string"), Comment("таблица данных ГТИ с типом значения string")]
|
2023-03-28 21:47:34 +05:00
|
|
|
|
public class WitsStr: IWitsBase
|
2023-03-28 01:05:15 +05:00
|
|
|
|
{
|
2023-03-28 21:47:34 +05:00
|
|
|
|
[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; }
|
|
|
|
|
|
2023-03-28 01:05:15 +05:00
|
|
|
|
[Column("value")]
|
|
|
|
|
[StringLength(64)]
|
|
|
|
|
public string? Value { get; set; }
|
2023-03-28 21:47:34 +05:00
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdTelemetry))]
|
|
|
|
|
public virtual Telemetry? Telemetry { get; set; }
|
2023-03-28 01:05:15 +05:00
|
|
|
|
}
|
|
|
|
|
}
|