diff --git a/AsbCloudDb/Model/AsbCloudDbContext.cs b/AsbCloudDb/Model/AsbCloudDbContext.cs index 37acb870..849a3043 100644 --- a/AsbCloudDb/Model/AsbCloudDbContext.cs +++ b/AsbCloudDb/Model/AsbCloudDbContext.cs @@ -200,23 +200,23 @@ namespace AsbCloudDb.Model modelBuilder.Entity(entity => { entity.HasData(new List { - new TelemetryOperation {Id = 1, Name = "Невозможно определить операцию"}, - new TelemetryOperation {Id = 2, Name = "Роторное бурение" }, - new TelemetryOperation {Id = 3, Name = "Слайдирование" }, - new TelemetryOperation {Id = 4, Name = "Подъем с проработкой" }, - new TelemetryOperation {Id = 5, Name = "Спуск с проработкой" }, - new TelemetryOperation {Id = 6, Name = "Подъем с промывкой" }, - new TelemetryOperation {Id = 7, Name = "Спуск с промывкой" }, - new TelemetryOperation {Id = 8, Name = "Спуск в скважину" }, - new TelemetryOperation {Id = 9, Name = "Спуск с вращением" }, - new TelemetryOperation {Id = 10, Name = "Подъем из скважины" }, - new TelemetryOperation {Id = 11, Name = "Подъем с вращением" }, - new TelemetryOperation {Id = 12, Name = "Промывка в покое" }, - new TelemetryOperation {Id = 13, Name = "Промывка с вращением" }, - new TelemetryOperation {Id = 14, Name = "Удержание в клиньях" }, - new TelemetryOperation {Id = 15, Name = "Неподвижное состояние" }, - new TelemetryOperation {Id = 16, Name = "Вращение без циркуляции" }, - new TelemetryOperation {Id = 17, Name = "На поверхности" } + new TelemetryOperation {Id = 1, OperationType = 0, Name = "Невозможно определить операцию"}, + new TelemetryOperation {Id = 2, OperationType = 0, Name = "Роторное бурение" }, + new TelemetryOperation {Id = 3, OperationType = 0, Name = "Слайдирование" }, + new TelemetryOperation {Id = 4, OperationType = 0, Name = "Подъем с проработкой" }, + new TelemetryOperation {Id = 5, OperationType = 0, Name = "Спуск с проработкой" }, + new TelemetryOperation {Id = 6, OperationType = 0, Name = "Подъем с промывкой" }, + new TelemetryOperation {Id = 7, OperationType = 0, Name = "Спуск с промывкой" }, + new TelemetryOperation {Id = 8, OperationType = 0, Name = "Спуск в скважину" }, + new TelemetryOperation {Id = 9, OperationType = 0, Name = "Спуск с вращением" }, + new TelemetryOperation {Id = 10, OperationType = 0, Name = "Подъем из скважины" }, + new TelemetryOperation {Id = 11, OperationType = 0, Name = "Подъем с вращением" }, + new TelemetryOperation {Id = 12, OperationType = 0, Name = "Промывка в покое" }, + new TelemetryOperation {Id = 13, OperationType = 0, Name = "Промывка с вращением" }, + new TelemetryOperation {Id = 14, OperationType = 0, Name = "Удержание в клиньях" }, + new TelemetryOperation {Id = 15, OperationType = 0, Name = "Неподвижное состояние" }, + new TelemetryOperation {Id = 16, OperationType = 0, Name = "Вращение без циркуляции" }, + new TelemetryOperation {Id = 17, OperationType = 0, Name = "На поверхности" } }); }); diff --git a/AsbCloudDb/Model/TelemetryOperation.cs b/AsbCloudDb/Model/TelemetryOperation.cs index e4ef782e..b24b69bc 100644 --- a/AsbCloudDb/Model/TelemetryOperation.cs +++ b/AsbCloudDb/Model/TelemetryOperation.cs @@ -11,6 +11,10 @@ namespace AsbCloudDb.Model [Key] [Column("id")] public int Id { get; set; } + + [Column("type"), Comment("Тип операции (авто/ручной ввод)")] + public int OperationType { get; set; } + [Column("name"), Comment("Название операции")] public string Name { get; set; }