forked from ddrilling/AsbCloudServer
28 lines
891 B
C#
28 lines
891 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_last_data"), Comment("Таблица c данными для вкладки \'Последние данные\'")]
|
|
public class LastData : IId
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("id_well"), Comment("id скважины")]
|
|
public int IdWell { get; set; }
|
|
|
|
[Column("id_category"), Comment("id категории")]
|
|
public int IdCategory { get; set; }
|
|
|
|
[Column("last_update_date")]
|
|
public DateTime LastUpdateDate { get; set; }
|
|
|
|
[Column("data", TypeName = "jsonb"), Comment("Данные таблицы последних данных")]
|
|
public object Data { get; set; }
|
|
}
|
|
}
|