forked from ddrilling/AsbCloudServer
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Keyless]
|
|
[Table("t_telemetry_user"), Comment("Пользователи панели САУБ. Для сообщений.")]
|
|
[Index(nameof(IdUser), nameof(IdTelemetry), Name = "t_telemetry_user_pk", IsUnique = true)]
|
|
public partial class TelemetryUser
|
|
{
|
|
[Column("id_user")]
|
|
public int IdUser { get; set; }
|
|
[Column("id_telemetry")]
|
|
public int IdTelemetry { get; set; }
|
|
[Column("name")]
|
|
[StringLength(255)]
|
|
public string Name { get; set; }
|
|
[Column("surname")]
|
|
[StringLength(255)]
|
|
public string Surname { get; set; }
|
|
[Column("patronymic")]
|
|
[StringLength(255)]
|
|
public string Patronymic { get; set; }
|
|
[Column("level")]
|
|
public int? Level { get; set; }
|
|
|
|
[ForeignKey(nameof(IdTelemetry))]
|
|
public virtual Telemetry Telemetry { get; set; }
|
|
}
|
|
}
|