From 24b0bc9d8c0b84eaf016442dfb963b095d2531e2 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Fri, 1 Apr 2022 17:55:44 +0500 Subject: [PATCH] Add WITS record tables --- AsbCloudApp/AsbCloudApp.csproj | 4 + AsbCloudApp/Data/WITS/Record1.cs | 582 ++ AsbCloudApp/Data/WITS/Record50.cs | 298 + AsbCloudApp/Data/WITS/Record60.cs | 163 + AsbCloudApp/Data/WITS/Record61.cs | 178 + AsbCloudApp/Data/WITS/Record7.cs | 298 + AsbCloudApp/Data/WITS/Record8.cs | 733 +++ AsbCloudApp/Data/WITS/RecordBase.cs | 119 + AsbCloudApp/Services/IWitsRepository.cs | 11 + AsbCloudDb/AsbCloudDb.csproj | 4 + ...20220401122724_Add_WitsRecords.Designer.cs | 5771 +++++++++++++++++ .../20220401122724_Add_WitsRecords.cs | 375 ++ ...54_Edit_WitsRecords_tableNames.Designer.cs | 5771 +++++++++++++++++ ...20401125154_Edit_WitsRecords_tableNames.cs | 507 ++ .../AsbCloudDbContextModelSnapshot.cs | 795 ++- AsbCloudDb/Model/AsbCloudDbContext.cs | 23 +- AsbCloudDb/Model/ITelemetryData.cs | 2 +- AsbCloudDb/Model/TelemetryDataSaub.cs | 2 +- AsbCloudDb/Model/TelemetryDataSpin.cs | 2 +- AsbCloudDb/Model/TelemetryMessage.cs | 2 +- AsbCloudDb/Model/WITS/Record1.cs | 585 ++ AsbCloudDb/Model/WITS/Record10.cs | 405 ++ AsbCloudDb/Model/WITS/Record11.cs | 435 ++ AsbCloudDb/Model/WITS/Record12.cs | 330 + AsbCloudDb/Model/WITS/Record13.cs | 630 ++ AsbCloudDb/Model/WITS/Record14.cs | 345 + AsbCloudDb/Model/WITS/Record15.cs | 795 +++ AsbCloudDb/Model/WITS/Record16.cs | 600 ++ AsbCloudDb/Model/WITS/Record17.cs | 480 ++ AsbCloudDb/Model/WITS/Record18.cs | 375 ++ AsbCloudDb/Model/WITS/Record19.cs | 1320 ++++ AsbCloudDb/Model/WITS/Record2.cs | 449 ++ AsbCloudDb/Model/WITS/Record20.cs | 885 +++ AsbCloudDb/Model/WITS/Record21.cs | 645 ++ AsbCloudDb/Model/WITS/Record22.cs | 60 + AsbCloudDb/Model/WITS/Record23.cs | 465 ++ AsbCloudDb/Model/WITS/Record24.cs | 870 +++ AsbCloudDb/Model/WITS/Record25.cs | 690 ++ AsbCloudDb/Model/WITS/Record3.cs | 300 + AsbCloudDb/Model/WITS/Record4.cs | 495 ++ AsbCloudDb/Model/WITS/Record5.cs | 255 + AsbCloudDb/Model/WITS/Record50.cs | 300 + AsbCloudDb/Model/WITS/Record6.cs | 420 ++ AsbCloudDb/Model/WITS/Record60.cs | 165 + AsbCloudDb/Model/WITS/Record61.cs | 180 + AsbCloudDb/Model/WITS/Record7.cs | 300 + AsbCloudDb/Model/WITS/Record8.cs | 735 +++ AsbCloudDb/Model/WITS/Record9.cs | 345 + AsbCloudDb/Model/WITS/RecordBase.cs | 127 + .../AsbCloudInfrastructure.csproj | 6 + .../CommonLibs/AsbWitsInfo.deps.json | 23 + .../CommonLibs/AsbWitsInfo.dll | Bin 0 -> 333312 bytes .../ReportDataSourcePgCloud.cs | 20 +- .../Analysis/TelemetryAnalyticsService.cs | 18 +- .../Services/MessageService.cs | 12 +- .../Services/TelemetryDataBaseService.cs | 20 +- .../Services/TelemetryDataSaubService.cs | 4 +- .../Services/TelemetryDataSpinService.cs | 4 +- .../Services/TelemetryTracker.cs | 4 +- AsbCloudWebApi/Controllers/WitsController.cs | 63 + 60 files changed, 29748 insertions(+), 52 deletions(-) create mode 100644 AsbCloudApp/Data/WITS/Record1.cs create mode 100644 AsbCloudApp/Data/WITS/Record50.cs create mode 100644 AsbCloudApp/Data/WITS/Record60.cs create mode 100644 AsbCloudApp/Data/WITS/Record61.cs create mode 100644 AsbCloudApp/Data/WITS/Record7.cs create mode 100644 AsbCloudApp/Data/WITS/Record8.cs create mode 100644 AsbCloudApp/Data/WITS/RecordBase.cs create mode 100644 AsbCloudApp/Services/IWitsRepository.cs create mode 100644 AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.Designer.cs create mode 100644 AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.cs create mode 100644 AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.Designer.cs create mode 100644 AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.cs create mode 100644 AsbCloudDb/Model/WITS/Record1.cs create mode 100644 AsbCloudDb/Model/WITS/Record10.cs create mode 100644 AsbCloudDb/Model/WITS/Record11.cs create mode 100644 AsbCloudDb/Model/WITS/Record12.cs create mode 100644 AsbCloudDb/Model/WITS/Record13.cs create mode 100644 AsbCloudDb/Model/WITS/Record14.cs create mode 100644 AsbCloudDb/Model/WITS/Record15.cs create mode 100644 AsbCloudDb/Model/WITS/Record16.cs create mode 100644 AsbCloudDb/Model/WITS/Record17.cs create mode 100644 AsbCloudDb/Model/WITS/Record18.cs create mode 100644 AsbCloudDb/Model/WITS/Record19.cs create mode 100644 AsbCloudDb/Model/WITS/Record2.cs create mode 100644 AsbCloudDb/Model/WITS/Record20.cs create mode 100644 AsbCloudDb/Model/WITS/Record21.cs create mode 100644 AsbCloudDb/Model/WITS/Record22.cs create mode 100644 AsbCloudDb/Model/WITS/Record23.cs create mode 100644 AsbCloudDb/Model/WITS/Record24.cs create mode 100644 AsbCloudDb/Model/WITS/Record25.cs create mode 100644 AsbCloudDb/Model/WITS/Record3.cs create mode 100644 AsbCloudDb/Model/WITS/Record4.cs create mode 100644 AsbCloudDb/Model/WITS/Record5.cs create mode 100644 AsbCloudDb/Model/WITS/Record50.cs create mode 100644 AsbCloudDb/Model/WITS/Record6.cs create mode 100644 AsbCloudDb/Model/WITS/Record60.cs create mode 100644 AsbCloudDb/Model/WITS/Record61.cs create mode 100644 AsbCloudDb/Model/WITS/Record7.cs create mode 100644 AsbCloudDb/Model/WITS/Record8.cs create mode 100644 AsbCloudDb/Model/WITS/Record9.cs create mode 100644 AsbCloudDb/Model/WITS/RecordBase.cs create mode 100644 AsbCloudInfrastructure/CommonLibs/AsbWitsInfo.deps.json create mode 100644 AsbCloudInfrastructure/CommonLibs/AsbWitsInfo.dll create mode 100644 AsbCloudWebApi/Controllers/WitsController.cs diff --git a/AsbCloudApp/AsbCloudApp.csproj b/AsbCloudApp/AsbCloudApp.csproj index dbc15171..fdd95225 100644 --- a/AsbCloudApp/AsbCloudApp.csproj +++ b/AsbCloudApp/AsbCloudApp.csproj @@ -4,4 +4,8 @@ net6.0 + + + + diff --git a/AsbCloudApp/Data/WITS/Record1.cs b/AsbCloudApp/Data/WITS/Record1.cs new file mode 100644 index 00000000..ca79211d --- /dev/null +++ b/AsbCloudApp/Data/WITS/Record1.cs @@ -0,0 +1,582 @@ +namespace AsbCloudApp.Data.WITS +{ + /// + /// Record name: General Time-Based + /// Description: Drilling data gathered at regular time intervals + /// + + public class Record1Dto : RecordBaseDto + { + + /// + /// RecordId = 1, + /// ItemId = 8, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "Code indicating what activity is currently being performed on the rig. IT IS ESSENTIAL that this information be as accurate and current as possible. Acceptible codes are shownhere", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptbitm { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 9, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "Measured depth of the bit at the time the record is generated. This is the measured depth of the shoe when running casing or liner.", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptbitv { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "Vertical depth of the bit at the time the record is generated. This is the vertical depth of the shoe when running casing or liner.", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptmeas { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 11, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vet)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptvert { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 12, + /// LongMnemonic = "BLKPOS", + /// ShortMnemonic = "BPOS", + /// Description = "Block Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Blkpos { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 13, + /// LongMnemonic = "ROPA", + /// ShortMnemonic = "ROPA", + /// Description = "Rate of Penetration (avg)", + /// Description2 = "", + /// FPSUnits = "F/HR", + /// MetricUnits = "M/HR", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Ropa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 14, + /// LongMnemonic = "HKLA", + /// ShortMnemonic = "HKLA", + /// Description = "Hookload (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Hkla { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 15, + /// LongMnemonic = "HKLX", + /// ShortMnemonic = "HKLX", + /// Description = "Hookload (max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Hklx { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 16, + /// LongMnemonic = "WOBA", + /// ShortMnemonic = "WOBA", + /// Description = "Weight-on-Bit (surf,avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Woba { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 17, + /// LongMnemonic = "WOBX", + /// ShortMnemonic = "WOBX", + /// Description = "Weight-on-Bit (surf,max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Wobx { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 18, + /// LongMnemonic = "TORQA", + /// ShortMnemonic = "TQA", + /// Description = "Rotary Torque (surf,avg)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Torqa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 19, + /// LongMnemonic = "TORQX", + /// ShortMnemonic = "TQX", + /// Description = "Rotary Torque (surf,max)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Torqx { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 20, + /// LongMnemonic = "RPMA", + /// ShortMnemonic = "RPMA", + /// Description = "Rotary Speed (surf,avg)", + /// Description2 = "", + /// FPSUnits = "RPM", + /// MetricUnits = "RPM", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Rpma { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 21, + /// LongMnemonic = "SPPA", + /// ShortMnemonic = "SPPA", + /// Description = "Standpipe Pressure (avg)", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Sppa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 22, + /// LongMnemonic = "CHKP", + /// ShortMnemonic = "CHKP", + /// Description = "Casing (Choke) Pressure", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Chkp { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 23, + /// LongMnemonic = "SPM1", + /// ShortMnemonic = "SPM1", + /// Description = "Pump Stroke Rate #1", + /// Description2 = "", + /// FPSUnits = "SPM", + /// MetricUnits = "SPM", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Spm1 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 24, + /// LongMnemonic = "SPM2", + /// ShortMnemonic = "SPM2", + /// Description = "Pump Stroke Rate #2", + /// Description2 = "", + /// FPSUnits = "SPM", + /// MetricUnits = "SPM", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Spm2 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 25, + /// LongMnemonic = "SPM3", + /// ShortMnemonic = "SPM3", + /// Description = "Pump Stroke Rate #3", + /// Description2 = "", + /// FPSUnits = "SPM", + /// MetricUnits = "SPM", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Spm3 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 26, + /// LongMnemonic = "TVOLACT", + /// ShortMnemonic = "TVA", + /// Description = "Tank Volume (active)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Tvolact { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 27, + /// LongMnemonic = "TVOLCACT", + /// ShortMnemonic = "TVCA", + /// Description = "Tank Volume Change (act)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Tvolcact { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 28, + /// LongMnemonic = "MFOP", + /// ShortMnemonic = "MFOP", + /// Description = "Mud Flow Out %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Mfop { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 29, + /// LongMnemonic = "MFOA", + /// ShortMnemonic = "MFOA", + /// Description = "Mud Flow Out (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mfoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 30, + /// LongMnemonic = "MFIA", + /// ShortMnemonic = "MFIA", + /// Description = "Mud Flow In (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mfia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 31, + /// LongMnemonic = "MDOA", + /// ShortMnemonic = "MDOA", + /// Description = "Mud Density Out (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mdoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 32, + /// LongMnemonic = "MDIA", + /// ShortMnemonic = "MDIA", + /// Description = "Mud Density In (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mdia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 33, + /// LongMnemonic = "MTOA", + /// ShortMnemonic = "MTOA", + /// Description = "Mud Temperature Out (avg)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mtoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 34, + /// LongMnemonic = "MTIA", + /// ShortMnemonic = "MTIA", + /// Description = "Mud Temperature In (avg)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mtia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 35, + /// LongMnemonic = "MCOA", + /// ShortMnemonic = "MCOA", + /// Description = "Mud Conductivity Out (avg)", + /// Description2 = "", + /// FPSUnits = "MMHO", + /// MetricUnits = "MMHO", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mcoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 36, + /// LongMnemonic = "MCIA", + /// ShortMnemonic = "MCIA", + /// Description = "Mud Conductivity In (avg)", + /// Description2 = "", + /// FPSUnits = "MMHO", + /// MetricUnits = "MMHO", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mcia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 37, + /// LongMnemonic = "STKC", + /// ShortMnemonic = "STKC", + /// Description = "Pump Stroke Count (cum)", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + + public int? Stkc { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 38, + /// LongMnemonic = "LAGSTKS", + /// ShortMnemonic = "LSTK", + /// Description = "Lag Strokes", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Lagstks { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 39, + /// LongMnemonic = "DEPTRETM", + /// ShortMnemonic = "DRTM", + /// Description = "Depth Returns (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptretm { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 40, + /// LongMnemonic = "GASA", + /// ShortMnemonic = "GASA", + /// Description = "Gas (avg)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Gasa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 41, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare1 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 42, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare2 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 43, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare3 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 44, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare4 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 45, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudApp/Data/WITS/Record50.cs b/AsbCloudApp/Data/WITS/Record50.cs new file mode 100644 index 00000000..452a6d08 --- /dev/null +++ b/AsbCloudApp/Data/WITS/Record50.cs @@ -0,0 +1,298 @@ +namespace AsbCloudApp.Data.WITS +{ + /// + /// Record name: Резистивиметр MCR + /// Description: SibReciver. Резистивиметр MCR + /// Description2: + /// + + public class Record50Dto : RecordBaseDto + { + + /// + /// RecordId = 50, + /// ItemId = 8, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "SibReceiver custom. Положение долота", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptbitm { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS_MCRSTAT", + /// ShortMnemonic = "DEPTMEAS_MCRSTAT", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasMcrstat { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 11, + /// LongMnemonic = "MCRSTAT", + /// ShortMnemonic = "MCRSTAT", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mcrstat { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 12, + /// LongMnemonic = "DEPTMEAS_SLVL_mc", + /// ShortMnemonic = "DEPTMEAS_SLVL_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasSlvlMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 13, + /// LongMnemonic = "SLVL_mc", + /// ShortMnemonic = "SLVL_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? SlvlMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 14, + /// LongMnemonic = "DEPTMEAS_GDP_mc", + /// ShortMnemonic = "DEPTMEAS_GDP_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasGdpMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 15, + /// LongMnemonic = "GDP_mc", + /// ShortMnemonic = "GDP_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? GdpMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 16, + /// LongMnemonic = "DEPTMEAS_RA33F2_mc", + /// ShortMnemonic = "DEPTMEAS_RA33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasRa33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 17, + /// LongMnemonic = "RA33F2_mc", + /// ShortMnemonic = "RA33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Ra33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 18, + /// LongMnemonic = "DEPTMEAS_RP33F2_mc", + /// ShortMnemonic = "DEPTMEAS_RP33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasRp33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 19, + /// LongMnemonic = "RP33F2_mc", + /// ShortMnemonic = "RP33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Rp33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 20, + /// LongMnemonic = "DEPTMEAS_RA33F4_mc", + /// ShortMnemonic = "DEPTMEAS_RA33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasRa33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 21, + /// LongMnemonic = "RA33F4_mc", + /// ShortMnemonic = "RA33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Ra33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 22, + /// LongMnemonic = "DEPTMEAS_RP33F4_mc", + /// ShortMnemonic = "DEPTMEAS_RP33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasRp33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 23, + /// LongMnemonic = "RP33F4_mc", + /// ShortMnemonic = "RP33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Rp33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 46, + /// LongMnemonic = "DEPTMEAS_RA33_mc", + /// ShortMnemonic = "DEPTMEAS_RA33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasRa33Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 47, + /// LongMnemonic = "RA33_mc", + /// ShortMnemonic = "RA33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Ra33Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 28, + /// LongMnemonic = "DEPTMEAS_RP33_mc", + /// ShortMnemonic = "DEPTMEAS_RP33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? DeptmeasRp33Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 29, + /// LongMnemonic = "RP33_mc", + /// ShortMnemonic = "RP33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Rp33Mc { get; set; } + + } +} diff --git a/AsbCloudApp/Data/WITS/Record60.cs b/AsbCloudApp/Data/WITS/Record60.cs new file mode 100644 index 00000000..2fa2e2e1 --- /dev/null +++ b/AsbCloudApp/Data/WITS/Record60.cs @@ -0,0 +1,163 @@ +namespace AsbCloudApp.Data.WITS +{ + /// + /// Record name: Передача полных + /// Description: SibReciver. Передача полных + /// Description2: + /// + + public class Record60Dto : RecordBaseDto + { + + /// + /// RecordId = 60, + /// ItemId = 99, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "SibReceiver custom. Положение долота", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptbitm { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "SibReceiver custom. Точка Замера", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptmeas { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 11, + /// LongMnemonic = "Gtot", + /// ShortMnemonic = "Gtot", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Gtot { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 12, + /// LongMnemonic = "Gx", + /// ShortMnemonic = "Gx", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Gx { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 13, + /// LongMnemonic = "Gy", + /// ShortMnemonic = "Gy", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Gy { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 14, + /// LongMnemonic = "Gz", + /// ShortMnemonic = "Gz", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Gz { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 15, + /// LongMnemonic = "Btot", + /// ShortMnemonic = "Btot", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Btot { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 16, + /// LongMnemonic = "Bx", + /// ShortMnemonic = "Bx", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Bx { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 17, + /// LongMnemonic = "By", + /// ShortMnemonic = "By", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? By { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 18, + /// LongMnemonic = "Bz", + /// ShortMnemonic = "Bz", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Bz { get; set; } + + } +} diff --git a/AsbCloudApp/Data/WITS/Record61.cs b/AsbCloudApp/Data/WITS/Record61.cs new file mode 100644 index 00000000..2c7e3f24 --- /dev/null +++ b/AsbCloudApp/Data/WITS/Record61.cs @@ -0,0 +1,178 @@ +namespace AsbCloudApp.Data.WITS +{ + /// + /// Record name: Резистивиметр Corvet + /// Description: SibReciver. Резистивиметр Corvet + /// Description2: + /// + + public class Record61Dto : RecordBaseDto + { + + /// + /// RecordId = 61, + /// ItemId = 99, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "SibReceiver custom. Положение долота", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptbitm { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "SibReceiver custom. Точка Замера", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptmeas { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 11, + /// LongMnemonic = "PHL1F1", + /// ShortMnemonic = "PHL1F1", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Phl1f1 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 12, + /// LongMnemonic = "PHL1F2", + /// ShortMnemonic = "PHL1F2", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Phl1f2 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 13, + /// LongMnemonic = "PHL2F1", + /// ShortMnemonic = "PHL2F1", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Phl2f1 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 14, + /// LongMnemonic = "PHL2F2", + /// ShortMnemonic = "PHL2F2", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Phl2f2 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 15, + /// LongMnemonic = "ATT06H", + /// ShortMnemonic = "ATT06H", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Att06h { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 16, + /// LongMnemonic = "ATT06L", + /// ShortMnemonic = "ATT06L", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Att06l { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 17, + /// LongMnemonic = "ATT10H", + /// ShortMnemonic = "ATT10H", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Att10h { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 18, + /// LongMnemonic = "ATT10L", + /// ShortMnemonic = "ATT10L", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Att10l { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 19, + /// LongMnemonic = "Status", + /// ShortMnemonic = "Status", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Status { get; set; } + + } +} diff --git a/AsbCloudApp/Data/WITS/Record7.cs b/AsbCloudApp/Data/WITS/Record7.cs new file mode 100644 index 00000000..5066cb8e --- /dev/null +++ b/AsbCloudApp/Data/WITS/Record7.cs @@ -0,0 +1,298 @@ +namespace AsbCloudApp.Data.WITS +{ + /// + /// Record name: Survey/Directional + /// Description: Directional/Survey data + /// Description2: + /// + + public class Record7Dto : RecordBaseDto + { + + /// + /// RecordId = 7, + /// ItemId = 8, + /// LongMnemonic = "DEPTSVYM", + /// ShortMnemonic = "DSVM", + /// Description = "Depth Svy/reading (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptsvym { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 9, + /// LongMnemonic = "DEPTSVYV", + /// ShortMnemonic = "DSVV", + /// Description = "Depth Svy/reading (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptsvyv { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 10, + /// LongMnemonic = "PASSNUM", + /// ShortMnemonic = "PASS", + /// Description = "Pass Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Passnum { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 11, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptmeas { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 12, + /// LongMnemonic = "SVYTYPE", + /// ShortMnemonic = "STYP", + /// Description = "Svy Type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + + public string Svytype { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 13, + /// LongMnemonic = "SVYINC", + /// ShortMnemonic = "SINC", + /// Description = "Svy Inclination", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svyinc { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 14, + /// LongMnemonic = "SVYAZU", + /// ShortMnemonic = "SAZU", + /// Description = "Svy Azimuth (uncorrected)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svyazu { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 15, + /// LongMnemonic = "SVYAZC", + /// ShortMnemonic = "SAZC", + /// Description = "Svy Azimuth (corrected)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svyazc { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 16, + /// LongMnemonic = "SVYMTF", + /// ShortMnemonic = "SMTF", + /// Description = "Svy Magnetic Toolface", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svymtf { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 17, + /// LongMnemonic = "SVYGTF", + /// ShortMnemonic = "SGTF", + /// Description = "Svy Gravity Toolface", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svygtf { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 18, + /// LongMnemonic = "SVYNS", + /// ShortMnemonic = "SNS", + /// Description = "Svy North-South Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svyns { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 19, + /// LongMnemonic = "SVYEW", + /// ShortMnemonic = "SEW", + /// Description = "Svy East-West Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svyew { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 20, + /// LongMnemonic = "SVYDLS", + /// ShortMnemonic = "SDLS", + /// Description = "Svy Dog Leg Severity", + /// Description2 = "", + /// FPSUnits = "DGHF", + /// MetricUnits = "DGHM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svydls { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 21, + /// LongMnemonic = "SVYWALK", + /// ShortMnemonic = "SWLK", + /// Description = "Svy Rate of Walk", + /// Description2 = "", + /// FPSUnits = "DGHF", + /// MetricUnits = "DGHM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Svywalk { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 22, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare1 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 23, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare2 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 24, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare3 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 25, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare4 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 26, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudApp/Data/WITS/Record8.cs b/AsbCloudApp/Data/WITS/Record8.cs new file mode 100644 index 00000000..df1cf67e --- /dev/null +++ b/AsbCloudApp/Data/WITS/Record8.cs @@ -0,0 +1,733 @@ +namespace AsbCloudApp.Data.WITS +{ + /// + /// Record name: MWD Formation Evaluation + /// Description: MWD Formation Evaluation data + /// Description2: + /// + + public class Record8Dto : RecordBaseDto + { + + /// + /// RecordId = 8, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptmeas { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptvert { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 10, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptbitm { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 11, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptbitv { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 12, + /// LongMnemonic = "PASSNUM", + /// ShortMnemonic = "PASS", + /// Description = "Pass Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Passnum { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 13, + /// LongMnemonic = "DEPTRS1M", + /// ShortMnemonic = "DR1M", + /// Description = "Depth Resis 1 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptrs1m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 14, + /// LongMnemonic = "DEPTRS1V", + /// ShortMnemonic = "DR1V", + /// Description = "Depth Resis 1 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptrs1v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 15, + /// LongMnemonic = "MR1", + /// ShortMnemonic = "MR1", + /// Description = "Resis 1 reading", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mr1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 16, + /// LongMnemonic = "MR1C", + /// ShortMnemonic = "MR1C", + /// Description = "Resis 1 (borehole corr)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mr1c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 17, + /// LongMnemonic = "DEPTRS2M", + /// ShortMnemonic = "DR2M", + /// Description = "Depth Resis 2 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptrs2m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 18, + /// LongMnemonic = "DEPTRS2V", + /// ShortMnemonic = "DR2V", + /// Description = "Depth Resis 2 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptrs2v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 19, + /// LongMnemonic = "MR2", + /// ShortMnemonic = "MR2", + /// Description = "Resis 2 reading", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mr2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 20, + /// LongMnemonic = "MR2C", + /// ShortMnemonic = "MR2C", + /// Description = "Resis 2 (borehole corr)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mr2c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 21, + /// LongMnemonic = "DEPTGR1M", + /// ShortMnemonic = "DG1M", + /// Description = "Depth G.Ray 1 sensor(meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptgr1m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 22, + /// LongMnemonic = "DEPTGR1V", + /// ShortMnemonic = "DG1V", + /// Description = "Depth G.Ray 1 sensor(vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptgr1v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 23, + /// LongMnemonic = "MG1", + /// ShortMnemonic = "MG1", + /// Description = "Gamma Ray 1 reading", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mg1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 24, + /// LongMnemonic = "MG1C", + /// ShortMnemonic = "MG1C", + /// Description = "Gamma Ray 1(borehole corr)", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mg1c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 25, + /// LongMnemonic = "DEPTGR2M", + /// ShortMnemonic = "DG2M", + /// Description = "Depth G.Ray 2 sensor(meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptgr2m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 26, + /// LongMnemonic = "DEPTGR2V", + /// ShortMnemonic = "DG2V", + /// Description = "Depth G.Ray 2 sensor(vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptgr2v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 27, + /// LongMnemonic = "MG2", + /// ShortMnemonic = "MG2", + /// Description = "Gamma Ray 2 reading", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mg2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 28, + /// LongMnemonic = "MG2C", + /// ShortMnemonic = "MG2C", + /// Description = "Gamma Ray 2(borehole corr)", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mg2c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 29, + /// LongMnemonic = "DEPTP1M", + /// ShortMnemonic = "DP1M", + /// Description = "Depth Por 1 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptp1m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 30, + /// LongMnemonic = "DEPTP1V", + /// ShortMnemonic = "DP1V", + /// Description = "Depth Por 1 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptp1v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 31, + /// LongMnemonic = "MPO1", + /// ShortMnemonic = "MPO1", + /// Description = "Porosity Tool 1 reading", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mpo1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 32, + /// LongMnemonic = "DEPTP2M", + /// ShortMnemonic = "DP2M", + /// Description = "Depth Por 2 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptp2m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 33, + /// LongMnemonic = "DEPTP2V", + /// ShortMnemonic = "DP2V", + /// Description = "Depth Por 2 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptp2v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 34, + /// LongMnemonic = "MPO2", + /// ShortMnemonic = "MPO2", + /// Description = "Porosity Tool 2 reading", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mpo2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 35, + /// LongMnemonic = "MFTANN", + /// ShortMnemonic = "MFTA", + /// Description = "Downhole Fluid Temp (ann)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mftann { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 36, + /// LongMnemonic = "MFTPIPE", + /// ShortMnemonic = "MFTP", + /// Description = "Downhole Fluid Temp (pipe)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mftpipe { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 37, + /// LongMnemonic = "MFRANN", + /// ShortMnemonic = "MFRA", + /// Description = "Downhole Fluid Resis (ann)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mfrann { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 38, + /// LongMnemonic = "MFRPIPE", + /// ShortMnemonic = "MFRP", + /// Description = "Downhole Fluid Resis (pipe)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mfrpipe { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 39, + /// LongMnemonic = "DEPTFDM", + /// ShortMnemonic = "DFDM", + /// Description = "Depth Form Density (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptfdm { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 40, + /// LongMnemonic = "DEPTFDV", + /// ShortMnemonic = "DFDV", + /// Description = "Depth Form Density (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptfdv { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 41, + /// LongMnemonic = "MFD", + /// ShortMnemonic = "MFD", + /// Description = "Formation Density", + /// Description2 = "", + /// FPSUnits = "G/CC", + /// MetricUnits = "G/CC", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mfd { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 42, + /// LongMnemonic = "DEPTCALM", + /// ShortMnemonic = "DCLM", + /// Description = "Depth Caliper (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptcalm { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 43, + /// LongMnemonic = "DEPTCALV", + /// ShortMnemonic = "DCLV", + /// Description = "Depth Caliper (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Deptcalv { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 44, + /// LongMnemonic = "MCLP", + /// ShortMnemonic = "MCLP", + /// Description = "Caliper", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mclp { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 45, + /// LongMnemonic = "MFPP", + /// ShortMnemonic = "MFPP", + /// Description = "Pore Pressure Grad MWD", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mfpp { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 46, + /// LongMnemonic = "MFFP", + /// ShortMnemonic = "MFFP", + /// Description = "Frac Pressure Grad MWD", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Mffp { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 47, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 48, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 49, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare3 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 50, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare4 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 51, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare5 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 52, + /// LongMnemonic = "SPARE6", + /// ShortMnemonic = "SPR6", + /// Description = "< SPARE 6>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare6 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 53, + /// LongMnemonic = "SPARE7", + /// ShortMnemonic = "SPR7", + /// Description = "< SPARE 7>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare7 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 54, + /// LongMnemonic = "SPARE8", + /// ShortMnemonic = "SPR8", + /// Description = "< SPARE 8>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare8 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 55, + /// LongMnemonic = "SPARE9", + /// ShortMnemonic = "SPR9", + /// Description = "< SPARE 9>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + + public float? Spare9 { get; set; } + + } +} diff --git a/AsbCloudApp/Data/WITS/RecordBase.cs b/AsbCloudApp/Data/WITS/RecordBase.cs new file mode 100644 index 00000000..52e3267b --- /dev/null +++ b/AsbCloudApp/Data/WITS/RecordBase.cs @@ -0,0 +1,119 @@ +namespace AsbCloudApp.Data.WITS +{ + /// + /// This is base class for all WITS-0 records + /// + public abstract class RecordBaseDto + { + public int Id { get; set; } + + + public int TimeStamp { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 1, + /// LongMnemonic = "WELLID", + /// ShortMnemonic = "WID", + /// Description = "Well Identifier", + /// Description2 = "Number/name assigned to the well by the operator for identification purposes. This item is common to all records. This includes a four-character code identifying the SENDER.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + + public string Wellid { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 2, + /// LongMnemonic = "STKNUM", + /// ShortMnemonic = "SKNO", + /// Description = "Sidetrack/Hole Sect No.", + /// Description2 = "Measured depth of the hole at the time the record is generated.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Stknum { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 3, + /// LongMnemonic = "RECID", + /// ShortMnemonic = "RID", + /// Description = "Record Identifier", + /// Description2 = "Number of the sidetrack being drilled at the time the computer generated the record. Prior to having a sidetrack, this number is always 0. The sidetrack number indexes at the time drilling new formation commences (not while drilling the cement plug). This item is common to all records.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Recid { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 4, + /// LongMnemonic = "SEQID", + /// ShortMnemonic = "SQID", + /// Description = "Sequence Identifier", + /// Description2 = "Logical data record type identifier. This item is common to all records and, for current Pre-Defined Records, contains a value between 1 and 25, according to the record type. Types 26 through 49 inclusive are reserved for future expansion of the Pre-Defined records. Types 50 through 80 inclusive are open for Custom user definition. NOTE that the Logical Record Type for a record is this number plus 150, thus WITS Record 1 is Logical Record Type 151, WITS Record 2 is Logical Record Type 152, etc.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + + public int? Seqid { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 5, + /// LongMnemonic = "DATE", + /// ShortMnemonic = "DATE", + /// Description = "Date", + /// Description2 = "Indicates the number of times this record has been generated (it is not reset to zero for a sidetrack). The computer should automatically increase the number by one each time it creates a new record. This item is common to all records. The sequence identifier in each individual record type keeps track of the count for that particular record only. Thus there is a sequence identifier for each record type used.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + + public int? Date { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 6, + /// LongMnemonic = "TIME", + /// ShortMnemonic = "TIME", + /// Description = "Time", + /// Description2 = "Indicates the date the computer generated this record. The date is reported as a 6 digit integer in a YYMMDD type format. e.g. 910404 would represent April 4, 1991. It is common to all records. Note that, like Time below, Universal Coordinated Time (Greenwich Mean Time) is used as the common reference. Note also that though this number should never decrease, there is no guarantee of this fact.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + + public int? Time { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 7, + /// LongMnemonic = "ACTCOD", + /// ShortMnemonic = "ACTC", + /// Description = "Activity Code", + /// Description2 = "Indicates the time of day (24 hour clock), when the computer generated the record, eg. 225015 would represent 10:50:15 pm. This item is common to all records. Note that, like Date above, Universal Coordinated Time (Greenwich Mean Time) is used as the common reference.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + + public short? Actcod { get; set; } + + } +} diff --git a/AsbCloudApp/Services/IWitsRepository.cs b/AsbCloudApp/Services/IWitsRepository.cs new file mode 100644 index 00000000..32a9c8ee --- /dev/null +++ b/AsbCloudApp/Services/IWitsRepository.cs @@ -0,0 +1,11 @@ +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; + +namespace AsbCloudApp.Services +{ + public interface IWitsRepository + { + Task SaveDataAsync(string uid, IEnumerable dtos, CancellationToken token); + } +} \ No newline at end of file diff --git a/AsbCloudDb/AsbCloudDb.csproj b/AsbCloudDb/AsbCloudDb.csproj index 90bdaac5..2c9282b5 100644 --- a/AsbCloudDb/AsbCloudDb.csproj +++ b/AsbCloudDb/AsbCloudDb.csproj @@ -12,4 +12,8 @@ + + + + diff --git a/AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.Designer.cs b/AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.Designer.cs new file mode 100644 index 00000000..f90c0d9b --- /dev/null +++ b/AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.Designer.cs @@ -0,0 +1,5771 @@ +// +using System; +using System.Collections.Generic; +using AsbCloudDb.Model; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace AsbCloudDb.Migrations +{ + [DbContext(typeof(AsbCloudDbContext))] + [Migration("20220401122724_Add_WitsRecords")] + partial class Add_WitsRecords + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .UseCollation("Russian_Russia.1251") + .HasAnnotation("ProductVersion", "6.0.1") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "adminpack"); + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.Property("IdDeposit") + .HasColumnType("integer") + .HasColumnName("id_deposit"); + + b.Property("Latitude") + .HasColumnType("double precision") + .HasColumnName("latitude"); + + b.Property("Longitude") + .HasColumnType("double precision") + .HasColumnName("longitude"); + + b.Property("Timezone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.HasIndex("IdDeposit"); + + b.ToTable("t_cluster"); + + b.HasComment("Кусты"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Company", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.Property("IdCompanyType") + .HasMaxLength(255) + .HasColumnType("integer") + .HasColumnName("id_company_type") + .HasComment("вид деятельности"); + + b.HasKey("Id"); + + b.HasIndex("IdCompanyType"); + + b.ToTable("t_company"); + + b.HasData( + new + { + Id = 1, + Caption = "ООО \"АСБ\"", + IdCompanyType = 3 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.CompanyType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.HasKey("Id"); + + b.ToTable("t_company_type"); + + b.HasData( + new + { + Id = 1, + Caption = "Недрапользователь" + }, + new + { + Id = 2, + Caption = "Буровой подрядчик" + }, + new + { + Id = 3, + Caption = "Сервис автоматизации бурения" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Deposit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.Property("Latitude") + .HasColumnType("double precision") + .HasColumnName("latitude"); + + b.Property("Longitude") + .HasColumnType("double precision") + .HasColumnName("longitude"); + + b.Property("Timezone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.ToTable("t_deposit"); + + b.HasComment("Месторождение"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillFlowChart", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("AxialLoadMax") + .HasColumnType("double precision") + .HasColumnName("axial_load_max") + .HasComment("Максимальная нагрузка"); + + b.Property("AxialLoadMin") + .HasColumnType("double precision") + .HasColumnName("axial_load_min") + .HasComment("Минимальная нагрузка"); + + b.Property("DepthEnd") + .HasColumnType("double precision") + .HasColumnName("depth_end") + .HasComment("Глубина окончания интервала"); + + b.Property("DepthStart") + .HasColumnType("double precision") + .HasColumnName("depth_start") + .HasComment("Стартовая глубина"); + + b.Property("FlowMax") + .HasColumnType("double precision") + .HasColumnName("flow_max") + .HasComment("Максимальный расход"); + + b.Property("FlowMin") + .HasColumnType("double precision") + .HasColumnName("flow_min") + .HasComment("Минимальный расход"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("well_id") + .HasComment("Id скважины"); + + b.Property("IdWellOperationCategory") + .HasColumnType("integer") + .HasColumnName("id_operation_category") + .HasComment("Id типа операции"); + + b.Property("LastUpdate") + .HasColumnType("timestamp with time zone") + .HasColumnName("last_update") + .HasComment("Дата последнего изменения"); + + b.Property("PressureMax") + .HasColumnType("double precision") + .HasColumnName("pressure_max") + .HasComment("Максимальное давление"); + + b.Property("PressureMin") + .HasColumnType("double precision") + .HasColumnName("pressure_min") + .HasComment("Минимальное давление"); + + b.Property("RotorSpeedMax") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_max") + .HasComment("Максимальные обороты на ВСП"); + + b.Property("RotorSpeedMin") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_min") + .HasComment("Минимальные обороты на ВСП"); + + b.Property("RotorTorqueMax") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_max") + .HasComment("Максимальный момент на ВСП"); + + b.Property("RotorTorqueMin") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_min") + .HasComment("Минимальный момент на ВСП"); + + b.HasKey("Id"); + + b.HasIndex("IdWell"); + + b.HasIndex("IdWellOperationCategory"); + + b.ToTable("t_drill_flow_chart"); + + b.HasComment("Параметры коридоров бурения (диапазоны параметров бурения)"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillingProgramPart", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("IdFileCategory") + .HasColumnType("integer") + .HasColumnName("id_file_category"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well"); + + b.HasKey("Id"); + + b.HasIndex("IdFileCategory"); + + b.HasIndex("IdWell", "IdFileCategory") + .IsUnique(); + + b.ToTable("t_drilling_program_part"); + + b.HasComment("части программ бурения"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillParams", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("AxialLoadAvg") + .HasColumnType("double precision") + .HasColumnName("axial_load_avg") + .HasComment("Средняя нагрузка"); + + b.Property("AxialLoadMax") + .HasColumnType("double precision") + .HasColumnName("axial_load_max") + .HasComment("Максимальная нагрузка"); + + b.Property("AxialLoadMin") + .HasColumnType("double precision") + .HasColumnName("axial_load_min") + .HasComment("Минимальная нагрузка"); + + b.Property("DepthEnd") + .HasColumnType("double precision") + .HasColumnName("depth_end") + .HasComment("Глубина окончания интервала"); + + b.Property("DepthStart") + .HasColumnType("double precision") + .HasColumnName("depth_start") + .HasComment("Стартовая глубина"); + + b.Property("FlowAvg") + .HasColumnType("double precision") + .HasColumnName("flow_avg") + .HasComment("Средний расход"); + + b.Property("FlowMax") + .HasColumnType("double precision") + .HasColumnName("flow_max") + .HasComment("Максимальный расход"); + + b.Property("FlowMin") + .HasColumnType("double precision") + .HasColumnName("flow_min") + .HasComment("Минимальный расход"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("well_id") + .HasComment("Id скважины"); + + b.Property("IdWellSectionType") + .HasColumnType("integer") + .HasColumnName("id_wellsection_type") + .HasComment("Id с типом секции скважины"); + + b.Property("PressureAvg") + .HasColumnType("double precision") + .HasColumnName("pressure_avg") + .HasComment("Среднее давление"); + + b.Property("PressureMax") + .HasColumnType("double precision") + .HasColumnName("pressure_max") + .HasComment("Максимальное давление"); + + b.Property("PressureMin") + .HasColumnType("double precision") + .HasColumnName("pressure_min") + .HasComment("Минимальное давление"); + + b.Property("RotorSpeedAvg") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_avg") + .HasComment("Средние обороты на ВСП"); + + b.Property("RotorSpeedMax") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_max") + .HasComment("Максимальные обороты на ВСП"); + + b.Property("RotorSpeedMin") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_min") + .HasComment("Минимальные обороты на ВСП"); + + b.Property("RotorTorqueAvg") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_avg") + .HasComment("Средний момент на ВСП"); + + b.Property("RotorTorqueMax") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_max") + .HasComment("Максимальный момент на ВСП"); + + b.Property("RotorTorqueMin") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_min") + .HasComment("Минимальный момент на ВСП"); + + b.HasKey("Id"); + + b.HasIndex("IdWell"); + + b.HasIndex("IdWellSectionType"); + + b.ToTable("t_drill_params"); + + b.HasComment("Режим бурения в секции (диапазоны параметров бурения)"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileCategory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название категории"); + + b.Property("ShortName") + .HasColumnType("text") + .HasColumnName("short_name") + .HasComment("Короткое название категории"); + + b.HasKey("Id"); + + b.ToTable("t_file_category"); + + b.HasComment("Категории файлов"); + + b.HasData( + new + { + Id = 1, + Name = "Растворный сервис", + ShortName = "fluidService" + }, + new + { + Id = 2, + Name = "Цементирование", + ShortName = "cement" + }, + new + { + Id = 3, + Name = "ННБ", + ShortName = "nnb" + }, + new + { + Id = 4, + Name = "ГТИ", + ShortName = "gti" + }, + new + { + Id = 5, + Name = "Документы по скважине", + ShortName = "wellDocuments" + }, + new + { + Id = 6, + Name = "Супервайзер", + ShortName = "supervisor" + }, + new + { + Id = 7, + Name = "Мастер", + ShortName = "master" + }, + new + { + Id = 8, + Name = "Долотный сервис", + ShortName = "toolService" + }, + new + { + Id = 9, + Name = "Буровой подрядчик", + ShortName = "drillService" + }, + new + { + Id = 10, + Name = "Сервис по заканчиванию скважины", + ShortName = "closingService" + }, + new + { + Id = 12, + Name = "Рапорт", + ShortName = "report" + }, + new + { + Id = 1000, + Name = "Программа бурения" + }, + new + { + Id = 1001, + Name = "Задание от геологов" + }, + new + { + Id = 1002, + Name = "Профиль ствола скважины (ННБ)" + }, + new + { + Id = 1003, + Name = "Технологические расчеты (ННБ)" + }, + new + { + Id = 1004, + Name = "Долотная программа" + }, + new + { + Id = 1005, + Name = "Программа по растворам" + }, + new + { + Id = 1006, + Name = "Программа геофизических исследований" + }, + new + { + Id = 1007, + Name = "Планы спусков обсадных колонн" + }, + new + { + Id = 1008, + Name = "Программы цементирования обсадных колонн" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("IdAuthor") + .HasColumnType("integer") + .HasColumnName("id_author") + .HasComment("Id пользователя, загрузившего файл"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category") + .HasComment("id категории файла"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("IsDeleted") + .HasColumnType("boolean") + .HasColumnName("is_deleted") + .HasComment("Удален ли файл"); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название файла"); + + b.Property("PublishInfo") + .HasColumnType("jsonb") + .HasColumnName("publish_info") + .HasComment("Информация о файле в облаке"); + + b.Property("Size") + .HasColumnType("bigint") + .HasColumnName("file_size") + .HasComment("Размер файла"); + + b.Property("UploadDate") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.HasKey("Id"); + + b.HasIndex("IdAuthor"); + + b.HasIndex("IdCategory"); + + b.HasIndex("IdWell"); + + b.ToTable("t_file_info"); + + b.HasComment("Файлы всех категорий"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileMark", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Comment") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("comment") + .HasComment("Комментарий"); + + b.Property("DateCreated") + .HasColumnType("timestamp with time zone") + .HasColumnName("date_created") + .HasComment("Дата совершенного действия"); + + b.Property("IdFile") + .HasColumnType("integer") + .HasColumnName("id_file") + .HasComment("id файла"); + + b.Property("IdMarkType") + .HasColumnType("integer") + .HasColumnName("id_mark_type") + .HasComment("0 - отклонен, 1 - согласован"); + + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user") + .HasComment("id пользователя"); + + b.Property("IsDeleted") + .HasColumnType("boolean") + .HasColumnName("is_deleted") + .HasComment("Помечен ли файл как удаленный"); + + b.HasKey("Id"); + + b.HasIndex("IdFile"); + + b.HasIndex("IdUser"); + + b.ToTable("t_file_mark"); + + b.HasComment("Действия с файлами."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Measure", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Data") + .HasColumnType("jsonb") + .HasColumnName("data") + .HasComment("Данные таблицы последних данных"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category") + .HasComment("id категории"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("IsDeleted") + .HasColumnType("boolean") + .HasColumnName("is_deleted") + .HasComment("Пометка удаленным"); + + b.Property("Timestamp") + .HasColumnType("timestamp with time zone") + .HasColumnName("timestamp") + .HasComment("время добавления"); + + b.HasKey("Id"); + + b.HasIndex("IdCategory"); + + b.HasIndex("IdWell"); + + b.ToTable("t_measure"); + + b.HasComment("Таблица c данными для вкладки 'Последние данные'"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.MeasureCategory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название категории"); + + b.Property("ShortName") + .HasColumnType("text") + .HasColumnName("short_name") + .HasComment("Короткое название категории"); + + b.HasKey("Id"); + + b.ToTable("t_measure_category"); + + b.HasComment("Категория последних данных"); + + b.HasData( + new + { + Id = 1, + Name = "Показатели бурового раствора", + ShortName = "Раствор" + }, + new + { + Id = 2, + Name = "Шламограмма", + ShortName = "Шламограмма" + }, + new + { + Id = 3, + Name = "ННБ", + ShortName = "ННБ" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Permission", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Description") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("description") + .HasComment("Краткое описание"); + + b.Property("Name") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("name") + .HasComment("Название"); + + b.HasKey("Id"); + + b.ToTable("t_permission"); + + b.HasComment("Разрешения на доступ к данным"); + + b.HasData( + new + { + Id = 100, + Description = "Разрешение удалять админ. Кусты", + Name = "AdminCluster.delete" + }, + new + { + Id = 101, + Description = "Разрешение редактировать админ. Кусты", + Name = "AdminCluster.edit" + }, + new + { + Id = 102, + Description = "Разрешение просматривать админ. Кусты", + Name = "AdminCluster.get" + }, + new + { + Id = 103, + Description = "Разрешение удалять админ. Компании", + Name = "AdminCompany.delete" + }, + new + { + Id = 104, + Description = "Разрешение редактировать админ. Компании", + Name = "AdminCompany.edit" + }, + new + { + Id = 105, + Description = "Разрешение просматривать админ. Компании", + Name = "AdminCompany.get" + }, + new + { + Id = 106, + Description = "Разрешение удалять админ. Типы компаний", + Name = "AdminCompanyType.delete" + }, + new + { + Id = 107, + Description = "Разрешение редактировать админ. Типы компаний", + Name = "AdminCompanyType.edit" + }, + new + { + Id = 108, + Description = "Разрешение просматривать админ. Типы компаний", + Name = "AdminCompanyType.get" + }, + new + { + Id = 109, + Description = "Разрешение удалять админ. Месторождения", + Name = "AdminDeposit.delete" + }, + new + { + Id = 110, + Description = "Разрешение редактировать админ. Месторождения", + Name = "AdminDeposit.edit" + }, + new + { + Id = 111, + Description = "Разрешение просматривать админ. Месторождения", + Name = "AdminDeposit.get" + }, + new + { + Id = 112, + Description = "Разрешение удалять админ. Разрешения", + Name = "AdminPermission.delete" + }, + new + { + Id = 113, + Description = "Разрешение редактировать админ. Разрешения", + Name = "AdminPermission.edit" + }, + new + { + Id = 114, + Description = "Разрешение просматривать админ. Разрешения", + Name = "AdminPermission.get" + }, + new + { + Id = 115, + Description = "Разрешение удалять админ. Телеметрию", + Name = "AdminTelemetry.delete" + }, + new + { + Id = 116, + Description = "Разрешение редактировать админ. Телеметрию", + Name = "AdminTelemetry.edit" + }, + new + { + Id = 117, + Description = "Разрешение просматривать админ. Телеметрию", + Name = "AdminTelemetry.get" + }, + new + { + Id = 118, + Description = "Разрешение удалять админ. Пользователей", + Name = "AdminUser.delete" + }, + new + { + Id = 119, + Description = "Разрешение редактировать админ. Пользователей", + Name = "AdminUser.edit" + }, + new + { + Id = 120, + Description = "Разрешение просматривать админ. Пользователей", + Name = "AdminUser.get" + }, + new + { + Id = 121, + Description = "Разрешение удалять админ. Роли пользователей", + Name = "AdminUserRole.delete" + }, + new + { + Id = 122, + Description = "Разрешение редактировать админ. Роли пользователей", + Name = "AdminUserRole.edit" + }, + new + { + Id = 123, + Description = "Разрешение просматривать админ. Роли пользователей", + Name = "AdminUserRole.get" + }, + new + { + Id = 124, + Description = "Разрешение удалять админ. Скважины", + Name = "AdminWell.delete" + }, + new + { + Id = 125, + Description = "Разрешение редактировать админ. Скважины", + Name = "AdminWell.edit" + }, + new + { + Id = 126, + Description = "Разрешение просматривать админ. Скважины", + Name = "AdminWell.get" + }, + new + { + Id = 200, + Description = "Разрешение редактировать 0", + Name = "Auth.edit" + }, + new + { + Id = 201, + Description = "Разрешение просматривать 0", + Name = "Auth.get" + }, + new + { + Id = 202, + Description = "Разрешение просматривать Кусты", + Name = "Cluster.get" + }, + new + { + Id = 203, + Description = "Разрешение просматривать Месторождения", + Name = "Deposit.get" + }, + new + { + Id = 204, + Description = "Разрешение удалять РТК", + Name = "DrillFlowChart.delete" + }, + new + { + Id = 205, + Description = "Разрешение редактировать РТК", + Name = "DrillFlowChart.edit" + }, + new + { + Id = 206, + Description = "Разрешение просматривать РТК", + Name = "DrillFlowChart.get" + }, + new + { + Id = 207, + Description = "Разрешение удалять Программу бурения", + Name = "DrillingProgram.delete" + }, + new + { + Id = 208, + Description = "Разрешение редактировать Программу бурения", + Name = "DrillingProgram.edit" + }, + new + { + Id = 209, + Description = "Разрешение просматривать Программу бурения", + Name = "DrillingProgram.get" + }, + new + { + Id = 210, + Description = "Разрешение удалять Режимы бурения", + Name = "DrillParams.delete" + }, + new + { + Id = 211, + Description = "Разрешение редактировать Режимы бурения", + Name = "DrillParams.edit" + }, + new + { + Id = 212, + Description = "Разрешение просматривать Режимы бурения", + Name = "DrillParams.get" + }, + new + { + Id = 213, + Description = "Разрешение удалять Файлы", + Name = "File.delete" + }, + new + { + Id = 214, + Description = "Разрешение редактировать Файлы", + Name = "File.edit" + }, + new + { + Id = 215, + Description = "Разрешение просматривать Файлы", + Name = "File.get" + }, + new + { + Id = 216, + Description = "Разрешение удалять Измерения", + Name = "Measure.delete" + }, + new + { + Id = 217, + Description = "Разрешение редактировать Измерения", + Name = "Measure.edit" + }, + new + { + Id = 218, + Description = "Разрешение просматривать Измерения", + Name = "Measure.get" + }, + new + { + Id = 219, + Description = "Разрешение просматривать Сообщения телеметрии", + Name = "Message.get" + }, + new + { + Id = 220, + Description = "Разрешение просматривать Статистику по операциям", + Name = "OperationStat.get" + }, + new + { + Id = 221, + Description = "Разрешение редактировать Рапорта", + Name = "Report.edit" + }, + new + { + Id = 222, + Description = "Разрешение просматривать Рапорта", + Name = "Report.get" + }, + new + { + Id = 223, + Description = "Разрешение просматривать админ. Системная статистика", + Name = "RequestTracker.get" + }, + new + { + Id = 224, + Description = "Разрешение удалять Рекомендации уставок", + Name = "Setpoints.delete" + }, + new + { + Id = 225, + Description = "Разрешение редактировать Рекомендации уставок", + Name = "Setpoints.edit" + }, + new + { + Id = 226, + Description = "Разрешение просматривать Рекомендации уставок", + Name = "Setpoints.get" + }, + new + { + Id = 227, + Description = "Разрешение редактировать Телеметрии", + Name = "Telemetry.edit" + }, + new + { + Id = 228, + Description = "Разрешение просматривать Анализ телеметрии", + Name = "TelemetryAnalytics.get" + }, + new + { + Id = 229, + Description = "Разрешение редактировать Данные телеметрии по САУБ", + Name = "TelemetryDataSaub.edit" + }, + new + { + Id = 230, + Description = "Разрешение просматривать Данные телеметрии по САУБ", + Name = "TelemetryDataSaub.get" + }, + new + { + Id = 231, + Description = "Разрешение редактировать Данные телеметрии по SpinMaster", + Name = "TelemetryDataSpin.edit" + }, + new + { + Id = 232, + Description = "Разрешение просматривать Данные телеметрии по SpinMaster", + Name = "TelemetryDataSpin.get" + }, + new + { + Id = 233, + Description = "Разрешение редактировать Скважины", + Name = "Well.edit" + }, + new + { + Id = 234, + Description = "Разрешение просматривать Скважины", + Name = "Well.get" + }, + new + { + Id = 235, + Description = "Разрешение редактировать Композитные скважины", + Name = "WellComposite.edit" + }, + new + { + Id = 236, + Description = "Разрешение просматривать Композитные скважины", + Name = "WellComposite.get" + }, + new + { + Id = 237, + Description = "Разрешение удалять Операции по скважинам", + Name = "WellOperation.delete" + }, + new + { + Id = 238, + Description = "Разрешение редактировать Операции по скважинам", + Name = "WellOperation.edit" + }, + new + { + Id = 239, + Description = "Разрешение просматривать Операции по скважинам", + Name = "WellOperation.get" + }, + new + { + Id = 240, + Description = "Разрешение редактировать Файлы категории 1 (Растворный сервис)", + Name = "File.edit1" + }, + new + { + Id = 241, + Description = "Разрешение редактировать Файлы категории 2 (Цементирование)", + Name = "File.edit2" + }, + new + { + Id = 242, + Description = "Разрешение редактировать Файлы категории 3 (ННБ)", + Name = "File.edit3" + }, + new + { + Id = 243, + Description = "Разрешение редактировать Файлы категории 4 (ГТИ)", + Name = "File.edit4" + }, + new + { + Id = 244, + Description = "Разрешение редактировать Файлы категории 5 (Документы по скважине)", + Name = "File.edit5" + }, + new + { + Id = 245, + Description = "Разрешение редактировать Файлы категории 6 (Супервайзер)", + Name = "File.edit6" + }, + new + { + Id = 246, + Description = "Разрешение редактировать Файлы категории 7 (Мастер)", + Name = "File.edit7" + }, + new + { + Id = 247, + Description = "Разрешение редактировать Файлы категории 8 (Долотный сервис)", + Name = "File.edit8" + }, + new + { + Id = 248, + Description = "Разрешение редактировать Файлы категории 9 (Буровой подрядчик)", + Name = "File.edit9" + }, + new + { + Id = 249, + Description = "Разрешение редактировать Файлы категории 10 (Сервис по заканчиванию скважины)", + Name = "File.edit10" + }, + new + { + Id = 250, + Description = "Разрешение редактировать Файлы категории 11 (Рапорт)", + Name = "File.edit11" + }, + new + { + Id = 251, + Description = "Разрешение редактировать Файлы категории 12", + Name = "File.edit12" + }, + new + { + Id = 252, + Description = "Разрешение редактировать Файлы категории 12", + Name = "File.edit13" + }, + new + { + Id = 253, + Description = "Разрешение редактировать Файлы категории 13", + Name = "File.edit14" + }, + new + { + Id = 254, + Description = "Разрешение редактировать Файлы категории 14", + Name = "File.edit15" + }, + new + { + Id = 255, + Description = "Разрешение редактировать Файлы категории 15", + Name = "File.edit16" + }, + new + { + Id = 256, + Description = "Разрешение редактировать Файлы категории 16", + Name = "File.edit17" + }, + new + { + Id = 257, + Description = "Разрешение редактировать Файлы категории 17", + Name = "File.edit18" + }, + new + { + Id = 258, + Description = "Разрешение редактировать Файлы категории 18", + Name = "File.edit19" + }, + new + { + Id = 259, + Description = "Разрешение редактировать Файлы категории 19", + Name = "File.edit20" + }, + new + { + Id = 260, + Description = "Разрешение редактировать Файлы категории 20", + Name = "File.edit21" + }, + new + { + Id = 261, + Description = "Разрешение редактировать Файлы категории 21", + Name = "File.edit22" + }, + new + { + Id = 262, + Description = "Разрешение редактировать Файлы категории 22", + Name = "File.edit23" + }, + new + { + Id = 263, + Description = "Разрешение редактировать Файлы категории 23", + Name = "File.edit24" + }, + new + { + Id = 264, + Description = "Разрешение редактировать Файлы категории 24", + Name = "File.edit25" + }, + new + { + Id = 265, + Description = "Разрешение редактировать Файлы категории 25", + Name = "File.edit26" + }, + new + { + Id = 266, + Description = "Разрешение редактировать Файлы категории 26", + Name = "File.edit27" + }, + new + { + Id = 267, + Description = "Разрешение редактировать Файлы категории 27", + Name = "File.edit28" + }, + new + { + Id = 268, + Description = "Разрешение редактировать Файлы категории 28", + Name = "File.edit29" + }, + new + { + Id = 269, + Description = "Разрешение редактировать Файлы категории 29", + Name = "File.edit30" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationCompanyWell", b => + { + b.Property("IdCompany") + .HasColumnType("integer") + .HasColumnName("id_company"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well"); + + b.HasKey("IdCompany", "IdWell"); + + b.HasIndex("IdWell"); + + b.ToTable("t_relation_company_well"); + + b.HasComment("отношение скважин и компаний"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserDrillingProgramPart", b => + { + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user"); + + b.Property("IdDrillingProgramPart") + .HasColumnType("integer") + .HasColumnName("id_drilling_program_part"); + + b.Property("IdUserRole") + .HasColumnType("integer") + .HasColumnName("id_role") + .HasComment("1 - publisher, 2 - approver"); + + b.HasKey("IdUser", "IdDrillingProgramPart") + .HasName("t_relation_user_drilling_program_part_pk"); + + b.HasIndex("IdDrillingProgramPart"); + + b.ToTable("t_relation_user_drilling_program_part"); + + b.HasComment("Отношение пользователей и частей ПБ"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRolePermission", b => + { + b.Property("IdUserRole") + .HasColumnType("integer") + .HasColumnName("id_user_role"); + + b.Property("IdPermission") + .HasColumnType("integer") + .HasColumnName("id_permission"); + + b.HasKey("IdUserRole", "IdPermission"); + + b.HasIndex("IdPermission"); + + b.ToTable("t_relation_user_role_permission"); + + b.HasComment("Отношение ролей пользователей и разрешений доступа"); + + b.HasData( + new + { + IdUserRole = 1100, + IdPermission = 102 + }, + new + { + IdUserRole = 1100, + IdPermission = 111 + }, + new + { + IdUserRole = 1101, + IdPermission = 101 + }, + new + { + IdUserRole = 1101, + IdPermission = 100 + }, + new + { + IdUserRole = 1102, + IdPermission = 105 + }, + new + { + IdUserRole = 1102, + IdPermission = 108 + }, + new + { + IdUserRole = 1103, + IdPermission = 104 + }, + new + { + IdUserRole = 1103, + IdPermission = 103 + }, + new + { + IdUserRole = 1104, + IdPermission = 108 + }, + new + { + IdUserRole = 1105, + IdPermission = 107 + }, + new + { + IdUserRole = 1105, + IdPermission = 106 + }, + new + { + IdUserRole = 1106, + IdPermission = 111 + }, + new + { + IdUserRole = 1107, + IdPermission = 110 + }, + new + { + IdUserRole = 1107, + IdPermission = 109 + }, + new + { + IdUserRole = 1108, + IdPermission = 114 + }, + new + { + IdUserRole = 1109, + IdPermission = 113 + }, + new + { + IdUserRole = 1109, + IdPermission = 112 + }, + new + { + IdUserRole = 1110, + IdPermission = 123 + }, + new + { + IdUserRole = 1110, + IdPermission = 114 + }, + new + { + IdUserRole = 1111, + IdPermission = 122 + }, + new + { + IdUserRole = 1111, + IdPermission = 121 + }, + new + { + IdUserRole = 1112, + IdPermission = 117 + }, + new + { + IdUserRole = 1113, + IdPermission = 105 + }, + new + { + IdUserRole = 1113, + IdPermission = 123 + }, + new + { + IdUserRole = 1113, + IdPermission = 120 + }, + new + { + IdUserRole = 1114, + IdPermission = 119 + }, + new + { + IdUserRole = 1114, + IdPermission = 118 + }, + new + { + IdUserRole = 1114, + IdPermission = 200 + }, + new + { + IdUserRole = 1115, + IdPermission = 223 + }, + new + { + IdUserRole = 1116, + IdPermission = 105 + }, + new + { + IdUserRole = 1116, + IdPermission = 102 + }, + new + { + IdUserRole = 1116, + IdPermission = 117 + }, + new + { + IdUserRole = 1116, + IdPermission = 126 + }, + new + { + IdUserRole = 1117, + IdPermission = 125 + }, + new + { + IdUserRole = 1117, + IdPermission = 124 + }, + new + { + IdUserRole = 1200, + IdPermission = 203 + }, + new + { + IdUserRole = 1200, + IdPermission = 230 + }, + new + { + IdUserRole = 1201, + IdPermission = 202 + }, + new + { + IdUserRole = 1201, + IdPermission = 203 + }, + new + { + IdUserRole = 1201, + IdPermission = 220 + }, + new + { + IdUserRole = 1202, + IdPermission = 203 + }, + new + { + IdUserRole = 1202, + IdPermission = 220 + }, + new + { + IdUserRole = 1202, + IdPermission = 236 + }, + new + { + IdUserRole = 1202, + IdPermission = 212 + }, + new + { + IdUserRole = 1203, + IdPermission = 235 + }, + new + { + IdUserRole = 1204, + IdPermission = 202 + }, + new + { + IdUserRole = 1204, + IdPermission = 203 + }, + new + { + IdUserRole = 1205, + IdPermission = 215 + }, + new + { + IdUserRole = 1206, + IdPermission = 203 + }, + new + { + IdUserRole = 1206, + IdPermission = 206 + }, + new + { + IdUserRole = 1207, + IdPermission = 205 + }, + new + { + IdUserRole = 1208, + IdPermission = 218 + }, + new + { + IdUserRole = 1209, + IdPermission = 217 + }, + new + { + IdUserRole = 1210, + IdPermission = 203 + }, + new + { + IdUserRole = 1210, + IdPermission = 230 + }, + new + { + IdUserRole = 1210, + IdPermission = 219 + }, + new + { + IdUserRole = 1211, + IdPermission = 203 + }, + new + { + IdUserRole = 1211, + IdPermission = 220 + }, + new + { + IdUserRole = 1211, + IdPermission = 239 + }, + new + { + IdUserRole = 1212, + IdPermission = 238 + }, + new + { + IdUserRole = 1212, + IdPermission = 237 + }, + new + { + IdUserRole = 1213, + IdPermission = 203 + }, + new + { + IdUserRole = 1213, + IdPermission = 239 + }, + new + { + IdUserRole = 1213, + IdPermission = 212 + }, + new + { + IdUserRole = 1214, + IdPermission = 211 + }, + new + { + IdUserRole = 1214, + IdPermission = 210 + }, + new + { + IdUserRole = 1215, + IdPermission = 203 + }, + new + { + IdUserRole = 1215, + IdPermission = 222 + }, + new + { + IdUserRole = 1216, + IdPermission = 221 + }, + new + { + IdUserRole = 1217, + IdPermission = 226 + }, + new + { + IdUserRole = 1218, + IdPermission = 225 + }, + new + { + IdUserRole = 1218, + IdPermission = 224 + }, + new + { + IdUserRole = 1219, + IdPermission = 203 + }, + new + { + IdUserRole = 1219, + IdPermission = 206 + }, + new + { + IdUserRole = 1219, + IdPermission = 230 + }, + new + { + IdUserRole = 1219, + IdPermission = 232 + }, + new + { + IdUserRole = 1220, + IdPermission = 203 + }, + new + { + IdUserRole = 1220, + IdPermission = 228 + }, + new + { + IdUserRole = 1221, + IdPermission = 202 + }, + new + { + IdUserRole = 1221, + IdPermission = 203 + }, + new + { + IdUserRole = 1221, + IdPermission = 220 + }, + new + { + IdUserRole = 1221, + IdPermission = 234 + }, + new + { + IdUserRole = 1501, + IdPermission = 214 + }, + new + { + IdUserRole = 1501, + IdPermission = 213 + }, + new + { + IdUserRole = 1502, + IdPermission = 207 + }, + new + { + IdUserRole = 1502, + IdPermission = 208 + }, + new + { + IdUserRole = 2000, + IdPermission = 205 + }, + new + { + IdUserRole = 2000, + IdPermission = 204 + }, + new + { + IdUserRole = 2000, + IdPermission = 245 + }, + new + { + IdUserRole = 2001, + IdPermission = 244 + }, + new + { + IdUserRole = 2001, + IdPermission = 245 + }, + new + { + IdUserRole = 2002, + IdPermission = 244 + }, + new + { + IdUserRole = 2002, + IdPermission = 246 + }, + new + { + IdUserRole = 2002, + IdPermission = 237 + }, + new + { + IdUserRole = 2002, + IdPermission = 238 + }, + new + { + IdUserRole = 2003, + IdPermission = 240 + }, + new + { + IdUserRole = 2003, + IdPermission = 217 + }, + new + { + IdUserRole = 2003, + IdPermission = 216 + }, + new + { + IdUserRole = 2004, + IdPermission = 242 + }, + new + { + IdUserRole = 2004, + IdPermission = 217 + }, + new + { + IdUserRole = 2004, + IdPermission = 216 + }, + new + { + IdUserRole = 2004, + IdPermission = 205 + }, + new + { + IdUserRole = 2004, + IdPermission = 204 + }, + new + { + IdUserRole = 2005, + IdPermission = 247 + }, + new + { + IdUserRole = 2005, + IdPermission = 205 + }, + new + { + IdUserRole = 2005, + IdPermission = 204 + }, + new + { + IdUserRole = 2006, + IdPermission = 243 + }, + new + { + IdUserRole = 2006, + IdPermission = 205 + }, + new + { + IdUserRole = 2006, + IdPermission = 204 + }, + new + { + IdUserRole = 2007, + IdPermission = 241 + }, + new + { + IdUserRole = 2007, + IdPermission = 205 + }, + new + { + IdUserRole = 2007, + IdPermission = 204 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRoleUserRole", b => + { + b.Property("Id") + .HasColumnType("integer") + .HasColumnName("id_user_role"); + + b.Property("IdInclude") + .HasColumnType("integer") + .HasColumnName("id_include_user_role"); + + b.HasKey("Id", "IdInclude") + .HasName("t_relation_user_role_user_role_pk"); + + b.HasIndex("IdInclude"); + + b.ToTable("t_relation_user_role_user_role"); + + b.HasComment("Отношение ролей к ролям"); + + b.HasData( + new + { + Id = 1101, + IdInclude = 1100 + }, + new + { + Id = 1103, + IdInclude = 1102 + }, + new + { + Id = 1105, + IdInclude = 1104 + }, + new + { + Id = 1107, + IdInclude = 1106 + }, + new + { + Id = 1109, + IdInclude = 1108 + }, + new + { + Id = 1111, + IdInclude = 1110 + }, + new + { + Id = 1114, + IdInclude = 1113 + }, + new + { + Id = 1117, + IdInclude = 1116 + }, + new + { + Id = 1203, + IdInclude = 1202 + }, + new + { + Id = 1207, + IdInclude = 1206 + }, + new + { + Id = 1209, + IdInclude = 1208 + }, + new + { + Id = 1212, + IdInclude = 1211 + }, + new + { + Id = 1214, + IdInclude = 1213 + }, + new + { + Id = 1216, + IdInclude = 1215 + }, + new + { + Id = 1218, + IdInclude = 1217 + }, + new + { + Id = 2000, + IdInclude = 1200 + }, + new + { + Id = 2000, + IdInclude = 1201 + }, + new + { + Id = 2000, + IdInclude = 1202 + }, + new + { + Id = 2000, + IdInclude = 1204 + }, + new + { + Id = 2000, + IdInclude = 1205 + }, + new + { + Id = 2000, + IdInclude = 1206 + }, + new + { + Id = 2000, + IdInclude = 1208 + }, + new + { + Id = 2000, + IdInclude = 1210 + }, + new + { + Id = 2000, + IdInclude = 1211 + }, + new + { + Id = 2000, + IdInclude = 1213 + }, + new + { + Id = 2000, + IdInclude = 1215 + }, + new + { + Id = 2000, + IdInclude = 1217 + }, + new + { + Id = 2000, + IdInclude = 1219 + }, + new + { + Id = 2000, + IdInclude = 1220 + }, + new + { + Id = 2000, + IdInclude = 1221 + }, + new + { + Id = 2000, + IdInclude = 1500 + }, + new + { + Id = 2000, + IdInclude = 1501 + }, + new + { + Id = 2000, + IdInclude = 1502 + }, + new + { + Id = 2001, + IdInclude = 1500 + }, + new + { + Id = 2001, + IdInclude = 1501 + }, + new + { + Id = 2001, + IdInclude = 1502 + }, + new + { + Id = 2002, + IdInclude = 1500 + }, + new + { + Id = 2002, + IdInclude = 1501 + }, + new + { + Id = 2002, + IdInclude = 1502 + }, + new + { + Id = 2003, + IdInclude = 1500 + }, + new + { + Id = 2003, + IdInclude = 1501 + }, + new + { + Id = 2003, + IdInclude = 1502 + }, + new + { + Id = 2004, + IdInclude = 1500 + }, + new + { + Id = 2004, + IdInclude = 1501 + }, + new + { + Id = 2004, + IdInclude = 1502 + }, + new + { + Id = 2005, + IdInclude = 1500 + }, + new + { + Id = 2005, + IdInclude = 1501 + }, + new + { + Id = 2005, + IdInclude = 1502 + }, + new + { + Id = 2006, + IdInclude = 1500 + }, + new + { + Id = 2006, + IdInclude = 1501 + }, + new + { + Id = 2006, + IdInclude = 1502 + }, + new + { + Id = 2007, + IdInclude = 1500 + }, + new + { + Id = 2007, + IdInclude = 1501 + }, + new + { + Id = 2007, + IdInclude = 1502 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserUserRole", b => + { + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user"); + + b.Property("IdUserRole") + .HasColumnType("integer") + .HasColumnName("id_user_role"); + + b.HasKey("IdUser", "IdUserRole"); + + b.HasIndex("IdUserRole"); + + b.ToTable("t_relation_user_user_role"); + + b.HasComment("Отношение пользователей и ролей"); + + b.HasData( + new + { + IdUser = 1, + IdUserRole = 1 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.ReportProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Begin") + .HasColumnType("timestamp with time zone") + .HasColumnName("begin"); + + b.Property("End") + .HasColumnType("timestamp with time zone") + .HasColumnName("end") + .HasComment("timestamp with time zone"); + + b.Property("Format") + .HasColumnType("integer") + .HasColumnName("format") + .HasComment("Формат отчета"); + + b.Property("IdFile") + .HasColumnType("integer") + .HasColumnName("id_file") + .HasComment("id файла-родителя"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("Step") + .HasColumnType("integer") + .HasColumnName("step") + .HasComment("размер шага в секундах"); + + b.HasKey("Id"); + + b.HasIndex("IdFile"); + + b.HasIndex("IdWell"); + + b.ToTable("t_report_property"); + + b.HasComment("Отчеты с данными по буровым"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.SetpointsRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Comment") + .HasColumnType("text") + .HasColumnName("comment") + .HasComment("комментарий для оператора"); + + b.Property("IdAuthor") + .HasColumnType("integer") + .HasColumnName("id_author") + .HasComment("Id пользователя, загрузившего файл"); + + b.Property("IdState") + .HasColumnType("integer") + .HasColumnName("id_state") + .HasComment("0: неизвестно, 1:ожидает отправки, 2: отправлено, 3: принято оператором, 4: отклонено оператором, 5: устарело"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("ObsolescenceSec") + .HasColumnType("integer") + .HasColumnName("obsolescence") + .HasComment("сек. до устаревания"); + + b.Property>("Setpoints") + .HasColumnType("jsonb") + .HasColumnName("setpoint_set") + .HasComment("Набор уставок"); + + b.Property("UploadDate") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.HasKey("Id"); + + b.HasIndex("IdAuthor"); + + b.HasIndex("IdWell"); + + b.ToTable("t_setpoints_rquest"); + + b.HasComment("Запросы на изменение уставок панели оператора"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Telemetry", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Info") + .HasColumnType("jsonb") + .HasColumnName("info") + .HasComment("Информация с панели о скважине"); + + b.Property("RemoteUid") + .HasColumnType("text") + .HasColumnName("remote_uid") + .HasComment("Идентификатор передающего устройства. Может повторяться в списке, так как комплекты оборудования переезжают от скв. к скв."); + + b.Property("TimeZone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.HasIndex(new[] { "RemoteUid" }, "t_telemetry_remote_uid_index"); + + b.ToTable("t_telemetry"); + + b.HasComment("таблица привязки телеметрии от комплектов к конкретной скважине."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryAnalysis", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("DurationSec") + .HasColumnType("integer") + .HasColumnName("duration_sec") + .HasComment("Кол-во секунд после предыдущей операции"); + + b.Property("IdOperation") + .HasColumnType("integer") + .HasColumnName("id_operation"); + + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IsBitPositionDecreasing") + .HasColumnType("boolean") + .HasColumnName("is_bit_position_decreasing") + .HasComment("Долото поднимается"); + + b.Property("IsBitPositionIncreasing") + .HasColumnType("boolean") + .HasColumnName("is_bit_position_increasing") + .HasComment("Долото спускается"); + + b.Property("IsBitPositionLt20") + .HasColumnType("boolean") + .HasColumnName("is_bit_posision_lt_20") + .HasComment("Положение долота меньше 20м"); + + b.Property("IsBlockPositionDecreasing") + .HasColumnType("boolean") + .HasColumnName("is_block_posision_decresing") + .HasComment("Талевый блок поднимается"); + + b.Property("IsBlockPositionIncreasing") + .HasColumnType("boolean") + .HasColumnName("is_block_posision_incresing") + .HasComment("Талевый блок спускается"); + + b.Property("IsHookWeightLt3") + .HasColumnType("boolean") + .HasColumnName("is_hook_weight_lt_3") + .HasComment("Вес на крюке менее 3т"); + + b.Property("IsHookWeightNotChanges") + .HasColumnType("boolean") + .HasColumnName("is_hook_weight_not_changes") + .HasComment("Вес на крюке не меняется"); + + b.Property("IsPressureGt20") + .HasColumnType("boolean") + .HasColumnName("is_pressure_gt_20") + .HasComment("Давление более 20"); + + b.Property("IsPressureLt20") + .HasColumnType("boolean") + .HasColumnName("is_pressure_lt_20") + .HasComment("Давление менее 20"); + + b.Property("IsRotorSpeedGt5") + .HasColumnType("boolean") + .HasColumnName("is_rotor_speed_gt_3") + .HasComment("Обороты ротора выше 3"); + + b.Property("IsRotorSpeedLt5") + .HasColumnType("boolean") + .HasColumnName("is_rotor_speed_lt_3") + .HasComment("Обороты ротора ниже 3"); + + b.Property("IsWellDepthDecreasing") + .HasColumnType("boolean") + .HasColumnName("is_well_depth_decreasing") + .HasComment("Глубина забоя не увеличивается"); + + b.Property("IsWellDepthIncreasing") + .HasColumnType("boolean") + .HasColumnName("is_well_depth_increasing") + .HasComment("Глубина забоя увеличивается"); + + b.Property("OperationEndDepth") + .HasColumnType("double precision") + .HasColumnName("operation_end_depth") + .HasComment("Глубина, на которой закончилась операция"); + + b.Property("OperationStartDepth") + .HasColumnType("double precision") + .HasColumnName("operation_start_depth") + .HasComment("Глубина, на которой началась операция"); + + b.Property("UnixDate") + .HasColumnType("bigint") + .HasColumnName("unix_date") + .HasComment("Unix timestamp для Linq запросов с вычислением дат"); + + b.HasKey("Id"); + + b.HasIndex("IdOperation"); + + b.HasIndex("IdTelemetry"); + + b.ToTable("t_telemetry_analysis"); + + b.HasComment("События на скважине"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSaub", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date") + .HasComment("'2021-10-19 18:23:54+05'"); + + b.Property("AxialLoad") + .HasColumnType("real") + .HasColumnName("axial_load") + .HasComment("Осевая нагрузка"); + + b.Property("AxialLoadLimitMax") + .HasColumnType("real") + .HasColumnName("axial_load_limit_max") + .HasComment("Осевая нагрузка. Аварийная макс."); + + b.Property("AxialLoadSp") + .HasColumnType("real") + .HasColumnName("axial_load_sp") + .HasComment("Осевая нагрузка. Задание"); + + b.Property("BitDepth") + .HasColumnType("real") + .HasColumnName("bit_depth") + .HasComment("Положение инструмента"); + + b.Property("BlockPosition") + .HasColumnType("real") + .HasColumnName("block_position") + .HasComment("Высота талевого блока"); + + b.Property("BlockPositionMax") + .HasColumnType("real") + .HasColumnName("block_position_max") + .HasComment("Талевый блок. Макс положение"); + + b.Property("BlockPositionMin") + .HasColumnType("real") + .HasColumnName("block_position_min") + .HasComment("Талевый блок. Мин положение"); + + b.Property("BlockSpeed") + .HasColumnType("real") + .HasColumnName("block_speed") + .HasComment("Скорость талевого блока"); + + b.Property("BlockSpeedSp") + .HasColumnType("real") + .HasColumnName("block_speed_sp") + .HasComment("Скорости талевого блока. Задание"); + + b.Property("BlockSpeedSpDevelop") + .HasColumnType("real") + .HasColumnName("block_speed_sp_develop") + .HasComment("Талевый блок. Задание скорости для проработки"); + + b.Property("BlockSpeedSpRotor") + .HasColumnType("real") + .HasColumnName("block_speed_sp_rotor") + .HasComment("Талевый блок. Задание скорости для роторного бурения"); + + b.Property("BlockSpeedSpSlide") + .HasColumnType("real") + .HasColumnName("block_speed_sp_slide") + .HasComment("Талевый блок. Задание скорости для режима слайда"); + + b.Property("Flow") + .HasColumnType("real") + .HasColumnName("flow") + .HasComment("Расход"); + + b.Property("FlowDeltaLimitMax") + .HasColumnType("real") + .HasColumnName("flow_delta_limit_max") + .HasComment("Расход. Аварийный макс."); + + b.Property("FlowIdle") + .HasColumnType("real") + .HasColumnName("flow_idle") + .HasComment("Расход. Холостой ход"); + + b.Property("HookWeight") + .HasColumnType("real") + .HasColumnName("hook_weight") + .HasComment("Вес на крюке"); + + b.Property("HookWeightIdle") + .HasColumnType("real") + .HasColumnName("hook_weight_idle") + .HasComment("Вес на крюке. Холостой ход"); + + b.Property("HookWeightLimitMax") + .HasColumnType("real") + .HasColumnName("hook_weight_limit_max") + .HasComment("Вес на крюке. Затяжка"); + + b.Property("HookWeightLimitMin") + .HasColumnType("real") + .HasColumnName("hook_weight_limit_min") + .HasComment("Вес на крюке. Посадка"); + + b.Property("IdFeedRegulator") + .HasColumnType("smallint") + .HasColumnName("id_feed_regulator") + .HasComment("Текущий критерий бурения"); + + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user") + .HasComment("Пользователь САУБ"); + + b.Property("Mode") + .HasColumnType("smallint") + .HasColumnName("mode") + .HasComment("Режим САУБ"); + + b.Property("Mse") + .HasColumnType("real") + .HasColumnName("mse") + .HasComment("MSE"); + + b.Property("MseState") + .HasColumnType("smallint") + .HasColumnName("mse_state") + .HasComment("Текущее состояние работы MSE"); + + b.Property("Pressure") + .HasColumnType("real") + .HasColumnName("pressure") + .HasComment("Давление"); + + b.Property("PressureDeltaLimitMax") + .HasColumnType("real") + .HasColumnName("pressure_delta_limit_max") + .HasComment("Давление дифф. Аварийное макс."); + + b.Property("PressureIdle") + .HasColumnType("real") + .HasColumnName("pressure_idle") + .HasComment("Давление. Холостой ход"); + + b.Property("PressureSp") + .HasColumnType("real") + .HasColumnName("pressure_sp") + .HasComment("Давление. Задание"); + + b.Property("PressureSpDevelop") + .HasColumnType("real") + .HasColumnName("pressure_sp_develop") + .HasComment("Давление. Задание для проработки"); + + b.Property("PressureSpRotor") + .HasColumnType("real") + .HasColumnName("pressure_sp_rotor") + .HasComment("Давление. Задание для роторного бурения"); + + b.Property("PressureSpSlide") + .HasColumnType("real") + .HasColumnName("pressure_sp_slide") + .HasComment("Давление. Задание для режима слайда"); + + b.Property("RotorSpeed") + .HasColumnType("real") + .HasColumnName("rotor_speed") + .HasComment("Обороты ротора"); + + b.Property("RotorTorque") + .HasColumnType("real") + .HasColumnName("rotor_torque") + .HasComment("Момент на роторе"); + + b.Property("RotorTorqueIdle") + .HasColumnType("real") + .HasColumnName("rotor_torque_idle") + .HasComment("Момент на роторе. Холостой ход"); + + b.Property("RotorTorqueLimitMax") + .HasColumnType("real") + .HasColumnName("rotor_torque_limit_max") + .HasComment("Момент на роторе. Аварийный макс."); + + b.Property("RotorTorqueSp") + .HasColumnType("real") + .HasColumnName("rotor_torque_sp") + .HasComment("Момент на роторе. Задание"); + + b.Property("WellDepth") + .HasColumnType("real") + .HasColumnName("well_depth") + .HasComment("Глубина забоя"); + + b.HasKey("IdTelemetry", "DateTime"); + + b.ToTable("t_telemetry_data_saub"); + + b.HasComment("набор основных данных по SAUB"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSpin", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date") + .HasComment("'2021-10-19 18:23:54+05'"); + + b.Property("BreakAngleK") + .HasColumnType("real") + .HasColumnName("break_angle_k") + .HasComment("Коэффициент для расчёта за какой угол нужно тормозить"); + + b.Property("BreakAngleLeft") + .HasColumnType("real") + .HasColumnName("break_angle_left") + .HasComment("Угол торможения влево при работе по моменту"); + + b.Property("EncoderResolution") + .HasColumnType("real") + .HasColumnName("encoder_resolution") + .HasComment("Разрешение энкодера"); + + b.Property("Mode") + .HasColumnType("smallint") + .HasColumnName("mode") + .HasComment("Выбранный режим управления"); + + b.Property("PidMuxTorqueLeftLimit") + .HasColumnType("real") + .HasColumnName("pid_mux_torque_left_limit") + .HasComment(" Момент при котором определяется ехать назад по моменту или по скорости"); + + b.Property("PositionRight") + .HasColumnType("real") + .HasColumnName("position_right") + .HasComment("Крайний правый угол осцилляции"); + + b.Property("PositionZero") + .HasColumnType("real") + .HasColumnName("position_zero") + .HasComment("Нулевая позиция осцилляции"); + + b.Property("Ratio") + .HasColumnType("real") + .HasColumnName("ratio") + .HasComment(" Коэффициент редукции редуктора"); + + b.Property("ReverseKTorque") + .HasColumnType("real") + .HasColumnName("reverse_k_torque") + .HasComment("Коэффициент на который умножается момент, для того чтобы система поняла что мы движемся в обратную сторону"); + + b.Property("ReverseSpeedSpZeroTime") + .HasColumnType("smallint") + .HasColumnName("reverse_speed_sp_zero_time") + .HasComment("Время выдачи сигнала нулевой скорости на при смене направления"); + + b.Property("RevolsLeftLimit") + .HasColumnType("real") + .HasColumnName("revols_left_limit") + .HasComment("Ограничение числа оборотов влево"); + + b.Property("RevolsLeftTotal") + .HasColumnType("real") + .HasColumnName("revols_left_total") + .HasComment("Суммарное количество оборотов влево"); + + b.Property("RevolsRightLimit") + .HasColumnType("real") + .HasColumnName("revols_right_limit") + .HasComment("Ограничение числа оборотов вправо"); + + b.Property("RevolsRightTotal") + .HasColumnType("real") + .HasColumnName("revols_right_total") + .HasComment("Суммарное количество оборотов вправо"); + + b.Property("RotorTorqueAvg") + .HasColumnType("real") + .HasColumnName("rotor_torque_avg") + .HasComment("Момент в роторе средний"); + + b.Property("SpeedLeftSp") + .HasColumnType("real") + .HasColumnName("speed_left_sp") + .HasComment("Заданная скорость вращения влево"); + + b.Property("SpeedRightSp") + .HasColumnType("real") + .HasColumnName("speed_right_sp") + .HasComment("Заданная скорость вращения вправо"); + + b.Property("State") + .HasColumnType("smallint") + .HasColumnName("state") + .HasComment("Переменная этапа"); + + b.Property("TopDriveSpeed") + .HasColumnType("real") + .HasColumnName("top_drive_speed") + .HasComment("Скорость СВП"); + + b.Property("TopDriveSpeedErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_speed_err"); + + b.Property("TopDriveSpeedMax") + .HasColumnType("real") + .HasColumnName("top_drive_speed_max") + .HasComment("верхний предел"); + + b.Property("TopDriveSpeedMin") + .HasColumnType("real") + .HasColumnName("top_drive_speed_min") + .HasComment("нижний предел"); + + b.Property("TopDriveSpeedOffset") + .HasColumnType("real") + .HasColumnName("top_drive_speed_offset") + .HasComment("смещение"); + + b.Property("TopDriveSpeedSpFrom") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from") + .HasComment("Заданная скорость c СВП"); + + b.Property("TopDriveSpeedSpFromErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_speed_sp_from_err"); + + b.Property("TopDriveSpeedSpFromMax") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from_max"); + + b.Property("TopDriveSpeedSpFromMin") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from_min"); + + b.Property("TopDriveSpeedSpFromOffset") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from_offset"); + + b.Property("TopDriveSpeedSpTo") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to") + .HasComment("Задание скорости на СВП"); + + b.Property("TopDriveSpeedSpToErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_speed_sp_to_err"); + + b.Property("TopDriveSpeedSpToMax") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to_max"); + + b.Property("TopDriveSpeedSpToMin") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to_min"); + + b.Property("TopDriveSpeedSpToOffset") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to_offset"); + + b.Property("TopDriveTorque") + .HasColumnType("real") + .HasColumnName("top_drive_torque") + .HasComment("Момент СВП"); + + b.Property("TopDriveTorqueErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_torque_err"); + + b.Property("TopDriveTorqueMax") + .HasColumnType("real") + .HasColumnName("top_drive_torque_max"); + + b.Property("TopDriveTorqueMin") + .HasColumnType("real") + .HasColumnName("top_drive_torque_min"); + + b.Property("TopDriveTorqueOffset") + .HasColumnType("real") + .HasColumnName("top_drive_torque_offset"); + + b.Property("TopDriveTorqueSpFrom") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from") + .HasComment("Заданный момент c СВП"); + + b.Property("TopDriveTorqueSpFromErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_torque_sp_from_err"); + + b.Property("TopDriveTorqueSpFromMax") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from_max"); + + b.Property("TopDriveTorqueSpFromMin") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from_min"); + + b.Property("TopDriveTorqueSpFromOffset") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from_offset"); + + b.Property("TopDriveTorqueSpTo") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to") + .HasComment("Задание момента на СВП"); + + b.Property("TopDriveTorqueSpToErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_torque_sp_to_err"); + + b.Property("TopDriveTorqueSpToMax") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to_max"); + + b.Property("TopDriveTorqueSpToMin") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to_min"); + + b.Property("TopDriveTorqueSpToOffset") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to_offset"); + + b.Property("TorqueLeftLimit") + .HasColumnType("real") + .HasColumnName("torque_left_limit") + .HasComment("Ограничение крутящего момента влево"); + + b.Property("TorqueRampTime") + .HasColumnType("real") + .HasColumnName("torque_ramp_time") + .HasComment("Время нарастания момента"); + + b.Property("TorqueRightLimit") + .HasColumnType("real") + .HasColumnName("torque_right_limit") + .HasComment("Ограничение крутящего момента вправо"); + + b.Property("TorqueStarting") + .HasColumnType("real") + .HasColumnName("torque_starting") + .HasComment("Страгивающий момент"); + + b.Property("TurnLeftOnceByAngle") + .HasColumnType("real") + .HasColumnName("turn_left_once_by_angle") + .HasComment("Доворот по градусам единожды влево"); + + b.Property("TurnLeftOnceByRevols") + .HasColumnType("real") + .HasColumnName("turn_left_once_by_revols") + .HasComment("Доворот по оборотам единожды влево"); + + b.Property("TurnLeftOnceByTorque") + .HasColumnType("real") + .HasColumnName("turn_left_once_by_torque") + .HasComment("Доворот по моменту единожды влево"); + + b.Property("TurnRightOnceByAngle") + .HasColumnType("real") + .HasColumnName("turn_right_once_by_angle") + .HasComment("Доворот по градусам единожды вправо"); + + b.Property("TurnRightOnceByRevols") + .HasColumnType("real") + .HasColumnName("turn_right_once_by_revols") + .HasComment("Доворот по оборотам единожды вправо"); + + b.Property("TurnRightOnceByTorque") + .HasColumnType("real") + .HasColumnName("turn_right_once_by_torque") + .HasComment("Доворот по моменту единожды вправо"); + + b.Property("UnlockBySectorOut") + .HasColumnType("real") + .HasColumnName("unlock_by_sector_out") + .HasComment(" Градус отклонения от сектора для автоматического сброса блокировки"); + + b.Property("Ver") + .HasColumnType("real") + .HasColumnName("ver") + .HasComment("Версия ПО ПЛК"); + + b.Property("W2800") + .HasColumnType("smallint") + .HasColumnName("w2800") + .HasComment("Установка нуля энкодера"); + + b.Property("W2808") + .HasColumnType("smallint") + .HasColumnName("w2808") + .HasComment("Неисправность энкодера"); + + b.Property("W2810") + .HasColumnType("smallint") + .HasColumnName("w2810") + .HasComment(" автоматический сброс блокировки"); + + b.HasKey("IdTelemetry", "DateTime"); + + b.ToTable("t_telemetry_data_spin"); + + b.HasComment("набор основных данных по SpinMaster"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryEvent", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdEvent") + .HasColumnType("integer") + .HasColumnName("id_event"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category"); + + b.Property("MessageTemplate") + .HasColumnType("text") + .HasColumnName("message_template"); + + b.HasKey("IdTelemetry", "IdEvent"); + + b.ToTable("t_telemetry_event"); + + b.HasComment("Справочник событий. События формируют сообщения. Разделено по версиям посылок от телеметрии."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryMessage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Arg0") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg0") + .HasComment("Аргумент №0 для вставки в шаблон сообщения"); + + b.Property("Arg1") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg1"); + + b.Property("Arg2") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg2"); + + b.Property("Arg3") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg3"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.Property("IdEvent") + .HasColumnType("integer") + .HasColumnName("id_event"); + + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdTelemetryUser") + .HasColumnType("integer") + .HasColumnName("id_telemetry_user") + .HasComment("Пользователь панели отправляющей телеметрию. не пользователь облака."); + + b.Property("WellDepth") + .HasColumnType("double precision") + .HasColumnName("well_depth"); + + b.HasKey("Id"); + + b.HasIndex("IdTelemetry"); + + b.ToTable("t_telemetry_message"); + + b.HasComment("Сообщения на буровых"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryUser", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user"); + + b.Property("Level") + .HasColumnType("integer") + .HasColumnName("level"); + + b.Property("Name") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("name"); + + b.Property("Patronymic") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("patronymic"); + + b.Property("Surname") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("surname"); + + b.HasKey("IdTelemetry", "IdUser"); + + b.ToTable("t_telemetry_user"); + + b.HasComment("Пользователи панели САУБ. Для сообщений."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Email") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("email") + .HasComment("должность"); + + b.Property("IdCompany") + .HasColumnType("integer") + .HasColumnName("id_company"); + + b.Property("IdState") + .HasColumnType("smallint") + .HasColumnName("state") + .HasComment("состояние:\n100 - удален"); + + b.Property("Login") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("login"); + + b.Property("Name") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("name") + .HasComment("имя"); + + b.Property("PasswordHash") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("password_hash") + .HasComment("соленый хэш пароля.\nпервые 5 символов - соль"); + + b.Property("Patronymic") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("patronymic") + .HasComment("отчество"); + + b.Property("Phone") + .HasMaxLength(50) + .HasColumnType("character varying(50)") + .HasColumnName("phone") + .HasComment("номер телефона"); + + b.Property("Position") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("position") + .HasComment("email"); + + b.Property("Surname") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("surname") + .HasComment("фамилия"); + + b.HasKey("Id"); + + b.HasIndex("IdCompany"); + + b.HasIndex("Login") + .IsUnique(); + + b.ToTable("t_user"); + + b.HasComment("Пользователи облака"); + + b.HasData( + new + { + Id = 1, + IdCompany = 1, + Login = "dev", + Name = "Разработчик", + PasswordHash = "Vlcj|4fa529103dde7ff72cfe76185f344d4aa87931f8e1b2044e8a7739947c3d18923464eaad93843e4f809c5e126d013072" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.UserRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.Property("IdType") + .HasColumnType("integer") + .HasColumnName("id_type") + .HasComment("0-роль из стандартной матрицы, \n1-специальная роль для какого-либо пользователя"); + + b.HasKey("Id"); + + b.ToTable("t_user_role"); + + b.HasComment("Роли пользователей в системе"); + + b.HasData( + new + { + Id = 1, + Caption = "root", + IdType = 1 + }, + new + { + Id = 1100, + Caption = "admin_cluster.view", + IdType = 1 + }, + new + { + Id = 1101, + Caption = "admin_cluster.edit", + IdType = 1 + }, + new + { + Id = 1102, + Caption = "admin_company.view", + IdType = 1 + }, + new + { + Id = 1103, + Caption = "admin_company.edit", + IdType = 1 + }, + new + { + Id = 1104, + Caption = "admin_company_type.view", + IdType = 1 + }, + new + { + Id = 1105, + Caption = "admin_company_type.edit", + IdType = 1 + }, + new + { + Id = 1106, + Caption = "admin_deposit.view", + IdType = 1 + }, + new + { + Id = 1107, + Caption = "admin_deposit.edit", + IdType = 1 + }, + new + { + Id = 1108, + Caption = "admin_permission.view", + IdType = 1 + }, + new + { + Id = 1109, + Caption = "admin_permission.edit", + IdType = 1 + }, + new + { + Id = 1110, + Caption = "admin_role.view", + IdType = 1 + }, + new + { + Id = 1111, + Caption = "admin_role.edit", + IdType = 1 + }, + new + { + Id = 1112, + Caption = "admin_telemetry.view", + IdType = 1 + }, + new + { + Id = 1113, + Caption = "admin_user.view", + IdType = 1 + }, + new + { + Id = 1114, + Caption = "admin_user.edit", + IdType = 1 + }, + new + { + Id = 1115, + Caption = "admin_visit_log.view", + IdType = 1 + }, + new + { + Id = 1116, + Caption = "admin_well.view", + IdType = 1 + }, + new + { + Id = 1117, + Caption = "admin_well.edit", + IdType = 1 + }, + new + { + Id = 1200, + Caption = "archive.view", + IdType = 1 + }, + new + { + Id = 1201, + Caption = "cluster.view", + IdType = 1 + }, + new + { + Id = 1202, + Caption = "composite.view", + IdType = 1 + }, + new + { + Id = 1203, + Caption = "composite.edit", + IdType = 1 + }, + new + { + Id = 1204, + Caption = "deposit.view", + IdType = 1 + }, + new + { + Id = 1205, + Caption = "document.view", + IdType = 1 + }, + new + { + Id = 1206, + Caption = "drillProcessFlow.view", + IdType = 1 + }, + new + { + Id = 1207, + Caption = "drillProcessFlow.edit", + IdType = 1 + }, + new + { + Id = 1208, + Caption = "measure.view", + IdType = 1 + }, + new + { + Id = 1209, + Caption = "measure.edit", + IdType = 1 + }, + new + { + Id = 1210, + Caption = "message.view", + IdType = 1 + }, + new + { + Id = 1211, + Caption = "operations.view", + IdType = 1 + }, + new + { + Id = 1212, + Caption = "operations.edit", + IdType = 1 + }, + new + { + Id = 1213, + Caption = "params.view", + IdType = 1 + }, + new + { + Id = 1214, + Caption = "params.edit", + IdType = 1 + }, + new + { + Id = 1215, + Caption = "report.view", + IdType = 1 + }, + new + { + Id = 1216, + Caption = "report.edit", + IdType = 1 + }, + new + { + Id = 1217, + Caption = "setpoints.view", + IdType = 1 + }, + new + { + Id = 1218, + Caption = "setpoints.edit", + IdType = 1 + }, + new + { + Id = 1219, + Caption = "telemetry.view", + IdType = 1 + }, + new + { + Id = 1220, + Caption = "telemetryAnalysis.view", + IdType = 1 + }, + new + { + Id = 1221, + Caption = "well.view", + IdType = 1 + }, + new + { + Id = 1500, + Caption = "Просмотр всего", + IdType = 1 + }, + new + { + Id = 1501, + Caption = "file.edit", + IdType = 1 + }, + new + { + Id = 1502, + Caption = "drillingProgram.edit", + IdType = 1 + }, + new + { + Id = 2000, + Caption = "Заказчик", + IdType = 0 + }, + new + { + Id = 2001, + Caption = "Супервайзер", + IdType = 0 + }, + new + { + Id = 2002, + Caption = "Буровой подрядчик", + IdType = 0 + }, + new + { + Id = 2003, + Caption = "Растворщик", + IdType = 0 + }, + new + { + Id = 2004, + Caption = "Телеметрист", + IdType = 0 + }, + new + { + Id = 2005, + Caption = "Долотный сервис", + IdType = 0 + }, + new + { + Id = 2006, + Caption = "ГТИ", + IdType = 0 + }, + new + { + Id = 2007, + Caption = "Цементирование", + IdType = 0 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Well", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.Property("IdCluster") + .HasColumnType("integer") + .HasColumnName("id_cluster"); + + b.Property("IdState") + .HasColumnType("integer") + .HasColumnName("state") + .HasComment("0 - неизвестно, 1 - в работе, 2 - завершена"); + + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdWellType") + .HasColumnType("integer") + .HasColumnName("id_well_type"); + + b.Property("Latitude") + .HasColumnType("double precision") + .HasColumnName("latitude"); + + b.Property("Longitude") + .HasColumnType("double precision") + .HasColumnName("longitude"); + + b.Property("Timezone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.HasIndex("IdCluster"); + + b.HasIndex("IdTelemetry") + .IsUnique(); + + b.HasIndex("IdWellType"); + + b.ToTable("t_well"); + + b.HasComment("скважины"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellComposite", b => + { + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("Id скважины получателя"); + + b.Property("IdWellSrc") + .HasColumnType("integer") + .HasColumnName("id_well_src") + .HasComment("Id скважины композита"); + + b.Property("IdWellSectionType") + .HasColumnType("integer") + .HasColumnName("id_well_section_type") + .HasComment("Id тип секции композита"); + + b.HasKey("IdWell", "IdWellSrc", "IdWellSectionType"); + + b.HasIndex("IdWellSectionType"); + + b.HasIndex("IdWellSrc"); + + b.ToTable("t_well_composite"); + + b.HasComment("Композитная скважина"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CategoryInfo") + .HasColumnType("text") + .HasColumnName("category_info") + .HasComment("Доп. информация к выбраной категории"); + + b.Property("Comment") + .HasColumnType("text") + .HasColumnName("comment") + .HasComment("Комментарий"); + + b.Property("DateStart") + .HasColumnType("timestamp with time zone") + .HasColumnName("date_start") + .HasComment("Дата начала операции"); + + b.Property("DepthEnd") + .HasColumnType("double precision") + .HasColumnName("depth_end") + .HasComment("Глубина после завершения операции, м"); + + b.Property("DepthStart") + .HasColumnType("double precision") + .HasColumnName("depth_start") + .HasComment("Глубина на начало операции, м"); + + b.Property("DurationHours") + .HasColumnType("double precision") + .HasColumnName("duration_hours") + .HasComment("Продолжительность, часы"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category") + .HasComment("Id категории операции"); + + b.Property("IdType") + .HasColumnType("integer") + .HasColumnName("id_type") + .HasComment("0 = План или 1 = Факт"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("Id скважины"); + + b.Property("IdWellSectionType") + .HasColumnType("integer") + .HasColumnName("id_well_section_type") + .HasComment("Id тип секции скважины"); + + b.HasKey("Id"); + + b.HasIndex("DateStart"); + + b.HasIndex("DepthEnd"); + + b.HasIndex("IdCategory"); + + b.HasIndex("IdWell"); + + b.HasIndex("IdWellSectionType"); + + b.ToTable("t_well_operation"); + + b.HasComment("Данные по операциям на скважине"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperationCategory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Code") + .HasColumnType("integer") + .HasColumnName("code") + .HasComment("Код операции"); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название категории операции"); + + b.HasKey("Id"); + + b.ToTable("t_well_operation_category"); + + b.HasComment("Справочник операций на скважине"); + + b.HasData( + new + { + Id = 1, + Code = 0, + Name = "Невозможно определить операцию" + }, + new + { + Id = 2, + Code = 0, + Name = "Роторное бурение" + }, + new + { + Id = 3, + Code = 0, + Name = "Слайдирование" + }, + new + { + Id = 4, + Code = 0, + Name = "Подъем с проработкой" + }, + new + { + Id = 5, + Code = 0, + Name = "Спуск с проработкой" + }, + new + { + Id = 6, + Code = 0, + Name = "Подъем с промывкой" + }, + new + { + Id = 7, + Code = 0, + Name = "Спуск с промывкой" + }, + new + { + Id = 8, + Code = 0, + Name = "Спуск в скважину" + }, + new + { + Id = 9, + Code = 0, + Name = "Спуск с вращением" + }, + new + { + Id = 10, + Code = 0, + Name = "Подъем из скважины" + }, + new + { + Id = 11, + Code = 0, + Name = "Подъем с вращением" + }, + new + { + Id = 12, + Code = 0, + Name = "Промывка в покое" + }, + new + { + Id = 13, + Code = 0, + Name = "Промывка с вращением" + }, + new + { + Id = 14, + Code = 0, + Name = "Удержание в клиньях" + }, + new + { + Id = 15, + Code = 0, + Name = "Неподвижное состояние" + }, + new + { + Id = 16, + Code = 0, + Name = "Вращение без циркуляции" + }, + new + { + Id = 17, + Code = 0, + Name = "На поверхности" + }, + new + { + Id = 1001, + Code = 0, + Name = "Бурение" + }, + new + { + Id = 1002, + Code = 0, + Name = "ГИС" + }, + new + { + Id = 1003, + Code = 0, + Name = "ГФР" + }, + new + { + Id = 1004, + Code = 0, + Name = "Монтаж ПВО" + }, + new + { + Id = 1005, + Code = 0, + Name = "Демонтаж ПВО" + }, + new + { + Id = 1006, + Code = 0, + Name = "Установка ФА" + }, + new + { + Id = 1007, + Code = 0, + Name = "Оборудование устья" + }, + new + { + Id = 1008, + Code = 0, + Name = "ОЗЦ" + }, + new + { + Id = 1011, + Code = 0, + Name = "Начало цикла строительства скважины" + }, + new + { + Id = 1012, + Code = 0, + Name = "Окончание цикла строительства скважины" + }, + new + { + Id = 1013, + Code = 0, + Name = "Опрессовка ПВО" + }, + new + { + Id = 1014, + Code = 0, + Name = "Опрессовка Ц.К." + }, + new + { + Id = 1015, + Code = 0, + Name = "Опрессовка ВЗД" + }, + new + { + Id = 1016, + Code = 0, + Name = "Перевод скв на другой тип промывочной жидкости" + }, + new + { + Id = 1017, + Code = 0, + Name = "Перезапись каротажа" + }, + new + { + Id = 1018, + Code = 0, + Name = "Перетяжка талевого каната" + }, + new + { + Id = 1019, + Code = 0, + Name = "Наращивание, промывка" + }, + new + { + Id = 1020, + Code = 0, + Name = "Подъем инструмента" + }, + new + { + Id = 1021, + Code = 0, + Name = "Подъем инструмента с промывкой" + }, + new + { + Id = 1022, + Code = 0, + Name = "Обратная проработка" + }, + new + { + Id = 1023, + Code = 0, + Name = "Сборка инструмента с мостков" + }, + new + { + Id = 1024, + Code = 0, + Name = "Подготовительные работы" + }, + new + { + Id = 1025, + Code = 0, + Name = "Сборка КНБК" + }, + new + { + Id = 1026, + Code = 0, + Name = "Разборка КНБК" + }, + new + { + Id = 1027, + Code = 0, + Name = "Промывка" + }, + new + { + Id = 1028, + Code = 0, + Name = "Промежуточная промывка" + }, + new + { + Id = 1029, + Code = 0, + Name = "Прокачка пачек" + }, + new + { + Id = 1030, + Code = 0, + Name = "Разбуривание тех.оснастки" + }, + new + { + Id = 1031, + Code = 0, + Name = "Ремонт" + }, + new + { + Id = 1032, + Code = 0, + Name = "Спуск инструмента" + }, + new + { + Id = 1033, + Code = 0, + Name = "Спуск инструмента с промывкой" + }, + new + { + Id = 1034, + Code = 0, + Name = "Прямая проработка" + }, + new + { + Id = 1035, + Code = 0, + Name = "Принудительная проработка" + }, + new + { + Id = 1037, + Code = 0, + Name = "Тех СПО-подъем" + }, + new + { + Id = 1038, + Code = 0, + Name = "Тех СПО-спуск" + }, + new + { + Id = 1039, + Code = 0, + Name = "Техническое обслуживание" + }, + new + { + Id = 1040, + Code = 0, + Name = "Цементаж" + }, + new + { + Id = 1041, + Code = 0, + Name = "Шаблонировка ствола" + }, + new + { + Id = 1042, + Code = 0, + Name = "Геологическое осложнение" + }, + new + { + Id = 1043, + Code = 0, + Name = "НПВ" + }, + new + { + Id = 1044, + Code = 0, + Name = "ВМР" + }, + new + { + Id = 1045, + Code = 0, + Name = "Прочее" + }, + new + { + Id = 1046, + Code = 0, + Name = "Спуск КНБК" + }, + new + { + Id = 1047, + Code = 0, + Name = "Подъем КНБК" + }, + new + { + Id = 1048, + Code = 0, + Name = "Спуск ОК" + }, + new + { + Id = 1050, + Code = 0, + Name = "Промывка при спуске ОК" + }, + new + { + Id = 1051, + Code = 0, + Name = "Замер ТС" + }, + new + { + Id = 1052, + Code = 0, + Name = "Тех. отстой" + }, + new + { + Id = 1053, + Code = 0, + Name = "Циркуляция и Обработка БР" + }, + new + { + Id = 1054, + Code = 0, + Name = "Срезка ствола" + }, + new + { + Id = 1055, + Code = 0, + Name = "Вспомогательные работы" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellSectionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.HasKey("Id"); + + b.ToTable("t_well_section_type"); + + b.HasComment("конструкция секции скважины"); + + b.HasData( + new + { + Id = 1, + Caption = "Пилотный ствол" + }, + new + { + Id = 2, + Caption = "Направление" + }, + new + { + Id = 3, + Caption = "Кондуктор" + }, + new + { + Id = 4, + Caption = "Эксплуатационная колонна" + }, + new + { + Id = 5, + Caption = "Транспортный ствол" + }, + new + { + Id = 6, + Caption = "Хвостовик" + }, + new + { + Id = 7, + Caption = "Пилотный ствол 2" + }, + new + { + Id = 8, + Caption = "Направление 2" + }, + new + { + Id = 9, + Caption = "Кондуктор 2" + }, + new + { + Id = 10, + Caption = "Эксплуатационная колонна 2" + }, + new + { + Id = 11, + Caption = "Транспортный ствол 2" + }, + new + { + Id = 12, + Caption = "Хвостовик 2" + }, + new + { + Id = 13, + Caption = "Пилотный ствол 3" + }, + new + { + Id = 14, + Caption = "Направление 3" + }, + new + { + Id = 15, + Caption = "Кондуктор 3" + }, + new + { + Id = 16, + Caption = "Эксплуатационная колонна 3" + }, + new + { + Id = 17, + Caption = "Транспортный ствол 3" + }, + new + { + Id = 18, + Caption = "Хвостовик 3" + }, + new + { + Id = 19, + Caption = "Пилотный ствол 4" + }, + new + { + Id = 20, + Caption = "Направление 4" + }, + new + { + Id = 21, + Caption = "Кондуктор 4" + }, + new + { + Id = 22, + Caption = "Эксплуатационная колонна 4" + }, + new + { + Id = 23, + Caption = "Транспортный ствол 4" + }, + new + { + Id = 24, + Caption = "Хвостовик 4" + }, + new + { + Id = 25, + Caption = "Пилотный ствол 5" + }, + new + { + Id = 26, + Caption = "Направление 5" + }, + new + { + Id = 27, + Caption = "Кондуктор 5" + }, + new + { + Id = 28, + Caption = "Эксплуатационная колонна 5" + }, + new + { + Id = 29, + Caption = "Транспортный ствол 5" + }, + new + { + Id = 30, + Caption = "Хвостовик 5" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.HasKey("Id"); + + b.ToTable("t_well_type"); + + b.HasComment("конструкция скважины"); + + b.HasData( + new + { + Id = 1, + Caption = "Наклонно-направленная" + }, + new + { + Id = 2, + Caption = "Горизонтальная" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.RecordBase", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.Property("Actcod") + .HasColumnType("smallint") + .HasColumnName("ACTCOD"); + + b.Property("Date") + .HasColumnType("integer") + .HasColumnName("DATE"); + + b.Property("Recid") + .HasColumnType("smallint") + .HasColumnName("RECID"); + + b.Property("Seqid") + .HasColumnType("integer") + .HasColumnName("SEQID"); + + b.Property("Stknum") + .HasColumnType("smallint") + .HasColumnName("STKNUM"); + + b.Property("Time") + .HasColumnType("integer") + .HasColumnName("TIME"); + + b.Property("Wellid") + .HasColumnType("text") + .HasColumnName("WELLID"); + + b.HasKey("IdTelemetry", "DateTime"); + + b.ToTable("RecordBase"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record1", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Blkpos") + .HasColumnType("real") + .HasColumnName("BLKPOS"); + + b.Property("Chkp") + .HasColumnType("real") + .HasColumnName("CHKP"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptbitv") + .HasColumnType("real") + .HasColumnName("DEPTBITV"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptretm") + .HasColumnType("real") + .HasColumnName("DEPTRETM"); + + b.Property("Deptvert") + .HasColumnType("real") + .HasColumnName("DEPTVERT"); + + b.Property("Gasa") + .HasColumnType("real") + .HasColumnName("GASA"); + + b.Property("Hkla") + .HasColumnType("real") + .HasColumnName("HKLA"); + + b.Property("Hklx") + .HasColumnType("real") + .HasColumnName("HKLX"); + + b.Property("Lagstks") + .HasColumnType("smallint") + .HasColumnName("LAGSTKS"); + + b.Property("Mcia") + .HasColumnType("real") + .HasColumnName("MCIA"); + + b.Property("Mcoa") + .HasColumnType("real") + .HasColumnName("MCOA"); + + b.Property("Mdia") + .HasColumnType("real") + .HasColumnName("MDIA"); + + b.Property("Mdoa") + .HasColumnType("real") + .HasColumnName("MDOA"); + + b.Property("Mfia") + .HasColumnType("real") + .HasColumnName("MFIA"); + + b.Property("Mfoa") + .HasColumnType("real") + .HasColumnName("MFOA"); + + b.Property("Mfop") + .HasColumnType("smallint") + .HasColumnName("MFOP"); + + b.Property("Mtia") + .HasColumnType("real") + .HasColumnName("MTIA"); + + b.Property("Mtoa") + .HasColumnType("real") + .HasColumnName("MTOA"); + + b.Property("Ropa") + .HasColumnType("real") + .HasColumnName("ROPA"); + + b.Property("Rpma") + .HasColumnType("smallint") + .HasColumnName("RPMA"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Spm1") + .HasColumnType("smallint") + .HasColumnName("SPM1"); + + b.Property("Spm2") + .HasColumnType("smallint") + .HasColumnName("SPM2"); + + b.Property("Spm3") + .HasColumnType("smallint") + .HasColumnName("SPM3"); + + b.Property("Sppa") + .HasColumnType("real") + .HasColumnName("SPPA"); + + b.Property("Stkc") + .HasColumnType("integer") + .HasColumnName("STKC"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.Property("Torqa") + .HasColumnType("real") + .HasColumnName("TORQA"); + + b.Property("Torqx") + .HasColumnType("real") + .HasColumnName("TORQX"); + + b.Property("Tvolact") + .HasColumnType("real") + .HasColumnName("TVOLACT"); + + b.Property("Tvolcact") + .HasColumnType("real") + .HasColumnName("TVOLCACT"); + + b.Property("Woba") + .HasColumnType("real") + .HasColumnName("WOBA"); + + b.Property("Wobx") + .HasColumnType("real") + .HasColumnName("WOBX"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_record_1"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record50", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("DeptmeasGdpMc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_GDP_mc"); + + b.Property("DeptmeasMcrstat") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_MCRSTAT"); + + b.Property("DeptmeasRa33Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33_mc"); + + b.Property("DeptmeasRa33f2Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33F2_mc"); + + b.Property("DeptmeasRa33f4Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33F4_mc"); + + b.Property("DeptmeasRp33Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33_mc"); + + b.Property("DeptmeasRp33f2Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33F2_mc"); + + b.Property("DeptmeasRp33f4Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33F4_mc"); + + b.Property("DeptmeasSlvlMc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_SLVL_mc"); + + b.Property("GdpMc") + .HasColumnType("real") + .HasColumnName("GDP_mc"); + + b.Property("Mcrstat") + .HasColumnType("real") + .HasColumnName("MCRSTAT"); + + b.Property("Ra33Mc") + .HasColumnType("real") + .HasColumnName("RA33_mc"); + + b.Property("Ra33f2Mc") + .HasColumnType("real") + .HasColumnName("RA33F2_mc"); + + b.Property("Ra33f4Mc") + .HasColumnType("real") + .HasColumnName("RA33F4_mc"); + + b.Property("Rp33Mc") + .HasColumnType("real") + .HasColumnName("RP33_mc"); + + b.Property("Rp33f2Mc") + .HasColumnType("real") + .HasColumnName("RP33F2_mc"); + + b.Property("Rp33f4Mc") + .HasColumnType("real") + .HasColumnName("RP33F4_mc"); + + b.Property("SlvlMc") + .HasColumnType("real") + .HasColumnName("SLVL_mc"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_record_50"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record60", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Btot") + .HasColumnType("real") + .HasColumnName("Btot"); + + b.Property("Bx") + .HasColumnType("real") + .HasColumnName("Bx"); + + b.Property("By") + .HasColumnType("real") + .HasColumnName("By"); + + b.Property("Bz") + .HasColumnType("real") + .HasColumnName("Bz"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Gtot") + .HasColumnType("real") + .HasColumnName("Gtot"); + + b.Property("Gx") + .HasColumnType("real") + .HasColumnName("Gx"); + + b.Property("Gy") + .HasColumnType("real") + .HasColumnName("Gy"); + + b.Property("Gz") + .HasColumnType("real") + .HasColumnName("Gz"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_record_60"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record61", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Att06h") + .HasColumnType("real") + .HasColumnName("ATT06H"); + + b.Property("Att06l") + .HasColumnType("real") + .HasColumnName("ATT06L"); + + b.Property("Att10h") + .HasColumnType("real") + .HasColumnName("ATT10H"); + + b.Property("Att10l") + .HasColumnType("real") + .HasColumnName("ATT10L"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Phl1f1") + .HasColumnType("real") + .HasColumnName("PHL1F1"); + + b.Property("Phl1f2") + .HasColumnType("real") + .HasColumnName("PHL1F2"); + + b.Property("Phl2f1") + .HasColumnType("real") + .HasColumnName("PHL2F1"); + + b.Property("Phl2f2") + .HasColumnType("real") + .HasColumnName("PHL2F2"); + + b.Property("Status") + .HasColumnType("real") + .HasColumnName("Status"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_record_61"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record7", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptsvym") + .HasColumnType("real") + .HasColumnName("DEPTSVYM"); + + b.Property("Deptsvyv") + .HasColumnType("real") + .HasColumnName("DEPTSVYV"); + + b.Property("Passnum") + .HasColumnType("smallint") + .HasColumnName("PASSNUM"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Svyazc") + .HasColumnType("real") + .HasColumnName("SVYAZC"); + + b.Property("Svyazu") + .HasColumnType("real") + .HasColumnName("SVYAZU"); + + b.Property("Svydls") + .HasColumnType("real") + .HasColumnName("SVYDLS"); + + b.Property("Svyew") + .HasColumnType("real") + .HasColumnName("SVYEW"); + + b.Property("Svygtf") + .HasColumnType("real") + .HasColumnName("SVYGTF"); + + b.Property("Svyinc") + .HasColumnType("real") + .HasColumnName("SVYINC"); + + b.Property("Svymtf") + .HasColumnType("real") + .HasColumnName("SVYMTF"); + + b.Property("Svyns") + .HasColumnType("real") + .HasColumnName("SVYNS"); + + b.Property("Svytype") + .HasColumnType("text") + .HasColumnName("SVYTYPE"); + + b.Property("Svywalk") + .HasColumnType("real") + .HasColumnName("SVYWALK"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_record_7"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record8", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptbitv") + .HasColumnType("real") + .HasColumnName("DEPTBITV"); + + b.Property("Deptcalm") + .HasColumnType("real") + .HasColumnName("DEPTCALM"); + + b.Property("Deptcalv") + .HasColumnType("real") + .HasColumnName("DEPTCALV"); + + b.Property("Deptfdm") + .HasColumnType("real") + .HasColumnName("DEPTFDM"); + + b.Property("Deptfdv") + .HasColumnType("real") + .HasColumnName("DEPTFDV"); + + b.Property("Deptgr1m") + .HasColumnType("real") + .HasColumnName("DEPTGR1M"); + + b.Property("Deptgr1v") + .HasColumnType("real") + .HasColumnName("DEPTGR1V"); + + b.Property("Deptgr2m") + .HasColumnType("real") + .HasColumnName("DEPTGR2M"); + + b.Property("Deptgr2v") + .HasColumnType("real") + .HasColumnName("DEPTGR2V"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptp1m") + .HasColumnType("real") + .HasColumnName("DEPTP1M"); + + b.Property("Deptp1v") + .HasColumnType("real") + .HasColumnName("DEPTP1V"); + + b.Property("Deptp2m") + .HasColumnType("real") + .HasColumnName("DEPTP2M"); + + b.Property("Deptp2v") + .HasColumnType("real") + .HasColumnName("DEPTP2V"); + + b.Property("Deptrs1m") + .HasColumnType("real") + .HasColumnName("DEPTRS1M"); + + b.Property("Deptrs1v") + .HasColumnType("real") + .HasColumnName("DEPTRS1V"); + + b.Property("Deptrs2m") + .HasColumnType("real") + .HasColumnName("DEPTRS2M"); + + b.Property("Deptrs2v") + .HasColumnType("real") + .HasColumnName("DEPTRS2V"); + + b.Property("Deptvert") + .HasColumnType("real") + .HasColumnName("DEPTVERT"); + + b.Property("Mclp") + .HasColumnType("real") + .HasColumnName("MCLP"); + + b.Property("Mfd") + .HasColumnType("real") + .HasColumnName("MFD"); + + b.Property("Mffp") + .HasColumnType("real") + .HasColumnName("MFFP"); + + b.Property("Mfpp") + .HasColumnType("real") + .HasColumnName("MFPP"); + + b.Property("Mfrann") + .HasColumnType("real") + .HasColumnName("MFRANN"); + + b.Property("Mfrpipe") + .HasColumnType("real") + .HasColumnName("MFRPIPE"); + + b.Property("Mftann") + .HasColumnType("real") + .HasColumnName("MFTANN"); + + b.Property("Mftpipe") + .HasColumnType("real") + .HasColumnName("MFTPIPE"); + + b.Property("Mg1") + .HasColumnType("real") + .HasColumnName("MG1"); + + b.Property("Mg1c") + .HasColumnType("real") + .HasColumnName("MG1C"); + + b.Property("Mg2") + .HasColumnType("real") + .HasColumnName("MG2"); + + b.Property("Mg2c") + .HasColumnType("real") + .HasColumnName("MG2C"); + + b.Property("Mpo1") + .HasColumnType("real") + .HasColumnName("MPO1"); + + b.Property("Mpo2") + .HasColumnType("real") + .HasColumnName("MPO2"); + + b.Property("Mr1") + .HasColumnType("real") + .HasColumnName("MR1"); + + b.Property("Mr1c") + .HasColumnType("real") + .HasColumnName("MR1C"); + + b.Property("Mr2") + .HasColumnType("real") + .HasColumnName("MR2"); + + b.Property("Mr2c") + .HasColumnType("real") + .HasColumnName("MR2C"); + + b.Property("Passnum") + .HasColumnType("smallint") + .HasColumnName("PASSNUM"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Spare6") + .HasColumnType("real") + .HasColumnName("SPARE6"); + + b.Property("Spare7") + .HasColumnType("real") + .HasColumnName("SPARE7"); + + b.Property("Spare8") + .HasColumnType("real") + .HasColumnName("SPARE8"); + + b.Property("Spare9") + .HasColumnType("real") + .HasColumnName("SPARE9"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_record_8"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => + { + b.HasOne("AsbCloudDb.Model.Deposit", "Deposit") + .WithMany("Clusters") + .HasForeignKey("IdDeposit") + .HasConstraintName("t_cluster_t_deposit_id_fk"); + + b.Navigation("Deposit"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Company", b => + { + b.HasOne("AsbCloudDb.Model.CompanyType", "CompanyType") + .WithMany("Companies") + .HasForeignKey("IdCompanyType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CompanyType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillFlowChart", b => + { + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillingProgramPart", b => + { + b.HasOne("AsbCloudDb.Model.FileCategory", "FileCategory") + .WithMany() + .HasForeignKey("IdFileCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("DrillingProgramParts") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("FileCategory"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillParams", b => + { + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.WellSectionType", "WellSectionType") + .WithMany("DrillParamsCollection") + .HasForeignKey("IdWellSectionType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_drill_params_t_well_section_type_id_fk"); + + b.Navigation("Well"); + + b.Navigation("WellSectionType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileInfo", b => + { + b.HasOne("AsbCloudDb.Model.User", "Author") + .WithMany("Files") + .HasForeignKey("IdAuthor"); + + b.HasOne("AsbCloudDb.Model.FileCategory", "FileCategory") + .WithMany() + .HasForeignKey("IdCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Author"); + + b.Navigation("FileCategory"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileMark", b => + { + b.HasOne("AsbCloudDb.Model.FileInfo", "FileInfo") + .WithMany("FileMarks") + .HasForeignKey("IdFile") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_file_mark_t_file_info_fk"); + + b.HasOne("AsbCloudDb.Model.User", "User") + .WithMany("FileMarks") + .HasForeignKey("IdUser") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_user_t_file_mark_fk"); + + b.Navigation("FileInfo"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Measure", b => + { + b.HasOne("AsbCloudDb.Model.MeasureCategory", "Category") + .WithMany("Measures") + .HasForeignKey("IdCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Category"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationCompanyWell", b => + { + b.HasOne("AsbCloudDb.Model.Company", "Company") + .WithMany("RelationCompaniesWells") + .HasForeignKey("IdCompany") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_relation_company_well_t_company_id_fk"); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("RelationCompaniesWells") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_relation_company_well_t_well_id_fk"); + + b.Navigation("Company"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserDrillingProgramPart", b => + { + b.HasOne("AsbCloudDb.Model.DrillingProgramPart", "DrillingProgramPart") + .WithMany("RelatedUsers") + .HasForeignKey("IdDrillingProgramPart") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.User", "User") + .WithMany() + .HasForeignKey("IdUser") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DrillingProgramPart"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRolePermission", b => + { + b.HasOne("AsbCloudDb.Model.Permission", "Permission") + .WithMany("RelationUserRolePermissions") + .HasForeignKey("IdPermission") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.UserRole", "UserRole") + .WithMany("RelationUserRolePermissions") + .HasForeignKey("IdUserRole") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Permission"); + + b.Navigation("UserRole"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRoleUserRole", b => + { + b.HasOne("AsbCloudDb.Model.UserRole", "Role") + .WithMany("RelationUserRoleUserRoles") + .HasForeignKey("Id") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.UserRole", "IncludeRole") + .WithMany() + .HasForeignKey("IdInclude") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("IncludeRole"); + + b.Navigation("Role"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserUserRole", b => + { + b.HasOne("AsbCloudDb.Model.User", "User") + .WithMany("RelationUsersUserRoles") + .HasForeignKey("IdUser") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.UserRole", "UserRole") + .WithMany("RelationUsersUserRoles") + .HasForeignKey("IdUserRole") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + + b.Navigation("UserRole"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.ReportProperty", b => + { + b.HasOne("AsbCloudDb.Model.FileInfo", "File") + .WithMany() + .HasForeignKey("IdFile") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("File"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.SetpointsRequest", b => + { + b.HasOne("AsbCloudDb.Model.User", "Author") + .WithMany() + .HasForeignKey("IdAuthor") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Author"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryAnalysis", b => + { + b.HasOne("AsbCloudDb.Model.WellOperationCategory", "Operation") + .WithMany("Analysis") + .HasForeignKey("IdOperation") + .OnDelete(DeleteBehavior.SetNull) + .IsRequired() + .HasConstraintName("t_analysis_t_operation_id_fk"); + + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Analysis") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_analysis_t_telemetry_id_fk"); + + b.Navigation("Operation"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSaub", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("DataSaub") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_telemetry_data_saub_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSpin", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("DataSpin") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_telemetry_data_spin_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryEvent", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Events") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_event_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryMessage", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Messages") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_messages_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryUser", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Users") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_telemetry_user_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.User", b => + { + b.HasOne("AsbCloudDb.Model.Company", "Company") + .WithMany("Users") + .HasForeignKey("IdCompany") + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("t_user_t_company_id_fk"); + + b.Navigation("Company"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Well", b => + { + b.HasOne("AsbCloudDb.Model.Cluster", "Cluster") + .WithMany("Wells") + .HasForeignKey("IdCluster") + .HasConstraintName("t_well_t_cluster_id_fk"); + + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithOne("Well") + .HasForeignKey("AsbCloudDb.Model.Well", "IdTelemetry") + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("t_well_t_telemetry_id_fk"); + + b.HasOne("AsbCloudDb.Model.WellType", "WellType") + .WithMany("Wells") + .HasForeignKey("IdWellType"); + + b.Navigation("Cluster"); + + b.Navigation("Telemetry"); + + b.Navigation("WellType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellComposite", b => + { + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("WellComposites") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_well_сomposite_t_well_id_fk"); + + b.HasOne("AsbCloudDb.Model.WellSectionType", "WellSectionType") + .WithMany("WellComposites") + .HasForeignKey("IdWellSectionType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_well_сomposite_t_well_section_type_id_fk"); + + b.HasOne("AsbCloudDb.Model.Well", "WellSrc") + .WithMany("WellCompositeSrcs") + .HasForeignKey("IdWellSrc") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_well_сomposite_src_t_well_id_fk"); + + b.Navigation("Well"); + + b.Navigation("WellSectionType"); + + b.Navigation("WellSrc"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperation", b => + { + b.HasOne("AsbCloudDb.Model.WellOperationCategory", "OperationCategory") + .WithMany() + .HasForeignKey("IdCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("WellOperations") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.WellSectionType", "WellSectionType") + .WithMany("WellOperations") + .HasForeignKey("IdWellSectionType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OperationCategory"); + + b.Navigation("Well"); + + b.Navigation("WellSectionType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record1", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record1", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record50", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record50", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record60", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record60", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record61", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record61", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record7", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record7", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record8", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record8", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => + { + b.Navigation("Wells"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Company", b => + { + b.Navigation("RelationCompaniesWells"); + + b.Navigation("Users"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.CompanyType", b => + { + b.Navigation("Companies"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Deposit", b => + { + b.Navigation("Clusters"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillingProgramPart", b => + { + b.Navigation("RelatedUsers"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileInfo", b => + { + b.Navigation("FileMarks"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.MeasureCategory", b => + { + b.Navigation("Measures"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Permission", b => + { + b.Navigation("RelationUserRolePermissions"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Telemetry", b => + { + b.Navigation("Analysis"); + + b.Navigation("DataSaub"); + + b.Navigation("DataSpin"); + + b.Navigation("Events"); + + b.Navigation("Messages"); + + b.Navigation("Users"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.User", b => + { + b.Navigation("FileMarks"); + + b.Navigation("Files"); + + b.Navigation("RelationUsersUserRoles"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.UserRole", b => + { + b.Navigation("RelationUserRolePermissions"); + + b.Navigation("RelationUserRoleUserRoles"); + + b.Navigation("RelationUsersUserRoles"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Well", b => + { + b.Navigation("DrillingProgramParts"); + + b.Navigation("RelationCompaniesWells"); + + b.Navigation("WellCompositeSrcs"); + + b.Navigation("WellComposites"); + + b.Navigation("WellOperations"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperationCategory", b => + { + b.Navigation("Analysis"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellSectionType", b => + { + b.Navigation("DrillParamsCollection"); + + b.Navigation("WellComposites"); + + b.Navigation("WellOperations"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellType", b => + { + b.Navigation("Wells"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.cs b/AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.cs new file mode 100644 index 00000000..aaa7e8cb --- /dev/null +++ b/AsbCloudDb/Migrations/20220401122724_Add_WitsRecords.cs @@ -0,0 +1,375 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace AsbCloudDb.Migrations +{ + public partial class Add_WitsRecords : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "RecordBase", + columns: table => new + { + id_telemetry = table.Column(type: "integer", nullable: false), + date = table.Column(type: "timestamp with time zone", nullable: false), + WELLID = table.Column(type: "text", nullable: true), + STKNUM = table.Column(type: "smallint", nullable: true), + RECID = table.Column(type: "smallint", nullable: true), + SEQID = table.Column(type: "integer", nullable: true), + DATE = table.Column(type: "integer", nullable: true), + TIME = table.Column(type: "integer", nullable: true), + ACTCOD = table.Column(type: "smallint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_RecordBase", x => new { x.id_telemetry, x.date }); + }); + + migrationBuilder.CreateTable( + name: "t_record_1", + columns: table => new + { + id_telemetry = table.Column(type: "integer", nullable: false), + date = table.Column(type: "timestamp with time zone", nullable: false), + DEPTBITM = table.Column(type: "real", nullable: true), + DEPTBITV = table.Column(type: "real", nullable: true), + DEPTMEAS = table.Column(type: "real", nullable: true), + DEPTVERT = table.Column(type: "real", nullable: true), + BLKPOS = table.Column(type: "real", nullable: true), + ROPA = table.Column(type: "real", nullable: true), + HKLA = table.Column(type: "real", nullable: true), + HKLX = table.Column(type: "real", nullable: true), + WOBA = table.Column(type: "real", nullable: true), + WOBX = table.Column(type: "real", nullable: true), + TORQA = table.Column(type: "real", nullable: true), + TORQX = table.Column(type: "real", nullable: true), + RPMA = table.Column(type: "smallint", nullable: true), + SPPA = table.Column(type: "real", nullable: true), + CHKP = table.Column(type: "real", nullable: true), + SPM1 = table.Column(type: "smallint", nullable: true), + SPM2 = table.Column(type: "smallint", nullable: true), + SPM3 = table.Column(type: "smallint", nullable: true), + TVOLACT = table.Column(type: "real", nullable: true), + TVOLCACT = table.Column(type: "real", nullable: true), + MFOP = table.Column(type: "smallint", nullable: true), + MFOA = table.Column(type: "real", nullable: true), + MFIA = table.Column(type: "real", nullable: true), + MDOA = table.Column(type: "real", nullable: true), + MDIA = table.Column(type: "real", nullable: true), + MTOA = table.Column(type: "real", nullable: true), + MTIA = table.Column(type: "real", nullable: true), + MCOA = table.Column(type: "real", nullable: true), + MCIA = table.Column(type: "real", nullable: true), + STKC = table.Column(type: "integer", nullable: true), + LAGSTKS = table.Column(type: "smallint", nullable: true), + DEPTRETM = table.Column(type: "real", nullable: true), + GASA = table.Column(type: "real", nullable: true), + SPARE1 = table.Column(type: "real", nullable: true), + SPARE2 = table.Column(type: "real", nullable: true), + SPARE3 = table.Column(type: "real", nullable: true), + SPARE4 = table.Column(type: "real", nullable: true), + SPARE5 = table.Column(type: "real", nullable: true), + TelemetryId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_t_record_1", x => new { x.id_telemetry, x.date }); + table.ForeignKey( + name: "FK_t_record_1_RecordBase_id_telemetry_date", + columns: x => new { x.id_telemetry, x.date }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_t_record_1_t_telemetry_TelemetryId", + column: x => x.TelemetryId, + principalTable: "t_telemetry", + principalColumn: "id"); + }); + + migrationBuilder.CreateTable( + name: "t_record_50", + columns: table => new + { + id_telemetry = table.Column(type: "integer", nullable: false), + date = table.Column(type: "timestamp with time zone", nullable: false), + DEPTBITM = table.Column(type: "real", nullable: true), + DEPTMEAS_MCRSTAT = table.Column(type: "real", nullable: true), + MCRSTAT = table.Column(type: "real", nullable: true), + DEPTMEAS_SLVL_mc = table.Column(type: "real", nullable: true), + SLVL_mc = table.Column(type: "real", nullable: true), + DEPTMEAS_GDP_mc = table.Column(type: "real", nullable: true), + GDP_mc = table.Column(type: "real", nullable: true), + DEPTMEAS_RA33F2_mc = table.Column(type: "real", nullable: true), + RA33F2_mc = table.Column(type: "real", nullable: true), + DEPTMEAS_RP33F2_mc = table.Column(type: "real", nullable: true), + RP33F2_mc = table.Column(type: "real", nullable: true), + DEPTMEAS_RA33F4_mc = table.Column(type: "real", nullable: true), + RA33F4_mc = table.Column(type: "real", nullable: true), + DEPTMEAS_RP33F4_mc = table.Column(type: "real", nullable: true), + RP33F4_mc = table.Column(type: "real", nullable: true), + DEPTMEAS_RA33_mc = table.Column(type: "real", nullable: true), + RA33_mc = table.Column(type: "real", nullable: true), + DEPTMEAS_RP33_mc = table.Column(type: "real", nullable: true), + RP33_mc = table.Column(type: "real", nullable: true), + TelemetryId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_t_record_50", x => new { x.id_telemetry, x.date }); + table.ForeignKey( + name: "FK_t_record_50_RecordBase_id_telemetry_date", + columns: x => new { x.id_telemetry, x.date }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_t_record_50_t_telemetry_TelemetryId", + column: x => x.TelemetryId, + principalTable: "t_telemetry", + principalColumn: "id"); + }); + + migrationBuilder.CreateTable( + name: "t_record_60", + columns: table => new + { + id_telemetry = table.Column(type: "integer", nullable: false), + date = table.Column(type: "timestamp with time zone", nullable: false), + DEPTBITM = table.Column(type: "real", nullable: true), + DEPTMEAS = table.Column(type: "real", nullable: true), + Gtot = table.Column(type: "real", nullable: true), + Gx = table.Column(type: "real", nullable: true), + Gy = table.Column(type: "real", nullable: true), + Gz = table.Column(type: "real", nullable: true), + Btot = table.Column(type: "real", nullable: true), + Bx = table.Column(type: "real", nullable: true), + By = table.Column(type: "real", nullable: true), + Bz = table.Column(type: "real", nullable: true), + TelemetryId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_t_record_60", x => new { x.id_telemetry, x.date }); + table.ForeignKey( + name: "FK_t_record_60_RecordBase_id_telemetry_date", + columns: x => new { x.id_telemetry, x.date }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_t_record_60_t_telemetry_TelemetryId", + column: x => x.TelemetryId, + principalTable: "t_telemetry", + principalColumn: "id"); + }); + + migrationBuilder.CreateTable( + name: "t_record_61", + columns: table => new + { + id_telemetry = table.Column(type: "integer", nullable: false), + date = table.Column(type: "timestamp with time zone", nullable: false), + DEPTBITM = table.Column(type: "real", nullable: true), + DEPTMEAS = table.Column(type: "real", nullable: true), + PHL1F1 = table.Column(type: "real", nullable: true), + PHL1F2 = table.Column(type: "real", nullable: true), + PHL2F1 = table.Column(type: "real", nullable: true), + PHL2F2 = table.Column(type: "real", nullable: true), + ATT06H = table.Column(type: "real", nullable: true), + ATT06L = table.Column(type: "real", nullable: true), + ATT10H = table.Column(type: "real", nullable: true), + ATT10L = table.Column(type: "real", nullable: true), + Status = table.Column(type: "real", nullable: true), + TelemetryId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_t_record_61", x => new { x.id_telemetry, x.date }); + table.ForeignKey( + name: "FK_t_record_61_RecordBase_id_telemetry_date", + columns: x => new { x.id_telemetry, x.date }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_t_record_61_t_telemetry_TelemetryId", + column: x => x.TelemetryId, + principalTable: "t_telemetry", + principalColumn: "id"); + }); + + migrationBuilder.CreateTable( + name: "t_record_7", + columns: table => new + { + id_telemetry = table.Column(type: "integer", nullable: false), + date = table.Column(type: "timestamp with time zone", nullable: false), + DEPTSVYM = table.Column(type: "real", nullable: true), + DEPTSVYV = table.Column(type: "real", nullable: true), + PASSNUM = table.Column(type: "smallint", nullable: true), + DEPTMEAS = table.Column(type: "real", nullable: true), + SVYTYPE = table.Column(type: "text", nullable: true), + SVYINC = table.Column(type: "real", nullable: true), + SVYAZU = table.Column(type: "real", nullable: true), + SVYAZC = table.Column(type: "real", nullable: true), + SVYMTF = table.Column(type: "real", nullable: true), + SVYGTF = table.Column(type: "real", nullable: true), + SVYNS = table.Column(type: "real", nullable: true), + SVYEW = table.Column(type: "real", nullable: true), + SVYDLS = table.Column(type: "real", nullable: true), + SVYWALK = table.Column(type: "real", nullable: true), + SPARE1 = table.Column(type: "real", nullable: true), + SPARE2 = table.Column(type: "real", nullable: true), + SPARE3 = table.Column(type: "real", nullable: true), + SPARE4 = table.Column(type: "real", nullable: true), + SPARE5 = table.Column(type: "real", nullable: true), + TelemetryId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_t_record_7", x => new { x.id_telemetry, x.date }); + table.ForeignKey( + name: "FK_t_record_7_RecordBase_id_telemetry_date", + columns: x => new { x.id_telemetry, x.date }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_t_record_7_t_telemetry_TelemetryId", + column: x => x.TelemetryId, + principalTable: "t_telemetry", + principalColumn: "id"); + }); + + migrationBuilder.CreateTable( + name: "t_record_8", + columns: table => new + { + id_telemetry = table.Column(type: "integer", nullable: false), + date = table.Column(type: "timestamp with time zone", nullable: false), + DEPTMEAS = table.Column(type: "real", nullable: true), + DEPTVERT = table.Column(type: "real", nullable: true), + DEPTBITM = table.Column(type: "real", nullable: true), + DEPTBITV = table.Column(type: "real", nullable: true), + PASSNUM = table.Column(type: "smallint", nullable: true), + DEPTRS1M = table.Column(type: "real", nullable: true), + DEPTRS1V = table.Column(type: "real", nullable: true), + MR1 = table.Column(type: "real", nullable: true), + MR1C = table.Column(type: "real", nullable: true), + DEPTRS2M = table.Column(type: "real", nullable: true), + DEPTRS2V = table.Column(type: "real", nullable: true), + MR2 = table.Column(type: "real", nullable: true), + MR2C = table.Column(type: "real", nullable: true), + DEPTGR1M = table.Column(type: "real", nullable: true), + DEPTGR1V = table.Column(type: "real", nullable: true), + MG1 = table.Column(type: "real", nullable: true), + MG1C = table.Column(type: "real", nullable: true), + DEPTGR2M = table.Column(type: "real", nullable: true), + DEPTGR2V = table.Column(type: "real", nullable: true), + MG2 = table.Column(type: "real", nullable: true), + MG2C = table.Column(type: "real", nullable: true), + DEPTP1M = table.Column(type: "real", nullable: true), + DEPTP1V = table.Column(type: "real", nullable: true), + MPO1 = table.Column(type: "real", nullable: true), + DEPTP2M = table.Column(type: "real", nullable: true), + DEPTP2V = table.Column(type: "real", nullable: true), + MPO2 = table.Column(type: "real", nullable: true), + MFTANN = table.Column(type: "real", nullable: true), + MFTPIPE = table.Column(type: "real", nullable: true), + MFRANN = table.Column(type: "real", nullable: true), + MFRPIPE = table.Column(type: "real", nullable: true), + DEPTFDM = table.Column(type: "real", nullable: true), + DEPTFDV = table.Column(type: "real", nullable: true), + MFD = table.Column(type: "real", nullable: true), + DEPTCALM = table.Column(type: "real", nullable: true), + DEPTCALV = table.Column(type: "real", nullable: true), + MCLP = table.Column(type: "real", nullable: true), + MFPP = table.Column(type: "real", nullable: true), + MFFP = table.Column(type: "real", nullable: true), + SPARE1 = table.Column(type: "real", nullable: true), + SPARE2 = table.Column(type: "real", nullable: true), + SPARE3 = table.Column(type: "real", nullable: true), + SPARE4 = table.Column(type: "real", nullable: true), + SPARE5 = table.Column(type: "real", nullable: true), + SPARE6 = table.Column(type: "real", nullable: true), + SPARE7 = table.Column(type: "real", nullable: true), + SPARE8 = table.Column(type: "real", nullable: true), + SPARE9 = table.Column(type: "real", nullable: true), + TelemetryId = table.Column(type: "integer", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_t_record_8", x => new { x.id_telemetry, x.date }); + table.ForeignKey( + name: "FK_t_record_8_RecordBase_id_telemetry_date", + columns: x => new { x.id_telemetry, x.date }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_t_record_8_t_telemetry_TelemetryId", + column: x => x.TelemetryId, + principalTable: "t_telemetry", + principalColumn: "id"); + }); + + migrationBuilder.CreateIndex( + name: "IX_t_record_1_TelemetryId", + table: "t_record_1", + column: "TelemetryId"); + + migrationBuilder.CreateIndex( + name: "IX_t_record_50_TelemetryId", + table: "t_record_50", + column: "TelemetryId"); + + migrationBuilder.CreateIndex( + name: "IX_t_record_60_TelemetryId", + table: "t_record_60", + column: "TelemetryId"); + + migrationBuilder.CreateIndex( + name: "IX_t_record_61_TelemetryId", + table: "t_record_61", + column: "TelemetryId"); + + migrationBuilder.CreateIndex( + name: "IX_t_record_7_TelemetryId", + table: "t_record_7", + column: "TelemetryId"); + + migrationBuilder.CreateIndex( + name: "IX_t_record_8_TelemetryId", + table: "t_record_8", + column: "TelemetryId"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "t_record_1"); + + migrationBuilder.DropTable( + name: "t_record_50"); + + migrationBuilder.DropTable( + name: "t_record_60"); + + migrationBuilder.DropTable( + name: "t_record_61"); + + migrationBuilder.DropTable( + name: "t_record_7"); + + migrationBuilder.DropTable( + name: "t_record_8"); + + migrationBuilder.DropTable( + name: "RecordBase"); + } + } +} diff --git a/AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.Designer.cs b/AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.Designer.cs new file mode 100644 index 00000000..c81d2dc0 --- /dev/null +++ b/AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.Designer.cs @@ -0,0 +1,5771 @@ +// +using System; +using System.Collections.Generic; +using AsbCloudDb.Model; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace AsbCloudDb.Migrations +{ + [DbContext(typeof(AsbCloudDbContext))] + [Migration("20220401125154_Edit_WitsRecords_tableNames")] + partial class Edit_WitsRecords_tableNames + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .UseCollation("Russian_Russia.1251") + .HasAnnotation("ProductVersion", "6.0.1") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "adminpack"); + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.Property("IdDeposit") + .HasColumnType("integer") + .HasColumnName("id_deposit"); + + b.Property("Latitude") + .HasColumnType("double precision") + .HasColumnName("latitude"); + + b.Property("Longitude") + .HasColumnType("double precision") + .HasColumnName("longitude"); + + b.Property("Timezone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.HasIndex("IdDeposit"); + + b.ToTable("t_cluster"); + + b.HasComment("Кусты"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Company", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.Property("IdCompanyType") + .HasMaxLength(255) + .HasColumnType("integer") + .HasColumnName("id_company_type") + .HasComment("вид деятельности"); + + b.HasKey("Id"); + + b.HasIndex("IdCompanyType"); + + b.ToTable("t_company"); + + b.HasData( + new + { + Id = 1, + Caption = "ООО \"АСБ\"", + IdCompanyType = 3 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.CompanyType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.HasKey("Id"); + + b.ToTable("t_company_type"); + + b.HasData( + new + { + Id = 1, + Caption = "Недрапользователь" + }, + new + { + Id = 2, + Caption = "Буровой подрядчик" + }, + new + { + Id = 3, + Caption = "Сервис автоматизации бурения" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Deposit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.Property("Latitude") + .HasColumnType("double precision") + .HasColumnName("latitude"); + + b.Property("Longitude") + .HasColumnType("double precision") + .HasColumnName("longitude"); + + b.Property("Timezone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.ToTable("t_deposit"); + + b.HasComment("Месторождение"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillFlowChart", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("AxialLoadMax") + .HasColumnType("double precision") + .HasColumnName("axial_load_max") + .HasComment("Максимальная нагрузка"); + + b.Property("AxialLoadMin") + .HasColumnType("double precision") + .HasColumnName("axial_load_min") + .HasComment("Минимальная нагрузка"); + + b.Property("DepthEnd") + .HasColumnType("double precision") + .HasColumnName("depth_end") + .HasComment("Глубина окончания интервала"); + + b.Property("DepthStart") + .HasColumnType("double precision") + .HasColumnName("depth_start") + .HasComment("Стартовая глубина"); + + b.Property("FlowMax") + .HasColumnType("double precision") + .HasColumnName("flow_max") + .HasComment("Максимальный расход"); + + b.Property("FlowMin") + .HasColumnType("double precision") + .HasColumnName("flow_min") + .HasComment("Минимальный расход"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("well_id") + .HasComment("Id скважины"); + + b.Property("IdWellOperationCategory") + .HasColumnType("integer") + .HasColumnName("id_operation_category") + .HasComment("Id типа операции"); + + b.Property("LastUpdate") + .HasColumnType("timestamp with time zone") + .HasColumnName("last_update") + .HasComment("Дата последнего изменения"); + + b.Property("PressureMax") + .HasColumnType("double precision") + .HasColumnName("pressure_max") + .HasComment("Максимальное давление"); + + b.Property("PressureMin") + .HasColumnType("double precision") + .HasColumnName("pressure_min") + .HasComment("Минимальное давление"); + + b.Property("RotorSpeedMax") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_max") + .HasComment("Максимальные обороты на ВСП"); + + b.Property("RotorSpeedMin") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_min") + .HasComment("Минимальные обороты на ВСП"); + + b.Property("RotorTorqueMax") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_max") + .HasComment("Максимальный момент на ВСП"); + + b.Property("RotorTorqueMin") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_min") + .HasComment("Минимальный момент на ВСП"); + + b.HasKey("Id"); + + b.HasIndex("IdWell"); + + b.HasIndex("IdWellOperationCategory"); + + b.ToTable("t_drill_flow_chart"); + + b.HasComment("Параметры коридоров бурения (диапазоны параметров бурения)"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillingProgramPart", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("IdFileCategory") + .HasColumnType("integer") + .HasColumnName("id_file_category"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well"); + + b.HasKey("Id"); + + b.HasIndex("IdFileCategory"); + + b.HasIndex("IdWell", "IdFileCategory") + .IsUnique(); + + b.ToTable("t_drilling_program_part"); + + b.HasComment("части программ бурения"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillParams", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("AxialLoadAvg") + .HasColumnType("double precision") + .HasColumnName("axial_load_avg") + .HasComment("Средняя нагрузка"); + + b.Property("AxialLoadMax") + .HasColumnType("double precision") + .HasColumnName("axial_load_max") + .HasComment("Максимальная нагрузка"); + + b.Property("AxialLoadMin") + .HasColumnType("double precision") + .HasColumnName("axial_load_min") + .HasComment("Минимальная нагрузка"); + + b.Property("DepthEnd") + .HasColumnType("double precision") + .HasColumnName("depth_end") + .HasComment("Глубина окончания интервала"); + + b.Property("DepthStart") + .HasColumnType("double precision") + .HasColumnName("depth_start") + .HasComment("Стартовая глубина"); + + b.Property("FlowAvg") + .HasColumnType("double precision") + .HasColumnName("flow_avg") + .HasComment("Средний расход"); + + b.Property("FlowMax") + .HasColumnType("double precision") + .HasColumnName("flow_max") + .HasComment("Максимальный расход"); + + b.Property("FlowMin") + .HasColumnType("double precision") + .HasColumnName("flow_min") + .HasComment("Минимальный расход"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("well_id") + .HasComment("Id скважины"); + + b.Property("IdWellSectionType") + .HasColumnType("integer") + .HasColumnName("id_wellsection_type") + .HasComment("Id с типом секции скважины"); + + b.Property("PressureAvg") + .HasColumnType("double precision") + .HasColumnName("pressure_avg") + .HasComment("Среднее давление"); + + b.Property("PressureMax") + .HasColumnType("double precision") + .HasColumnName("pressure_max") + .HasComment("Максимальное давление"); + + b.Property("PressureMin") + .HasColumnType("double precision") + .HasColumnName("pressure_min") + .HasComment("Минимальное давление"); + + b.Property("RotorSpeedAvg") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_avg") + .HasComment("Средние обороты на ВСП"); + + b.Property("RotorSpeedMax") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_max") + .HasComment("Максимальные обороты на ВСП"); + + b.Property("RotorSpeedMin") + .HasColumnType("double precision") + .HasColumnName("rotor_speed_min") + .HasComment("Минимальные обороты на ВСП"); + + b.Property("RotorTorqueAvg") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_avg") + .HasComment("Средний момент на ВСП"); + + b.Property("RotorTorqueMax") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_max") + .HasComment("Максимальный момент на ВСП"); + + b.Property("RotorTorqueMin") + .HasColumnType("double precision") + .HasColumnName("rotor_torque_min") + .HasComment("Минимальный момент на ВСП"); + + b.HasKey("Id"); + + b.HasIndex("IdWell"); + + b.HasIndex("IdWellSectionType"); + + b.ToTable("t_drill_params"); + + b.HasComment("Режим бурения в секции (диапазоны параметров бурения)"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileCategory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название категории"); + + b.Property("ShortName") + .HasColumnType("text") + .HasColumnName("short_name") + .HasComment("Короткое название категории"); + + b.HasKey("Id"); + + b.ToTable("t_file_category"); + + b.HasComment("Категории файлов"); + + b.HasData( + new + { + Id = 1, + Name = "Растворный сервис", + ShortName = "fluidService" + }, + new + { + Id = 2, + Name = "Цементирование", + ShortName = "cement" + }, + new + { + Id = 3, + Name = "ННБ", + ShortName = "nnb" + }, + new + { + Id = 4, + Name = "ГТИ", + ShortName = "gti" + }, + new + { + Id = 5, + Name = "Документы по скважине", + ShortName = "wellDocuments" + }, + new + { + Id = 6, + Name = "Супервайзер", + ShortName = "supervisor" + }, + new + { + Id = 7, + Name = "Мастер", + ShortName = "master" + }, + new + { + Id = 8, + Name = "Долотный сервис", + ShortName = "toolService" + }, + new + { + Id = 9, + Name = "Буровой подрядчик", + ShortName = "drillService" + }, + new + { + Id = 10, + Name = "Сервис по заканчиванию скважины", + ShortName = "closingService" + }, + new + { + Id = 12, + Name = "Рапорт", + ShortName = "report" + }, + new + { + Id = 1000, + Name = "Программа бурения" + }, + new + { + Id = 1001, + Name = "Задание от геологов" + }, + new + { + Id = 1002, + Name = "Профиль ствола скважины (ННБ)" + }, + new + { + Id = 1003, + Name = "Технологические расчеты (ННБ)" + }, + new + { + Id = 1004, + Name = "Долотная программа" + }, + new + { + Id = 1005, + Name = "Программа по растворам" + }, + new + { + Id = 1006, + Name = "Программа геофизических исследований" + }, + new + { + Id = 1007, + Name = "Планы спусков обсадных колонн" + }, + new + { + Id = 1008, + Name = "Программы цементирования обсадных колонн" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileInfo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("IdAuthor") + .HasColumnType("integer") + .HasColumnName("id_author") + .HasComment("Id пользователя, загрузившего файл"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category") + .HasComment("id категории файла"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("IsDeleted") + .HasColumnType("boolean") + .HasColumnName("is_deleted") + .HasComment("Удален ли файл"); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название файла"); + + b.Property("PublishInfo") + .HasColumnType("jsonb") + .HasColumnName("publish_info") + .HasComment("Информация о файле в облаке"); + + b.Property("Size") + .HasColumnType("bigint") + .HasColumnName("file_size") + .HasComment("Размер файла"); + + b.Property("UploadDate") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.HasKey("Id"); + + b.HasIndex("IdAuthor"); + + b.HasIndex("IdCategory"); + + b.HasIndex("IdWell"); + + b.ToTable("t_file_info"); + + b.HasComment("Файлы всех категорий"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileMark", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Comment") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("comment") + .HasComment("Комментарий"); + + b.Property("DateCreated") + .HasColumnType("timestamp with time zone") + .HasColumnName("date_created") + .HasComment("Дата совершенного действия"); + + b.Property("IdFile") + .HasColumnType("integer") + .HasColumnName("id_file") + .HasComment("id файла"); + + b.Property("IdMarkType") + .HasColumnType("integer") + .HasColumnName("id_mark_type") + .HasComment("0 - отклонен, 1 - согласован"); + + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user") + .HasComment("id пользователя"); + + b.Property("IsDeleted") + .HasColumnType("boolean") + .HasColumnName("is_deleted") + .HasComment("Помечен ли файл как удаленный"); + + b.HasKey("Id"); + + b.HasIndex("IdFile"); + + b.HasIndex("IdUser"); + + b.ToTable("t_file_mark"); + + b.HasComment("Действия с файлами."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Measure", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Data") + .HasColumnType("jsonb") + .HasColumnName("data") + .HasComment("Данные таблицы последних данных"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category") + .HasComment("id категории"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("IsDeleted") + .HasColumnType("boolean") + .HasColumnName("is_deleted") + .HasComment("Пометка удаленным"); + + b.Property("Timestamp") + .HasColumnType("timestamp with time zone") + .HasColumnName("timestamp") + .HasComment("время добавления"); + + b.HasKey("Id"); + + b.HasIndex("IdCategory"); + + b.HasIndex("IdWell"); + + b.ToTable("t_measure"); + + b.HasComment("Таблица c данными для вкладки 'Последние данные'"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.MeasureCategory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название категории"); + + b.Property("ShortName") + .HasColumnType("text") + .HasColumnName("short_name") + .HasComment("Короткое название категории"); + + b.HasKey("Id"); + + b.ToTable("t_measure_category"); + + b.HasComment("Категория последних данных"); + + b.HasData( + new + { + Id = 1, + Name = "Показатели бурового раствора", + ShortName = "Раствор" + }, + new + { + Id = 2, + Name = "Шламограмма", + ShortName = "Шламограмма" + }, + new + { + Id = 3, + Name = "ННБ", + ShortName = "ННБ" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Permission", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Description") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("description") + .HasComment("Краткое описание"); + + b.Property("Name") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("name") + .HasComment("Название"); + + b.HasKey("Id"); + + b.ToTable("t_permission"); + + b.HasComment("Разрешения на доступ к данным"); + + b.HasData( + new + { + Id = 100, + Description = "Разрешение удалять админ. Кусты", + Name = "AdminCluster.delete" + }, + new + { + Id = 101, + Description = "Разрешение редактировать админ. Кусты", + Name = "AdminCluster.edit" + }, + new + { + Id = 102, + Description = "Разрешение просматривать админ. Кусты", + Name = "AdminCluster.get" + }, + new + { + Id = 103, + Description = "Разрешение удалять админ. Компании", + Name = "AdminCompany.delete" + }, + new + { + Id = 104, + Description = "Разрешение редактировать админ. Компании", + Name = "AdminCompany.edit" + }, + new + { + Id = 105, + Description = "Разрешение просматривать админ. Компании", + Name = "AdminCompany.get" + }, + new + { + Id = 106, + Description = "Разрешение удалять админ. Типы компаний", + Name = "AdminCompanyType.delete" + }, + new + { + Id = 107, + Description = "Разрешение редактировать админ. Типы компаний", + Name = "AdminCompanyType.edit" + }, + new + { + Id = 108, + Description = "Разрешение просматривать админ. Типы компаний", + Name = "AdminCompanyType.get" + }, + new + { + Id = 109, + Description = "Разрешение удалять админ. Месторождения", + Name = "AdminDeposit.delete" + }, + new + { + Id = 110, + Description = "Разрешение редактировать админ. Месторождения", + Name = "AdminDeposit.edit" + }, + new + { + Id = 111, + Description = "Разрешение просматривать админ. Месторождения", + Name = "AdminDeposit.get" + }, + new + { + Id = 112, + Description = "Разрешение удалять админ. Разрешения", + Name = "AdminPermission.delete" + }, + new + { + Id = 113, + Description = "Разрешение редактировать админ. Разрешения", + Name = "AdminPermission.edit" + }, + new + { + Id = 114, + Description = "Разрешение просматривать админ. Разрешения", + Name = "AdminPermission.get" + }, + new + { + Id = 115, + Description = "Разрешение удалять админ. Телеметрию", + Name = "AdminTelemetry.delete" + }, + new + { + Id = 116, + Description = "Разрешение редактировать админ. Телеметрию", + Name = "AdminTelemetry.edit" + }, + new + { + Id = 117, + Description = "Разрешение просматривать админ. Телеметрию", + Name = "AdminTelemetry.get" + }, + new + { + Id = 118, + Description = "Разрешение удалять админ. Пользователей", + Name = "AdminUser.delete" + }, + new + { + Id = 119, + Description = "Разрешение редактировать админ. Пользователей", + Name = "AdminUser.edit" + }, + new + { + Id = 120, + Description = "Разрешение просматривать админ. Пользователей", + Name = "AdminUser.get" + }, + new + { + Id = 121, + Description = "Разрешение удалять админ. Роли пользователей", + Name = "AdminUserRole.delete" + }, + new + { + Id = 122, + Description = "Разрешение редактировать админ. Роли пользователей", + Name = "AdminUserRole.edit" + }, + new + { + Id = 123, + Description = "Разрешение просматривать админ. Роли пользователей", + Name = "AdminUserRole.get" + }, + new + { + Id = 124, + Description = "Разрешение удалять админ. Скважины", + Name = "AdminWell.delete" + }, + new + { + Id = 125, + Description = "Разрешение редактировать админ. Скважины", + Name = "AdminWell.edit" + }, + new + { + Id = 126, + Description = "Разрешение просматривать админ. Скважины", + Name = "AdminWell.get" + }, + new + { + Id = 200, + Description = "Разрешение редактировать 0", + Name = "Auth.edit" + }, + new + { + Id = 201, + Description = "Разрешение просматривать 0", + Name = "Auth.get" + }, + new + { + Id = 202, + Description = "Разрешение просматривать Кусты", + Name = "Cluster.get" + }, + new + { + Id = 203, + Description = "Разрешение просматривать Месторождения", + Name = "Deposit.get" + }, + new + { + Id = 204, + Description = "Разрешение удалять РТК", + Name = "DrillFlowChart.delete" + }, + new + { + Id = 205, + Description = "Разрешение редактировать РТК", + Name = "DrillFlowChart.edit" + }, + new + { + Id = 206, + Description = "Разрешение просматривать РТК", + Name = "DrillFlowChart.get" + }, + new + { + Id = 207, + Description = "Разрешение удалять Программу бурения", + Name = "DrillingProgram.delete" + }, + new + { + Id = 208, + Description = "Разрешение редактировать Программу бурения", + Name = "DrillingProgram.edit" + }, + new + { + Id = 209, + Description = "Разрешение просматривать Программу бурения", + Name = "DrillingProgram.get" + }, + new + { + Id = 210, + Description = "Разрешение удалять Режимы бурения", + Name = "DrillParams.delete" + }, + new + { + Id = 211, + Description = "Разрешение редактировать Режимы бурения", + Name = "DrillParams.edit" + }, + new + { + Id = 212, + Description = "Разрешение просматривать Режимы бурения", + Name = "DrillParams.get" + }, + new + { + Id = 213, + Description = "Разрешение удалять Файлы", + Name = "File.delete" + }, + new + { + Id = 214, + Description = "Разрешение редактировать Файлы", + Name = "File.edit" + }, + new + { + Id = 215, + Description = "Разрешение просматривать Файлы", + Name = "File.get" + }, + new + { + Id = 216, + Description = "Разрешение удалять Измерения", + Name = "Measure.delete" + }, + new + { + Id = 217, + Description = "Разрешение редактировать Измерения", + Name = "Measure.edit" + }, + new + { + Id = 218, + Description = "Разрешение просматривать Измерения", + Name = "Measure.get" + }, + new + { + Id = 219, + Description = "Разрешение просматривать Сообщения телеметрии", + Name = "Message.get" + }, + new + { + Id = 220, + Description = "Разрешение просматривать Статистику по операциям", + Name = "OperationStat.get" + }, + new + { + Id = 221, + Description = "Разрешение редактировать Рапорта", + Name = "Report.edit" + }, + new + { + Id = 222, + Description = "Разрешение просматривать Рапорта", + Name = "Report.get" + }, + new + { + Id = 223, + Description = "Разрешение просматривать админ. Системная статистика", + Name = "RequestTracker.get" + }, + new + { + Id = 224, + Description = "Разрешение удалять Рекомендации уставок", + Name = "Setpoints.delete" + }, + new + { + Id = 225, + Description = "Разрешение редактировать Рекомендации уставок", + Name = "Setpoints.edit" + }, + new + { + Id = 226, + Description = "Разрешение просматривать Рекомендации уставок", + Name = "Setpoints.get" + }, + new + { + Id = 227, + Description = "Разрешение редактировать Телеметрии", + Name = "Telemetry.edit" + }, + new + { + Id = 228, + Description = "Разрешение просматривать Анализ телеметрии", + Name = "TelemetryAnalytics.get" + }, + new + { + Id = 229, + Description = "Разрешение редактировать Данные телеметрии по САУБ", + Name = "TelemetryDataSaub.edit" + }, + new + { + Id = 230, + Description = "Разрешение просматривать Данные телеметрии по САУБ", + Name = "TelemetryDataSaub.get" + }, + new + { + Id = 231, + Description = "Разрешение редактировать Данные телеметрии по SpinMaster", + Name = "TelemetryDataSpin.edit" + }, + new + { + Id = 232, + Description = "Разрешение просматривать Данные телеметрии по SpinMaster", + Name = "TelemetryDataSpin.get" + }, + new + { + Id = 233, + Description = "Разрешение редактировать Скважины", + Name = "Well.edit" + }, + new + { + Id = 234, + Description = "Разрешение просматривать Скважины", + Name = "Well.get" + }, + new + { + Id = 235, + Description = "Разрешение редактировать Композитные скважины", + Name = "WellComposite.edit" + }, + new + { + Id = 236, + Description = "Разрешение просматривать Композитные скважины", + Name = "WellComposite.get" + }, + new + { + Id = 237, + Description = "Разрешение удалять Операции по скважинам", + Name = "WellOperation.delete" + }, + new + { + Id = 238, + Description = "Разрешение редактировать Операции по скважинам", + Name = "WellOperation.edit" + }, + new + { + Id = 239, + Description = "Разрешение просматривать Операции по скважинам", + Name = "WellOperation.get" + }, + new + { + Id = 240, + Description = "Разрешение редактировать Файлы категории 1 (Растворный сервис)", + Name = "File.edit1" + }, + new + { + Id = 241, + Description = "Разрешение редактировать Файлы категории 2 (Цементирование)", + Name = "File.edit2" + }, + new + { + Id = 242, + Description = "Разрешение редактировать Файлы категории 3 (ННБ)", + Name = "File.edit3" + }, + new + { + Id = 243, + Description = "Разрешение редактировать Файлы категории 4 (ГТИ)", + Name = "File.edit4" + }, + new + { + Id = 244, + Description = "Разрешение редактировать Файлы категории 5 (Документы по скважине)", + Name = "File.edit5" + }, + new + { + Id = 245, + Description = "Разрешение редактировать Файлы категории 6 (Супервайзер)", + Name = "File.edit6" + }, + new + { + Id = 246, + Description = "Разрешение редактировать Файлы категории 7 (Мастер)", + Name = "File.edit7" + }, + new + { + Id = 247, + Description = "Разрешение редактировать Файлы категории 8 (Долотный сервис)", + Name = "File.edit8" + }, + new + { + Id = 248, + Description = "Разрешение редактировать Файлы категории 9 (Буровой подрядчик)", + Name = "File.edit9" + }, + new + { + Id = 249, + Description = "Разрешение редактировать Файлы категории 10 (Сервис по заканчиванию скважины)", + Name = "File.edit10" + }, + new + { + Id = 250, + Description = "Разрешение редактировать Файлы категории 11 (Рапорт)", + Name = "File.edit11" + }, + new + { + Id = 251, + Description = "Разрешение редактировать Файлы категории 12", + Name = "File.edit12" + }, + new + { + Id = 252, + Description = "Разрешение редактировать Файлы категории 12", + Name = "File.edit13" + }, + new + { + Id = 253, + Description = "Разрешение редактировать Файлы категории 13", + Name = "File.edit14" + }, + new + { + Id = 254, + Description = "Разрешение редактировать Файлы категории 14", + Name = "File.edit15" + }, + new + { + Id = 255, + Description = "Разрешение редактировать Файлы категории 15", + Name = "File.edit16" + }, + new + { + Id = 256, + Description = "Разрешение редактировать Файлы категории 16", + Name = "File.edit17" + }, + new + { + Id = 257, + Description = "Разрешение редактировать Файлы категории 17", + Name = "File.edit18" + }, + new + { + Id = 258, + Description = "Разрешение редактировать Файлы категории 18", + Name = "File.edit19" + }, + new + { + Id = 259, + Description = "Разрешение редактировать Файлы категории 19", + Name = "File.edit20" + }, + new + { + Id = 260, + Description = "Разрешение редактировать Файлы категории 20", + Name = "File.edit21" + }, + new + { + Id = 261, + Description = "Разрешение редактировать Файлы категории 21", + Name = "File.edit22" + }, + new + { + Id = 262, + Description = "Разрешение редактировать Файлы категории 22", + Name = "File.edit23" + }, + new + { + Id = 263, + Description = "Разрешение редактировать Файлы категории 23", + Name = "File.edit24" + }, + new + { + Id = 264, + Description = "Разрешение редактировать Файлы категории 24", + Name = "File.edit25" + }, + new + { + Id = 265, + Description = "Разрешение редактировать Файлы категории 25", + Name = "File.edit26" + }, + new + { + Id = 266, + Description = "Разрешение редактировать Файлы категории 26", + Name = "File.edit27" + }, + new + { + Id = 267, + Description = "Разрешение редактировать Файлы категории 27", + Name = "File.edit28" + }, + new + { + Id = 268, + Description = "Разрешение редактировать Файлы категории 28", + Name = "File.edit29" + }, + new + { + Id = 269, + Description = "Разрешение редактировать Файлы категории 29", + Name = "File.edit30" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationCompanyWell", b => + { + b.Property("IdCompany") + .HasColumnType("integer") + .HasColumnName("id_company"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well"); + + b.HasKey("IdCompany", "IdWell"); + + b.HasIndex("IdWell"); + + b.ToTable("t_relation_company_well"); + + b.HasComment("отношение скважин и компаний"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserDrillingProgramPart", b => + { + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user"); + + b.Property("IdDrillingProgramPart") + .HasColumnType("integer") + .HasColumnName("id_drilling_program_part"); + + b.Property("IdUserRole") + .HasColumnType("integer") + .HasColumnName("id_role") + .HasComment("1 - publisher, 2 - approver"); + + b.HasKey("IdUser", "IdDrillingProgramPart") + .HasName("t_relation_user_drilling_program_part_pk"); + + b.HasIndex("IdDrillingProgramPart"); + + b.ToTable("t_relation_user_drilling_program_part"); + + b.HasComment("Отношение пользователей и частей ПБ"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRolePermission", b => + { + b.Property("IdUserRole") + .HasColumnType("integer") + .HasColumnName("id_user_role"); + + b.Property("IdPermission") + .HasColumnType("integer") + .HasColumnName("id_permission"); + + b.HasKey("IdUserRole", "IdPermission"); + + b.HasIndex("IdPermission"); + + b.ToTable("t_relation_user_role_permission"); + + b.HasComment("Отношение ролей пользователей и разрешений доступа"); + + b.HasData( + new + { + IdUserRole = 1100, + IdPermission = 102 + }, + new + { + IdUserRole = 1100, + IdPermission = 111 + }, + new + { + IdUserRole = 1101, + IdPermission = 101 + }, + new + { + IdUserRole = 1101, + IdPermission = 100 + }, + new + { + IdUserRole = 1102, + IdPermission = 105 + }, + new + { + IdUserRole = 1102, + IdPermission = 108 + }, + new + { + IdUserRole = 1103, + IdPermission = 104 + }, + new + { + IdUserRole = 1103, + IdPermission = 103 + }, + new + { + IdUserRole = 1104, + IdPermission = 108 + }, + new + { + IdUserRole = 1105, + IdPermission = 107 + }, + new + { + IdUserRole = 1105, + IdPermission = 106 + }, + new + { + IdUserRole = 1106, + IdPermission = 111 + }, + new + { + IdUserRole = 1107, + IdPermission = 110 + }, + new + { + IdUserRole = 1107, + IdPermission = 109 + }, + new + { + IdUserRole = 1108, + IdPermission = 114 + }, + new + { + IdUserRole = 1109, + IdPermission = 113 + }, + new + { + IdUserRole = 1109, + IdPermission = 112 + }, + new + { + IdUserRole = 1110, + IdPermission = 123 + }, + new + { + IdUserRole = 1110, + IdPermission = 114 + }, + new + { + IdUserRole = 1111, + IdPermission = 122 + }, + new + { + IdUserRole = 1111, + IdPermission = 121 + }, + new + { + IdUserRole = 1112, + IdPermission = 117 + }, + new + { + IdUserRole = 1113, + IdPermission = 105 + }, + new + { + IdUserRole = 1113, + IdPermission = 123 + }, + new + { + IdUserRole = 1113, + IdPermission = 120 + }, + new + { + IdUserRole = 1114, + IdPermission = 119 + }, + new + { + IdUserRole = 1114, + IdPermission = 118 + }, + new + { + IdUserRole = 1114, + IdPermission = 200 + }, + new + { + IdUserRole = 1115, + IdPermission = 223 + }, + new + { + IdUserRole = 1116, + IdPermission = 105 + }, + new + { + IdUserRole = 1116, + IdPermission = 102 + }, + new + { + IdUserRole = 1116, + IdPermission = 117 + }, + new + { + IdUserRole = 1116, + IdPermission = 126 + }, + new + { + IdUserRole = 1117, + IdPermission = 125 + }, + new + { + IdUserRole = 1117, + IdPermission = 124 + }, + new + { + IdUserRole = 1200, + IdPermission = 203 + }, + new + { + IdUserRole = 1200, + IdPermission = 230 + }, + new + { + IdUserRole = 1201, + IdPermission = 202 + }, + new + { + IdUserRole = 1201, + IdPermission = 203 + }, + new + { + IdUserRole = 1201, + IdPermission = 220 + }, + new + { + IdUserRole = 1202, + IdPermission = 203 + }, + new + { + IdUserRole = 1202, + IdPermission = 220 + }, + new + { + IdUserRole = 1202, + IdPermission = 236 + }, + new + { + IdUserRole = 1202, + IdPermission = 212 + }, + new + { + IdUserRole = 1203, + IdPermission = 235 + }, + new + { + IdUserRole = 1204, + IdPermission = 202 + }, + new + { + IdUserRole = 1204, + IdPermission = 203 + }, + new + { + IdUserRole = 1205, + IdPermission = 215 + }, + new + { + IdUserRole = 1206, + IdPermission = 203 + }, + new + { + IdUserRole = 1206, + IdPermission = 206 + }, + new + { + IdUserRole = 1207, + IdPermission = 205 + }, + new + { + IdUserRole = 1208, + IdPermission = 218 + }, + new + { + IdUserRole = 1209, + IdPermission = 217 + }, + new + { + IdUserRole = 1210, + IdPermission = 203 + }, + new + { + IdUserRole = 1210, + IdPermission = 230 + }, + new + { + IdUserRole = 1210, + IdPermission = 219 + }, + new + { + IdUserRole = 1211, + IdPermission = 203 + }, + new + { + IdUserRole = 1211, + IdPermission = 220 + }, + new + { + IdUserRole = 1211, + IdPermission = 239 + }, + new + { + IdUserRole = 1212, + IdPermission = 238 + }, + new + { + IdUserRole = 1212, + IdPermission = 237 + }, + new + { + IdUserRole = 1213, + IdPermission = 203 + }, + new + { + IdUserRole = 1213, + IdPermission = 239 + }, + new + { + IdUserRole = 1213, + IdPermission = 212 + }, + new + { + IdUserRole = 1214, + IdPermission = 211 + }, + new + { + IdUserRole = 1214, + IdPermission = 210 + }, + new + { + IdUserRole = 1215, + IdPermission = 203 + }, + new + { + IdUserRole = 1215, + IdPermission = 222 + }, + new + { + IdUserRole = 1216, + IdPermission = 221 + }, + new + { + IdUserRole = 1217, + IdPermission = 226 + }, + new + { + IdUserRole = 1218, + IdPermission = 225 + }, + new + { + IdUserRole = 1218, + IdPermission = 224 + }, + new + { + IdUserRole = 1219, + IdPermission = 203 + }, + new + { + IdUserRole = 1219, + IdPermission = 206 + }, + new + { + IdUserRole = 1219, + IdPermission = 230 + }, + new + { + IdUserRole = 1219, + IdPermission = 232 + }, + new + { + IdUserRole = 1220, + IdPermission = 203 + }, + new + { + IdUserRole = 1220, + IdPermission = 228 + }, + new + { + IdUserRole = 1221, + IdPermission = 202 + }, + new + { + IdUserRole = 1221, + IdPermission = 203 + }, + new + { + IdUserRole = 1221, + IdPermission = 220 + }, + new + { + IdUserRole = 1221, + IdPermission = 234 + }, + new + { + IdUserRole = 1501, + IdPermission = 214 + }, + new + { + IdUserRole = 1501, + IdPermission = 213 + }, + new + { + IdUserRole = 1502, + IdPermission = 207 + }, + new + { + IdUserRole = 1502, + IdPermission = 208 + }, + new + { + IdUserRole = 2000, + IdPermission = 205 + }, + new + { + IdUserRole = 2000, + IdPermission = 204 + }, + new + { + IdUserRole = 2000, + IdPermission = 245 + }, + new + { + IdUserRole = 2001, + IdPermission = 244 + }, + new + { + IdUserRole = 2001, + IdPermission = 245 + }, + new + { + IdUserRole = 2002, + IdPermission = 244 + }, + new + { + IdUserRole = 2002, + IdPermission = 246 + }, + new + { + IdUserRole = 2002, + IdPermission = 237 + }, + new + { + IdUserRole = 2002, + IdPermission = 238 + }, + new + { + IdUserRole = 2003, + IdPermission = 240 + }, + new + { + IdUserRole = 2003, + IdPermission = 217 + }, + new + { + IdUserRole = 2003, + IdPermission = 216 + }, + new + { + IdUserRole = 2004, + IdPermission = 242 + }, + new + { + IdUserRole = 2004, + IdPermission = 217 + }, + new + { + IdUserRole = 2004, + IdPermission = 216 + }, + new + { + IdUserRole = 2004, + IdPermission = 205 + }, + new + { + IdUserRole = 2004, + IdPermission = 204 + }, + new + { + IdUserRole = 2005, + IdPermission = 247 + }, + new + { + IdUserRole = 2005, + IdPermission = 205 + }, + new + { + IdUserRole = 2005, + IdPermission = 204 + }, + new + { + IdUserRole = 2006, + IdPermission = 243 + }, + new + { + IdUserRole = 2006, + IdPermission = 205 + }, + new + { + IdUserRole = 2006, + IdPermission = 204 + }, + new + { + IdUserRole = 2007, + IdPermission = 241 + }, + new + { + IdUserRole = 2007, + IdPermission = 205 + }, + new + { + IdUserRole = 2007, + IdPermission = 204 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRoleUserRole", b => + { + b.Property("Id") + .HasColumnType("integer") + .HasColumnName("id_user_role"); + + b.Property("IdInclude") + .HasColumnType("integer") + .HasColumnName("id_include_user_role"); + + b.HasKey("Id", "IdInclude") + .HasName("t_relation_user_role_user_role_pk"); + + b.HasIndex("IdInclude"); + + b.ToTable("t_relation_user_role_user_role"); + + b.HasComment("Отношение ролей к ролям"); + + b.HasData( + new + { + Id = 1101, + IdInclude = 1100 + }, + new + { + Id = 1103, + IdInclude = 1102 + }, + new + { + Id = 1105, + IdInclude = 1104 + }, + new + { + Id = 1107, + IdInclude = 1106 + }, + new + { + Id = 1109, + IdInclude = 1108 + }, + new + { + Id = 1111, + IdInclude = 1110 + }, + new + { + Id = 1114, + IdInclude = 1113 + }, + new + { + Id = 1117, + IdInclude = 1116 + }, + new + { + Id = 1203, + IdInclude = 1202 + }, + new + { + Id = 1207, + IdInclude = 1206 + }, + new + { + Id = 1209, + IdInclude = 1208 + }, + new + { + Id = 1212, + IdInclude = 1211 + }, + new + { + Id = 1214, + IdInclude = 1213 + }, + new + { + Id = 1216, + IdInclude = 1215 + }, + new + { + Id = 1218, + IdInclude = 1217 + }, + new + { + Id = 2000, + IdInclude = 1200 + }, + new + { + Id = 2000, + IdInclude = 1201 + }, + new + { + Id = 2000, + IdInclude = 1202 + }, + new + { + Id = 2000, + IdInclude = 1204 + }, + new + { + Id = 2000, + IdInclude = 1205 + }, + new + { + Id = 2000, + IdInclude = 1206 + }, + new + { + Id = 2000, + IdInclude = 1208 + }, + new + { + Id = 2000, + IdInclude = 1210 + }, + new + { + Id = 2000, + IdInclude = 1211 + }, + new + { + Id = 2000, + IdInclude = 1213 + }, + new + { + Id = 2000, + IdInclude = 1215 + }, + new + { + Id = 2000, + IdInclude = 1217 + }, + new + { + Id = 2000, + IdInclude = 1219 + }, + new + { + Id = 2000, + IdInclude = 1220 + }, + new + { + Id = 2000, + IdInclude = 1221 + }, + new + { + Id = 2000, + IdInclude = 1500 + }, + new + { + Id = 2000, + IdInclude = 1501 + }, + new + { + Id = 2000, + IdInclude = 1502 + }, + new + { + Id = 2001, + IdInclude = 1500 + }, + new + { + Id = 2001, + IdInclude = 1501 + }, + new + { + Id = 2001, + IdInclude = 1502 + }, + new + { + Id = 2002, + IdInclude = 1500 + }, + new + { + Id = 2002, + IdInclude = 1501 + }, + new + { + Id = 2002, + IdInclude = 1502 + }, + new + { + Id = 2003, + IdInclude = 1500 + }, + new + { + Id = 2003, + IdInclude = 1501 + }, + new + { + Id = 2003, + IdInclude = 1502 + }, + new + { + Id = 2004, + IdInclude = 1500 + }, + new + { + Id = 2004, + IdInclude = 1501 + }, + new + { + Id = 2004, + IdInclude = 1502 + }, + new + { + Id = 2005, + IdInclude = 1500 + }, + new + { + Id = 2005, + IdInclude = 1501 + }, + new + { + Id = 2005, + IdInclude = 1502 + }, + new + { + Id = 2006, + IdInclude = 1500 + }, + new + { + Id = 2006, + IdInclude = 1501 + }, + new + { + Id = 2006, + IdInclude = 1502 + }, + new + { + Id = 2007, + IdInclude = 1500 + }, + new + { + Id = 2007, + IdInclude = 1501 + }, + new + { + Id = 2007, + IdInclude = 1502 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserUserRole", b => + { + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user"); + + b.Property("IdUserRole") + .HasColumnType("integer") + .HasColumnName("id_user_role"); + + b.HasKey("IdUser", "IdUserRole"); + + b.HasIndex("IdUserRole"); + + b.ToTable("t_relation_user_user_role"); + + b.HasComment("Отношение пользователей и ролей"); + + b.HasData( + new + { + IdUser = 1, + IdUserRole = 1 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.ReportProperty", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Begin") + .HasColumnType("timestamp with time zone") + .HasColumnName("begin"); + + b.Property("End") + .HasColumnType("timestamp with time zone") + .HasColumnName("end") + .HasComment("timestamp with time zone"); + + b.Property("Format") + .HasColumnType("integer") + .HasColumnName("format") + .HasComment("Формат отчета"); + + b.Property("IdFile") + .HasColumnType("integer") + .HasColumnName("id_file") + .HasComment("id файла-родителя"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("Step") + .HasColumnType("integer") + .HasColumnName("step") + .HasComment("размер шага в секундах"); + + b.HasKey("Id"); + + b.HasIndex("IdFile"); + + b.HasIndex("IdWell"); + + b.ToTable("t_report_property"); + + b.HasComment("Отчеты с данными по буровым"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.SetpointsRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Comment") + .HasColumnType("text") + .HasColumnName("comment") + .HasComment("комментарий для оператора"); + + b.Property("IdAuthor") + .HasColumnType("integer") + .HasColumnName("id_author") + .HasComment("Id пользователя, загрузившего файл"); + + b.Property("IdState") + .HasColumnType("integer") + .HasColumnName("id_state") + .HasComment("0: неизвестно, 1:ожидает отправки, 2: отправлено, 3: принято оператором, 4: отклонено оператором, 5: устарело"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("id скважины"); + + b.Property("ObsolescenceSec") + .HasColumnType("integer") + .HasColumnName("obsolescence") + .HasComment("сек. до устаревания"); + + b.Property>("Setpoints") + .HasColumnType("jsonb") + .HasColumnName("setpoint_set") + .HasComment("Набор уставок"); + + b.Property("UploadDate") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.HasKey("Id"); + + b.HasIndex("IdAuthor"); + + b.HasIndex("IdWell"); + + b.ToTable("t_setpoints_rquest"); + + b.HasComment("Запросы на изменение уставок панели оператора"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Telemetry", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Info") + .HasColumnType("jsonb") + .HasColumnName("info") + .HasComment("Информация с панели о скважине"); + + b.Property("RemoteUid") + .HasColumnType("text") + .HasColumnName("remote_uid") + .HasComment("Идентификатор передающего устройства. Может повторяться в списке, так как комплекты оборудования переезжают от скв. к скв."); + + b.Property("TimeZone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.HasIndex(new[] { "RemoteUid" }, "t_telemetry_remote_uid_index"); + + b.ToTable("t_telemetry"); + + b.HasComment("таблица привязки телеметрии от комплектов к конкретной скважине."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryAnalysis", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("DurationSec") + .HasColumnType("integer") + .HasColumnName("duration_sec") + .HasComment("Кол-во секунд после предыдущей операции"); + + b.Property("IdOperation") + .HasColumnType("integer") + .HasColumnName("id_operation"); + + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IsBitPositionDecreasing") + .HasColumnType("boolean") + .HasColumnName("is_bit_position_decreasing") + .HasComment("Долото поднимается"); + + b.Property("IsBitPositionIncreasing") + .HasColumnType("boolean") + .HasColumnName("is_bit_position_increasing") + .HasComment("Долото спускается"); + + b.Property("IsBitPositionLt20") + .HasColumnType("boolean") + .HasColumnName("is_bit_posision_lt_20") + .HasComment("Положение долота меньше 20м"); + + b.Property("IsBlockPositionDecreasing") + .HasColumnType("boolean") + .HasColumnName("is_block_posision_decresing") + .HasComment("Талевый блок поднимается"); + + b.Property("IsBlockPositionIncreasing") + .HasColumnType("boolean") + .HasColumnName("is_block_posision_incresing") + .HasComment("Талевый блок спускается"); + + b.Property("IsHookWeightLt3") + .HasColumnType("boolean") + .HasColumnName("is_hook_weight_lt_3") + .HasComment("Вес на крюке менее 3т"); + + b.Property("IsHookWeightNotChanges") + .HasColumnType("boolean") + .HasColumnName("is_hook_weight_not_changes") + .HasComment("Вес на крюке не меняется"); + + b.Property("IsPressureGt20") + .HasColumnType("boolean") + .HasColumnName("is_pressure_gt_20") + .HasComment("Давление более 20"); + + b.Property("IsPressureLt20") + .HasColumnType("boolean") + .HasColumnName("is_pressure_lt_20") + .HasComment("Давление менее 20"); + + b.Property("IsRotorSpeedGt5") + .HasColumnType("boolean") + .HasColumnName("is_rotor_speed_gt_3") + .HasComment("Обороты ротора выше 3"); + + b.Property("IsRotorSpeedLt5") + .HasColumnType("boolean") + .HasColumnName("is_rotor_speed_lt_3") + .HasComment("Обороты ротора ниже 3"); + + b.Property("IsWellDepthDecreasing") + .HasColumnType("boolean") + .HasColumnName("is_well_depth_decreasing") + .HasComment("Глубина забоя не увеличивается"); + + b.Property("IsWellDepthIncreasing") + .HasColumnType("boolean") + .HasColumnName("is_well_depth_increasing") + .HasComment("Глубина забоя увеличивается"); + + b.Property("OperationEndDepth") + .HasColumnType("double precision") + .HasColumnName("operation_end_depth") + .HasComment("Глубина, на которой закончилась операция"); + + b.Property("OperationStartDepth") + .HasColumnType("double precision") + .HasColumnName("operation_start_depth") + .HasComment("Глубина, на которой началась операция"); + + b.Property("UnixDate") + .HasColumnType("bigint") + .HasColumnName("unix_date") + .HasComment("Unix timestamp для Linq запросов с вычислением дат"); + + b.HasKey("Id"); + + b.HasIndex("IdOperation"); + + b.HasIndex("IdTelemetry"); + + b.ToTable("t_telemetry_analysis"); + + b.HasComment("События на скважине"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSaub", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date") + .HasComment("'2021-10-19 18:23:54+05'"); + + b.Property("AxialLoad") + .HasColumnType("real") + .HasColumnName("axial_load") + .HasComment("Осевая нагрузка"); + + b.Property("AxialLoadLimitMax") + .HasColumnType("real") + .HasColumnName("axial_load_limit_max") + .HasComment("Осевая нагрузка. Аварийная макс."); + + b.Property("AxialLoadSp") + .HasColumnType("real") + .HasColumnName("axial_load_sp") + .HasComment("Осевая нагрузка. Задание"); + + b.Property("BitDepth") + .HasColumnType("real") + .HasColumnName("bit_depth") + .HasComment("Положение инструмента"); + + b.Property("BlockPosition") + .HasColumnType("real") + .HasColumnName("block_position") + .HasComment("Высота талевого блока"); + + b.Property("BlockPositionMax") + .HasColumnType("real") + .HasColumnName("block_position_max") + .HasComment("Талевый блок. Макс положение"); + + b.Property("BlockPositionMin") + .HasColumnType("real") + .HasColumnName("block_position_min") + .HasComment("Талевый блок. Мин положение"); + + b.Property("BlockSpeed") + .HasColumnType("real") + .HasColumnName("block_speed") + .HasComment("Скорость талевого блока"); + + b.Property("BlockSpeedSp") + .HasColumnType("real") + .HasColumnName("block_speed_sp") + .HasComment("Скорости талевого блока. Задание"); + + b.Property("BlockSpeedSpDevelop") + .HasColumnType("real") + .HasColumnName("block_speed_sp_develop") + .HasComment("Талевый блок. Задание скорости для проработки"); + + b.Property("BlockSpeedSpRotor") + .HasColumnType("real") + .HasColumnName("block_speed_sp_rotor") + .HasComment("Талевый блок. Задание скорости для роторного бурения"); + + b.Property("BlockSpeedSpSlide") + .HasColumnType("real") + .HasColumnName("block_speed_sp_slide") + .HasComment("Талевый блок. Задание скорости для режима слайда"); + + b.Property("Flow") + .HasColumnType("real") + .HasColumnName("flow") + .HasComment("Расход"); + + b.Property("FlowDeltaLimitMax") + .HasColumnType("real") + .HasColumnName("flow_delta_limit_max") + .HasComment("Расход. Аварийный макс."); + + b.Property("FlowIdle") + .HasColumnType("real") + .HasColumnName("flow_idle") + .HasComment("Расход. Холостой ход"); + + b.Property("HookWeight") + .HasColumnType("real") + .HasColumnName("hook_weight") + .HasComment("Вес на крюке"); + + b.Property("HookWeightIdle") + .HasColumnType("real") + .HasColumnName("hook_weight_idle") + .HasComment("Вес на крюке. Холостой ход"); + + b.Property("HookWeightLimitMax") + .HasColumnType("real") + .HasColumnName("hook_weight_limit_max") + .HasComment("Вес на крюке. Затяжка"); + + b.Property("HookWeightLimitMin") + .HasColumnType("real") + .HasColumnName("hook_weight_limit_min") + .HasComment("Вес на крюке. Посадка"); + + b.Property("IdFeedRegulator") + .HasColumnType("smallint") + .HasColumnName("id_feed_regulator") + .HasComment("Текущий критерий бурения"); + + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user") + .HasComment("Пользователь САУБ"); + + b.Property("Mode") + .HasColumnType("smallint") + .HasColumnName("mode") + .HasComment("Режим САУБ"); + + b.Property("Mse") + .HasColumnType("real") + .HasColumnName("mse") + .HasComment("MSE"); + + b.Property("MseState") + .HasColumnType("smallint") + .HasColumnName("mse_state") + .HasComment("Текущее состояние работы MSE"); + + b.Property("Pressure") + .HasColumnType("real") + .HasColumnName("pressure") + .HasComment("Давление"); + + b.Property("PressureDeltaLimitMax") + .HasColumnType("real") + .HasColumnName("pressure_delta_limit_max") + .HasComment("Давление дифф. Аварийное макс."); + + b.Property("PressureIdle") + .HasColumnType("real") + .HasColumnName("pressure_idle") + .HasComment("Давление. Холостой ход"); + + b.Property("PressureSp") + .HasColumnType("real") + .HasColumnName("pressure_sp") + .HasComment("Давление. Задание"); + + b.Property("PressureSpDevelop") + .HasColumnType("real") + .HasColumnName("pressure_sp_develop") + .HasComment("Давление. Задание для проработки"); + + b.Property("PressureSpRotor") + .HasColumnType("real") + .HasColumnName("pressure_sp_rotor") + .HasComment("Давление. Задание для роторного бурения"); + + b.Property("PressureSpSlide") + .HasColumnType("real") + .HasColumnName("pressure_sp_slide") + .HasComment("Давление. Задание для режима слайда"); + + b.Property("RotorSpeed") + .HasColumnType("real") + .HasColumnName("rotor_speed") + .HasComment("Обороты ротора"); + + b.Property("RotorTorque") + .HasColumnType("real") + .HasColumnName("rotor_torque") + .HasComment("Момент на роторе"); + + b.Property("RotorTorqueIdle") + .HasColumnType("real") + .HasColumnName("rotor_torque_idle") + .HasComment("Момент на роторе. Холостой ход"); + + b.Property("RotorTorqueLimitMax") + .HasColumnType("real") + .HasColumnName("rotor_torque_limit_max") + .HasComment("Момент на роторе. Аварийный макс."); + + b.Property("RotorTorqueSp") + .HasColumnType("real") + .HasColumnName("rotor_torque_sp") + .HasComment("Момент на роторе. Задание"); + + b.Property("WellDepth") + .HasColumnType("real") + .HasColumnName("well_depth") + .HasComment("Глубина забоя"); + + b.HasKey("IdTelemetry", "DateTime"); + + b.ToTable("t_telemetry_data_saub"); + + b.HasComment("набор основных данных по SAUB"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSpin", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date") + .HasComment("'2021-10-19 18:23:54+05'"); + + b.Property("BreakAngleK") + .HasColumnType("real") + .HasColumnName("break_angle_k") + .HasComment("Коэффициент для расчёта за какой угол нужно тормозить"); + + b.Property("BreakAngleLeft") + .HasColumnType("real") + .HasColumnName("break_angle_left") + .HasComment("Угол торможения влево при работе по моменту"); + + b.Property("EncoderResolution") + .HasColumnType("real") + .HasColumnName("encoder_resolution") + .HasComment("Разрешение энкодера"); + + b.Property("Mode") + .HasColumnType("smallint") + .HasColumnName("mode") + .HasComment("Выбранный режим управления"); + + b.Property("PidMuxTorqueLeftLimit") + .HasColumnType("real") + .HasColumnName("pid_mux_torque_left_limit") + .HasComment(" Момент при котором определяется ехать назад по моменту или по скорости"); + + b.Property("PositionRight") + .HasColumnType("real") + .HasColumnName("position_right") + .HasComment("Крайний правый угол осцилляции"); + + b.Property("PositionZero") + .HasColumnType("real") + .HasColumnName("position_zero") + .HasComment("Нулевая позиция осцилляции"); + + b.Property("Ratio") + .HasColumnType("real") + .HasColumnName("ratio") + .HasComment(" Коэффициент редукции редуктора"); + + b.Property("ReverseKTorque") + .HasColumnType("real") + .HasColumnName("reverse_k_torque") + .HasComment("Коэффициент на который умножается момент, для того чтобы система поняла что мы движемся в обратную сторону"); + + b.Property("ReverseSpeedSpZeroTime") + .HasColumnType("smallint") + .HasColumnName("reverse_speed_sp_zero_time") + .HasComment("Время выдачи сигнала нулевой скорости на при смене направления"); + + b.Property("RevolsLeftLimit") + .HasColumnType("real") + .HasColumnName("revols_left_limit") + .HasComment("Ограничение числа оборотов влево"); + + b.Property("RevolsLeftTotal") + .HasColumnType("real") + .HasColumnName("revols_left_total") + .HasComment("Суммарное количество оборотов влево"); + + b.Property("RevolsRightLimit") + .HasColumnType("real") + .HasColumnName("revols_right_limit") + .HasComment("Ограничение числа оборотов вправо"); + + b.Property("RevolsRightTotal") + .HasColumnType("real") + .HasColumnName("revols_right_total") + .HasComment("Суммарное количество оборотов вправо"); + + b.Property("RotorTorqueAvg") + .HasColumnType("real") + .HasColumnName("rotor_torque_avg") + .HasComment("Момент в роторе средний"); + + b.Property("SpeedLeftSp") + .HasColumnType("real") + .HasColumnName("speed_left_sp") + .HasComment("Заданная скорость вращения влево"); + + b.Property("SpeedRightSp") + .HasColumnType("real") + .HasColumnName("speed_right_sp") + .HasComment("Заданная скорость вращения вправо"); + + b.Property("State") + .HasColumnType("smallint") + .HasColumnName("state") + .HasComment("Переменная этапа"); + + b.Property("TopDriveSpeed") + .HasColumnType("real") + .HasColumnName("top_drive_speed") + .HasComment("Скорость СВП"); + + b.Property("TopDriveSpeedErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_speed_err"); + + b.Property("TopDriveSpeedMax") + .HasColumnType("real") + .HasColumnName("top_drive_speed_max") + .HasComment("верхний предел"); + + b.Property("TopDriveSpeedMin") + .HasColumnType("real") + .HasColumnName("top_drive_speed_min") + .HasComment("нижний предел"); + + b.Property("TopDriveSpeedOffset") + .HasColumnType("real") + .HasColumnName("top_drive_speed_offset") + .HasComment("смещение"); + + b.Property("TopDriveSpeedSpFrom") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from") + .HasComment("Заданная скорость c СВП"); + + b.Property("TopDriveSpeedSpFromErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_speed_sp_from_err"); + + b.Property("TopDriveSpeedSpFromMax") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from_max"); + + b.Property("TopDriveSpeedSpFromMin") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from_min"); + + b.Property("TopDriveSpeedSpFromOffset") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_from_offset"); + + b.Property("TopDriveSpeedSpTo") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to") + .HasComment("Задание скорости на СВП"); + + b.Property("TopDriveSpeedSpToErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_speed_sp_to_err"); + + b.Property("TopDriveSpeedSpToMax") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to_max"); + + b.Property("TopDriveSpeedSpToMin") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to_min"); + + b.Property("TopDriveSpeedSpToOffset") + .HasColumnType("real") + .HasColumnName("top_drive_speed_sp_to_offset"); + + b.Property("TopDriveTorque") + .HasColumnType("real") + .HasColumnName("top_drive_torque") + .HasComment("Момент СВП"); + + b.Property("TopDriveTorqueErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_torque_err"); + + b.Property("TopDriveTorqueMax") + .HasColumnType("real") + .HasColumnName("top_drive_torque_max"); + + b.Property("TopDriveTorqueMin") + .HasColumnType("real") + .HasColumnName("top_drive_torque_min"); + + b.Property("TopDriveTorqueOffset") + .HasColumnType("real") + .HasColumnName("top_drive_torque_offset"); + + b.Property("TopDriveTorqueSpFrom") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from") + .HasComment("Заданный момент c СВП"); + + b.Property("TopDriveTorqueSpFromErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_torque_sp_from_err"); + + b.Property("TopDriveTorqueSpFromMax") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from_max"); + + b.Property("TopDriveTorqueSpFromMin") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from_min"); + + b.Property("TopDriveTorqueSpFromOffset") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_from_offset"); + + b.Property("TopDriveTorqueSpTo") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to") + .HasComment("Задание момента на СВП"); + + b.Property("TopDriveTorqueSpToErr") + .HasColumnType("smallint") + .HasColumnName("top_drive_torque_sp_to_err"); + + b.Property("TopDriveTorqueSpToMax") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to_max"); + + b.Property("TopDriveTorqueSpToMin") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to_min"); + + b.Property("TopDriveTorqueSpToOffset") + .HasColumnType("real") + .HasColumnName("top_drive_torque_sp_to_offset"); + + b.Property("TorqueLeftLimit") + .HasColumnType("real") + .HasColumnName("torque_left_limit") + .HasComment("Ограничение крутящего момента влево"); + + b.Property("TorqueRampTime") + .HasColumnType("real") + .HasColumnName("torque_ramp_time") + .HasComment("Время нарастания момента"); + + b.Property("TorqueRightLimit") + .HasColumnType("real") + .HasColumnName("torque_right_limit") + .HasComment("Ограничение крутящего момента вправо"); + + b.Property("TorqueStarting") + .HasColumnType("real") + .HasColumnName("torque_starting") + .HasComment("Страгивающий момент"); + + b.Property("TurnLeftOnceByAngle") + .HasColumnType("real") + .HasColumnName("turn_left_once_by_angle") + .HasComment("Доворот по градусам единожды влево"); + + b.Property("TurnLeftOnceByRevols") + .HasColumnType("real") + .HasColumnName("turn_left_once_by_revols") + .HasComment("Доворот по оборотам единожды влево"); + + b.Property("TurnLeftOnceByTorque") + .HasColumnType("real") + .HasColumnName("turn_left_once_by_torque") + .HasComment("Доворот по моменту единожды влево"); + + b.Property("TurnRightOnceByAngle") + .HasColumnType("real") + .HasColumnName("turn_right_once_by_angle") + .HasComment("Доворот по градусам единожды вправо"); + + b.Property("TurnRightOnceByRevols") + .HasColumnType("real") + .HasColumnName("turn_right_once_by_revols") + .HasComment("Доворот по оборотам единожды вправо"); + + b.Property("TurnRightOnceByTorque") + .HasColumnType("real") + .HasColumnName("turn_right_once_by_torque") + .HasComment("Доворот по моменту единожды вправо"); + + b.Property("UnlockBySectorOut") + .HasColumnType("real") + .HasColumnName("unlock_by_sector_out") + .HasComment(" Градус отклонения от сектора для автоматического сброса блокировки"); + + b.Property("Ver") + .HasColumnType("real") + .HasColumnName("ver") + .HasComment("Версия ПО ПЛК"); + + b.Property("W2800") + .HasColumnType("smallint") + .HasColumnName("w2800") + .HasComment("Установка нуля энкодера"); + + b.Property("W2808") + .HasColumnType("smallint") + .HasColumnName("w2808") + .HasComment("Неисправность энкодера"); + + b.Property("W2810") + .HasColumnType("smallint") + .HasColumnName("w2810") + .HasComment(" автоматический сброс блокировки"); + + b.HasKey("IdTelemetry", "DateTime"); + + b.ToTable("t_telemetry_data_spin"); + + b.HasComment("набор основных данных по SpinMaster"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryEvent", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdEvent") + .HasColumnType("integer") + .HasColumnName("id_event"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category"); + + b.Property("MessageTemplate") + .HasColumnType("text") + .HasColumnName("message_template"); + + b.HasKey("IdTelemetry", "IdEvent"); + + b.ToTable("t_telemetry_event"); + + b.HasComment("Справочник событий. События формируют сообщения. Разделено по версиям посылок от телеметрии."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryMessage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Arg0") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg0") + .HasComment("Аргумент №0 для вставки в шаблон сообщения"); + + b.Property("Arg1") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg1"); + + b.Property("Arg2") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg2"); + + b.Property("Arg3") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("arg3"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.Property("IdEvent") + .HasColumnType("integer") + .HasColumnName("id_event"); + + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdTelemetryUser") + .HasColumnType("integer") + .HasColumnName("id_telemetry_user") + .HasComment("Пользователь панели отправляющей телеметрию. не пользователь облака."); + + b.Property("WellDepth") + .HasColumnType("double precision") + .HasColumnName("well_depth"); + + b.HasKey("Id"); + + b.HasIndex("IdTelemetry"); + + b.ToTable("t_telemetry_message"); + + b.HasComment("Сообщения на буровых"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryUser", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdUser") + .HasColumnType("integer") + .HasColumnName("id_user"); + + b.Property("Level") + .HasColumnType("integer") + .HasColumnName("level"); + + b.Property("Name") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("name"); + + b.Property("Patronymic") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("patronymic"); + + b.Property("Surname") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("surname"); + + b.HasKey("IdTelemetry", "IdUser"); + + b.ToTable("t_telemetry_user"); + + b.HasComment("Пользователи панели САУБ. Для сообщений."); + }); + + modelBuilder.Entity("AsbCloudDb.Model.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Email") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("email") + .HasComment("должность"); + + b.Property("IdCompany") + .HasColumnType("integer") + .HasColumnName("id_company"); + + b.Property("IdState") + .HasColumnType("smallint") + .HasColumnName("state") + .HasComment("состояние:\n100 - удален"); + + b.Property("Login") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("login"); + + b.Property("Name") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("name") + .HasComment("имя"); + + b.Property("PasswordHash") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("password_hash") + .HasComment("соленый хэш пароля.\nпервые 5 символов - соль"); + + b.Property("Patronymic") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("patronymic") + .HasComment("отчество"); + + b.Property("Phone") + .HasMaxLength(50) + .HasColumnType("character varying(50)") + .HasColumnName("phone") + .HasComment("номер телефона"); + + b.Property("Position") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("position") + .HasComment("email"); + + b.Property("Surname") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("surname") + .HasComment("фамилия"); + + b.HasKey("Id"); + + b.HasIndex("IdCompany"); + + b.HasIndex("Login") + .IsUnique(); + + b.ToTable("t_user"); + + b.HasComment("Пользователи облака"); + + b.HasData( + new + { + Id = 1, + IdCompany = 1, + Login = "dev", + Name = "Разработчик", + PasswordHash = "Vlcj|4fa529103dde7ff72cfe76185f344d4aa87931f8e1b2044e8a7739947c3d18923464eaad93843e4f809c5e126d013072" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.UserRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.Property("IdType") + .HasColumnType("integer") + .HasColumnName("id_type") + .HasComment("0-роль из стандартной матрицы, \n1-специальная роль для какого-либо пользователя"); + + b.HasKey("Id"); + + b.ToTable("t_user_role"); + + b.HasComment("Роли пользователей в системе"); + + b.HasData( + new + { + Id = 1, + Caption = "root", + IdType = 1 + }, + new + { + Id = 1100, + Caption = "admin_cluster.view", + IdType = 1 + }, + new + { + Id = 1101, + Caption = "admin_cluster.edit", + IdType = 1 + }, + new + { + Id = 1102, + Caption = "admin_company.view", + IdType = 1 + }, + new + { + Id = 1103, + Caption = "admin_company.edit", + IdType = 1 + }, + new + { + Id = 1104, + Caption = "admin_company_type.view", + IdType = 1 + }, + new + { + Id = 1105, + Caption = "admin_company_type.edit", + IdType = 1 + }, + new + { + Id = 1106, + Caption = "admin_deposit.view", + IdType = 1 + }, + new + { + Id = 1107, + Caption = "admin_deposit.edit", + IdType = 1 + }, + new + { + Id = 1108, + Caption = "admin_permission.view", + IdType = 1 + }, + new + { + Id = 1109, + Caption = "admin_permission.edit", + IdType = 1 + }, + new + { + Id = 1110, + Caption = "admin_role.view", + IdType = 1 + }, + new + { + Id = 1111, + Caption = "admin_role.edit", + IdType = 1 + }, + new + { + Id = 1112, + Caption = "admin_telemetry.view", + IdType = 1 + }, + new + { + Id = 1113, + Caption = "admin_user.view", + IdType = 1 + }, + new + { + Id = 1114, + Caption = "admin_user.edit", + IdType = 1 + }, + new + { + Id = 1115, + Caption = "admin_visit_log.view", + IdType = 1 + }, + new + { + Id = 1116, + Caption = "admin_well.view", + IdType = 1 + }, + new + { + Id = 1117, + Caption = "admin_well.edit", + IdType = 1 + }, + new + { + Id = 1200, + Caption = "archive.view", + IdType = 1 + }, + new + { + Id = 1201, + Caption = "cluster.view", + IdType = 1 + }, + new + { + Id = 1202, + Caption = "composite.view", + IdType = 1 + }, + new + { + Id = 1203, + Caption = "composite.edit", + IdType = 1 + }, + new + { + Id = 1204, + Caption = "deposit.view", + IdType = 1 + }, + new + { + Id = 1205, + Caption = "document.view", + IdType = 1 + }, + new + { + Id = 1206, + Caption = "drillProcessFlow.view", + IdType = 1 + }, + new + { + Id = 1207, + Caption = "drillProcessFlow.edit", + IdType = 1 + }, + new + { + Id = 1208, + Caption = "measure.view", + IdType = 1 + }, + new + { + Id = 1209, + Caption = "measure.edit", + IdType = 1 + }, + new + { + Id = 1210, + Caption = "message.view", + IdType = 1 + }, + new + { + Id = 1211, + Caption = "operations.view", + IdType = 1 + }, + new + { + Id = 1212, + Caption = "operations.edit", + IdType = 1 + }, + new + { + Id = 1213, + Caption = "params.view", + IdType = 1 + }, + new + { + Id = 1214, + Caption = "params.edit", + IdType = 1 + }, + new + { + Id = 1215, + Caption = "report.view", + IdType = 1 + }, + new + { + Id = 1216, + Caption = "report.edit", + IdType = 1 + }, + new + { + Id = 1217, + Caption = "setpoints.view", + IdType = 1 + }, + new + { + Id = 1218, + Caption = "setpoints.edit", + IdType = 1 + }, + new + { + Id = 1219, + Caption = "telemetry.view", + IdType = 1 + }, + new + { + Id = 1220, + Caption = "telemetryAnalysis.view", + IdType = 1 + }, + new + { + Id = 1221, + Caption = "well.view", + IdType = 1 + }, + new + { + Id = 1500, + Caption = "Просмотр всего", + IdType = 1 + }, + new + { + Id = 1501, + Caption = "file.edit", + IdType = 1 + }, + new + { + Id = 1502, + Caption = "drillingProgram.edit", + IdType = 1 + }, + new + { + Id = 2000, + Caption = "Заказчик", + IdType = 0 + }, + new + { + Id = 2001, + Caption = "Супервайзер", + IdType = 0 + }, + new + { + Id = 2002, + Caption = "Буровой подрядчик", + IdType = 0 + }, + new + { + Id = 2003, + Caption = "Растворщик", + IdType = 0 + }, + new + { + Id = 2004, + Caption = "Телеметрист", + IdType = 0 + }, + new + { + Id = 2005, + Caption = "Долотный сервис", + IdType = 0 + }, + new + { + Id = 2006, + Caption = "ГТИ", + IdType = 0 + }, + new + { + Id = 2007, + Caption = "Цементирование", + IdType = 0 + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Well", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption"); + + b.Property("IdCluster") + .HasColumnType("integer") + .HasColumnName("id_cluster"); + + b.Property("IdState") + .HasColumnType("integer") + .HasColumnName("state") + .HasComment("0 - неизвестно, 1 - в работе, 2 - завершена"); + + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("IdWellType") + .HasColumnType("integer") + .HasColumnName("id_well_type"); + + b.Property("Latitude") + .HasColumnType("double precision") + .HasColumnName("latitude"); + + b.Property("Longitude") + .HasColumnType("double precision") + .HasColumnName("longitude"); + + b.Property("Timezone") + .HasColumnType("jsonb") + .HasColumnName("timezone") + .HasComment("Смещение часового пояса от UTC"); + + b.HasKey("Id"); + + b.HasIndex("IdCluster"); + + b.HasIndex("IdTelemetry") + .IsUnique(); + + b.HasIndex("IdWellType"); + + b.ToTable("t_well"); + + b.HasComment("скважины"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellComposite", b => + { + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("Id скважины получателя"); + + b.Property("IdWellSrc") + .HasColumnType("integer") + .HasColumnName("id_well_src") + .HasComment("Id скважины композита"); + + b.Property("IdWellSectionType") + .HasColumnType("integer") + .HasColumnName("id_well_section_type") + .HasComment("Id тип секции композита"); + + b.HasKey("IdWell", "IdWellSrc", "IdWellSectionType"); + + b.HasIndex("IdWellSectionType"); + + b.HasIndex("IdWellSrc"); + + b.ToTable("t_well_composite"); + + b.HasComment("Композитная скважина"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CategoryInfo") + .HasColumnType("text") + .HasColumnName("category_info") + .HasComment("Доп. информация к выбраной категории"); + + b.Property("Comment") + .HasColumnType("text") + .HasColumnName("comment") + .HasComment("Комментарий"); + + b.Property("DateStart") + .HasColumnType("timestamp with time zone") + .HasColumnName("date_start") + .HasComment("Дата начала операции"); + + b.Property("DepthEnd") + .HasColumnType("double precision") + .HasColumnName("depth_end") + .HasComment("Глубина после завершения операции, м"); + + b.Property("DepthStart") + .HasColumnType("double precision") + .HasColumnName("depth_start") + .HasComment("Глубина на начало операции, м"); + + b.Property("DurationHours") + .HasColumnType("double precision") + .HasColumnName("duration_hours") + .HasComment("Продолжительность, часы"); + + b.Property("IdCategory") + .HasColumnType("integer") + .HasColumnName("id_category") + .HasComment("Id категории операции"); + + b.Property("IdType") + .HasColumnType("integer") + .HasColumnName("id_type") + .HasComment("0 = План или 1 = Факт"); + + b.Property("IdWell") + .HasColumnType("integer") + .HasColumnName("id_well") + .HasComment("Id скважины"); + + b.Property("IdWellSectionType") + .HasColumnType("integer") + .HasColumnName("id_well_section_type") + .HasComment("Id тип секции скважины"); + + b.HasKey("Id"); + + b.HasIndex("DateStart"); + + b.HasIndex("DepthEnd"); + + b.HasIndex("IdCategory"); + + b.HasIndex("IdWell"); + + b.HasIndex("IdWellSectionType"); + + b.ToTable("t_well_operation"); + + b.HasComment("Данные по операциям на скважине"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperationCategory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Code") + .HasColumnType("integer") + .HasColumnName("code") + .HasComment("Код операции"); + + b.Property("Name") + .HasColumnType("text") + .HasColumnName("name") + .HasComment("Название категории операции"); + + b.HasKey("Id"); + + b.ToTable("t_well_operation_category"); + + b.HasComment("Справочник операций на скважине"); + + b.HasData( + new + { + Id = 1, + Code = 0, + Name = "Невозможно определить операцию" + }, + new + { + Id = 2, + Code = 0, + Name = "Роторное бурение" + }, + new + { + Id = 3, + Code = 0, + Name = "Слайдирование" + }, + new + { + Id = 4, + Code = 0, + Name = "Подъем с проработкой" + }, + new + { + Id = 5, + Code = 0, + Name = "Спуск с проработкой" + }, + new + { + Id = 6, + Code = 0, + Name = "Подъем с промывкой" + }, + new + { + Id = 7, + Code = 0, + Name = "Спуск с промывкой" + }, + new + { + Id = 8, + Code = 0, + Name = "Спуск в скважину" + }, + new + { + Id = 9, + Code = 0, + Name = "Спуск с вращением" + }, + new + { + Id = 10, + Code = 0, + Name = "Подъем из скважины" + }, + new + { + Id = 11, + Code = 0, + Name = "Подъем с вращением" + }, + new + { + Id = 12, + Code = 0, + Name = "Промывка в покое" + }, + new + { + Id = 13, + Code = 0, + Name = "Промывка с вращением" + }, + new + { + Id = 14, + Code = 0, + Name = "Удержание в клиньях" + }, + new + { + Id = 15, + Code = 0, + Name = "Неподвижное состояние" + }, + new + { + Id = 16, + Code = 0, + Name = "Вращение без циркуляции" + }, + new + { + Id = 17, + Code = 0, + Name = "На поверхности" + }, + new + { + Id = 1001, + Code = 0, + Name = "Бурение" + }, + new + { + Id = 1002, + Code = 0, + Name = "ГИС" + }, + new + { + Id = 1003, + Code = 0, + Name = "ГФР" + }, + new + { + Id = 1004, + Code = 0, + Name = "Монтаж ПВО" + }, + new + { + Id = 1005, + Code = 0, + Name = "Демонтаж ПВО" + }, + new + { + Id = 1006, + Code = 0, + Name = "Установка ФА" + }, + new + { + Id = 1007, + Code = 0, + Name = "Оборудование устья" + }, + new + { + Id = 1008, + Code = 0, + Name = "ОЗЦ" + }, + new + { + Id = 1011, + Code = 0, + Name = "Начало цикла строительства скважины" + }, + new + { + Id = 1012, + Code = 0, + Name = "Окончание цикла строительства скважины" + }, + new + { + Id = 1013, + Code = 0, + Name = "Опрессовка ПВО" + }, + new + { + Id = 1014, + Code = 0, + Name = "Опрессовка Ц.К." + }, + new + { + Id = 1015, + Code = 0, + Name = "Опрессовка ВЗД" + }, + new + { + Id = 1016, + Code = 0, + Name = "Перевод скв на другой тип промывочной жидкости" + }, + new + { + Id = 1017, + Code = 0, + Name = "Перезапись каротажа" + }, + new + { + Id = 1018, + Code = 0, + Name = "Перетяжка талевого каната" + }, + new + { + Id = 1019, + Code = 0, + Name = "Наращивание, промывка" + }, + new + { + Id = 1020, + Code = 0, + Name = "Подъем инструмента" + }, + new + { + Id = 1021, + Code = 0, + Name = "Подъем инструмента с промывкой" + }, + new + { + Id = 1022, + Code = 0, + Name = "Обратная проработка" + }, + new + { + Id = 1023, + Code = 0, + Name = "Сборка инструмента с мостков" + }, + new + { + Id = 1024, + Code = 0, + Name = "Подготовительные работы" + }, + new + { + Id = 1025, + Code = 0, + Name = "Сборка КНБК" + }, + new + { + Id = 1026, + Code = 0, + Name = "Разборка КНБК" + }, + new + { + Id = 1027, + Code = 0, + Name = "Промывка" + }, + new + { + Id = 1028, + Code = 0, + Name = "Промежуточная промывка" + }, + new + { + Id = 1029, + Code = 0, + Name = "Прокачка пачек" + }, + new + { + Id = 1030, + Code = 0, + Name = "Разбуривание тех.оснастки" + }, + new + { + Id = 1031, + Code = 0, + Name = "Ремонт" + }, + new + { + Id = 1032, + Code = 0, + Name = "Спуск инструмента" + }, + new + { + Id = 1033, + Code = 0, + Name = "Спуск инструмента с промывкой" + }, + new + { + Id = 1034, + Code = 0, + Name = "Прямая проработка" + }, + new + { + Id = 1035, + Code = 0, + Name = "Принудительная проработка" + }, + new + { + Id = 1037, + Code = 0, + Name = "Тех СПО-подъем" + }, + new + { + Id = 1038, + Code = 0, + Name = "Тех СПО-спуск" + }, + new + { + Id = 1039, + Code = 0, + Name = "Техническое обслуживание" + }, + new + { + Id = 1040, + Code = 0, + Name = "Цементаж" + }, + new + { + Id = 1041, + Code = 0, + Name = "Шаблонировка ствола" + }, + new + { + Id = 1042, + Code = 0, + Name = "Геологическое осложнение" + }, + new + { + Id = 1043, + Code = 0, + Name = "НПВ" + }, + new + { + Id = 1044, + Code = 0, + Name = "ВМР" + }, + new + { + Id = 1045, + Code = 0, + Name = "Прочее" + }, + new + { + Id = 1046, + Code = 0, + Name = "Спуск КНБК" + }, + new + { + Id = 1047, + Code = 0, + Name = "Подъем КНБК" + }, + new + { + Id = 1048, + Code = 0, + Name = "Спуск ОК" + }, + new + { + Id = 1050, + Code = 0, + Name = "Промывка при спуске ОК" + }, + new + { + Id = 1051, + Code = 0, + Name = "Замер ТС" + }, + new + { + Id = 1052, + Code = 0, + Name = "Тех. отстой" + }, + new + { + Id = 1053, + Code = 0, + Name = "Циркуляция и Обработка БР" + }, + new + { + Id = 1054, + Code = 0, + Name = "Срезка ствола" + }, + new + { + Id = 1055, + Code = 0, + Name = "Вспомогательные работы" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellSectionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.HasKey("Id"); + + b.ToTable("t_well_section_type"); + + b.HasComment("конструкция секции скважины"); + + b.HasData( + new + { + Id = 1, + Caption = "Пилотный ствол" + }, + new + { + Id = 2, + Caption = "Направление" + }, + new + { + Id = 3, + Caption = "Кондуктор" + }, + new + { + Id = 4, + Caption = "Эксплуатационная колонна" + }, + new + { + Id = 5, + Caption = "Транспортный ствол" + }, + new + { + Id = 6, + Caption = "Хвостовик" + }, + new + { + Id = 7, + Caption = "Пилотный ствол 2" + }, + new + { + Id = 8, + Caption = "Направление 2" + }, + new + { + Id = 9, + Caption = "Кондуктор 2" + }, + new + { + Id = 10, + Caption = "Эксплуатационная колонна 2" + }, + new + { + Id = 11, + Caption = "Транспортный ствол 2" + }, + new + { + Id = 12, + Caption = "Хвостовик 2" + }, + new + { + Id = 13, + Caption = "Пилотный ствол 3" + }, + new + { + Id = 14, + Caption = "Направление 3" + }, + new + { + Id = 15, + Caption = "Кондуктор 3" + }, + new + { + Id = 16, + Caption = "Эксплуатационная колонна 3" + }, + new + { + Id = 17, + Caption = "Транспортный ствол 3" + }, + new + { + Id = 18, + Caption = "Хвостовик 3" + }, + new + { + Id = 19, + Caption = "Пилотный ствол 4" + }, + new + { + Id = 20, + Caption = "Направление 4" + }, + new + { + Id = 21, + Caption = "Кондуктор 4" + }, + new + { + Id = 22, + Caption = "Эксплуатационная колонна 4" + }, + new + { + Id = 23, + Caption = "Транспортный ствол 4" + }, + new + { + Id = 24, + Caption = "Хвостовик 4" + }, + new + { + Id = 25, + Caption = "Пилотный ствол 5" + }, + new + { + Id = 26, + Caption = "Направление 5" + }, + new + { + Id = 27, + Caption = "Кондуктор 5" + }, + new + { + Id = 28, + Caption = "Эксплуатационная колонна 5" + }, + new + { + Id = 29, + Caption = "Транспортный ствол 5" + }, + new + { + Id = 30, + Caption = "Хвостовик 5" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Caption") + .HasMaxLength(255) + .HasColumnType("character varying(255)") + .HasColumnName("caption") + .HasComment("Название"); + + b.HasKey("Id"); + + b.ToTable("t_well_type"); + + b.HasComment("конструкция скважины"); + + b.HasData( + new + { + Id = 1, + Caption = "Наклонно-направленная" + }, + new + { + Id = 2, + Caption = "Горизонтальная" + }); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.RecordBase", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.Property("Actcod") + .HasColumnType("smallint") + .HasColumnName("ACTCOD"); + + b.Property("Date") + .HasColumnType("integer") + .HasColumnName("DATE"); + + b.Property("Recid") + .HasColumnType("smallint") + .HasColumnName("RECID"); + + b.Property("Seqid") + .HasColumnType("integer") + .HasColumnName("SEQID"); + + b.Property("Stknum") + .HasColumnType("smallint") + .HasColumnName("STKNUM"); + + b.Property("Time") + .HasColumnType("integer") + .HasColumnName("TIME"); + + b.Property("Wellid") + .HasColumnType("text") + .HasColumnName("WELLID"); + + b.HasKey("IdTelemetry", "DateTime"); + + b.ToTable("RecordBase"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record1", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Blkpos") + .HasColumnType("real") + .HasColumnName("BLKPOS"); + + b.Property("Chkp") + .HasColumnType("real") + .HasColumnName("CHKP"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptbitv") + .HasColumnType("real") + .HasColumnName("DEPTBITV"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptretm") + .HasColumnType("real") + .HasColumnName("DEPTRETM"); + + b.Property("Deptvert") + .HasColumnType("real") + .HasColumnName("DEPTVERT"); + + b.Property("Gasa") + .HasColumnType("real") + .HasColumnName("GASA"); + + b.Property("Hkla") + .HasColumnType("real") + .HasColumnName("HKLA"); + + b.Property("Hklx") + .HasColumnType("real") + .HasColumnName("HKLX"); + + b.Property("Lagstks") + .HasColumnType("smallint") + .HasColumnName("LAGSTKS"); + + b.Property("Mcia") + .HasColumnType("real") + .HasColumnName("MCIA"); + + b.Property("Mcoa") + .HasColumnType("real") + .HasColumnName("MCOA"); + + b.Property("Mdia") + .HasColumnType("real") + .HasColumnName("MDIA"); + + b.Property("Mdoa") + .HasColumnType("real") + .HasColumnName("MDOA"); + + b.Property("Mfia") + .HasColumnType("real") + .HasColumnName("MFIA"); + + b.Property("Mfoa") + .HasColumnType("real") + .HasColumnName("MFOA"); + + b.Property("Mfop") + .HasColumnType("smallint") + .HasColumnName("MFOP"); + + b.Property("Mtia") + .HasColumnType("real") + .HasColumnName("MTIA"); + + b.Property("Mtoa") + .HasColumnType("real") + .HasColumnName("MTOA"); + + b.Property("Ropa") + .HasColumnType("real") + .HasColumnName("ROPA"); + + b.Property("Rpma") + .HasColumnType("smallint") + .HasColumnName("RPMA"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Spm1") + .HasColumnType("smallint") + .HasColumnName("SPM1"); + + b.Property("Spm2") + .HasColumnType("smallint") + .HasColumnName("SPM2"); + + b.Property("Spm3") + .HasColumnType("smallint") + .HasColumnName("SPM3"); + + b.Property("Sppa") + .HasColumnType("real") + .HasColumnName("SPPA"); + + b.Property("Stkc") + .HasColumnType("integer") + .HasColumnName("STKC"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.Property("Torqa") + .HasColumnType("real") + .HasColumnName("TORQA"); + + b.Property("Torqx") + .HasColumnType("real") + .HasColumnName("TORQX"); + + b.Property("Tvolact") + .HasColumnType("real") + .HasColumnName("TVOLACT"); + + b.Property("Tvolcact") + .HasColumnType("real") + .HasColumnName("TVOLCACT"); + + b.Property("Woba") + .HasColumnType("real") + .HasColumnName("WOBA"); + + b.Property("Wobx") + .HasColumnType("real") + .HasColumnName("WOBX"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_1"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record50", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("DeptmeasGdpMc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_GDP_mc"); + + b.Property("DeptmeasMcrstat") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_MCRSTAT"); + + b.Property("DeptmeasRa33Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33_mc"); + + b.Property("DeptmeasRa33f2Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33F2_mc"); + + b.Property("DeptmeasRa33f4Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33F4_mc"); + + b.Property("DeptmeasRp33Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33_mc"); + + b.Property("DeptmeasRp33f2Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33F2_mc"); + + b.Property("DeptmeasRp33f4Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33F4_mc"); + + b.Property("DeptmeasSlvlMc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_SLVL_mc"); + + b.Property("GdpMc") + .HasColumnType("real") + .HasColumnName("GDP_mc"); + + b.Property("Mcrstat") + .HasColumnType("real") + .HasColumnName("MCRSTAT"); + + b.Property("Ra33Mc") + .HasColumnType("real") + .HasColumnName("RA33_mc"); + + b.Property("Ra33f2Mc") + .HasColumnType("real") + .HasColumnName("RA33F2_mc"); + + b.Property("Ra33f4Mc") + .HasColumnType("real") + .HasColumnName("RA33F4_mc"); + + b.Property("Rp33Mc") + .HasColumnType("real") + .HasColumnName("RP33_mc"); + + b.Property("Rp33f2Mc") + .HasColumnType("real") + .HasColumnName("RP33F2_mc"); + + b.Property("Rp33f4Mc") + .HasColumnType("real") + .HasColumnName("RP33F4_mc"); + + b.Property("SlvlMc") + .HasColumnType("real") + .HasColumnName("SLVL_mc"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_50"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record60", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Btot") + .HasColumnType("real") + .HasColumnName("Btot"); + + b.Property("Bx") + .HasColumnType("real") + .HasColumnName("Bx"); + + b.Property("By") + .HasColumnType("real") + .HasColumnName("By"); + + b.Property("Bz") + .HasColumnType("real") + .HasColumnName("Bz"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Gtot") + .HasColumnType("real") + .HasColumnName("Gtot"); + + b.Property("Gx") + .HasColumnType("real") + .HasColumnName("Gx"); + + b.Property("Gy") + .HasColumnType("real") + .HasColumnName("Gy"); + + b.Property("Gz") + .HasColumnType("real") + .HasColumnName("Gz"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_60"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record61", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Att06h") + .HasColumnType("real") + .HasColumnName("ATT06H"); + + b.Property("Att06l") + .HasColumnType("real") + .HasColumnName("ATT06L"); + + b.Property("Att10h") + .HasColumnType("real") + .HasColumnName("ATT10H"); + + b.Property("Att10l") + .HasColumnType("real") + .HasColumnName("ATT10L"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Phl1f1") + .HasColumnType("real") + .HasColumnName("PHL1F1"); + + b.Property("Phl1f2") + .HasColumnType("real") + .HasColumnName("PHL1F2"); + + b.Property("Phl2f1") + .HasColumnType("real") + .HasColumnName("PHL2F1"); + + b.Property("Phl2f2") + .HasColumnType("real") + .HasColumnName("PHL2F2"); + + b.Property("Status") + .HasColumnType("real") + .HasColumnName("Status"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_61"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record7", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptsvym") + .HasColumnType("real") + .HasColumnName("DEPTSVYM"); + + b.Property("Deptsvyv") + .HasColumnType("real") + .HasColumnName("DEPTSVYV"); + + b.Property("Passnum") + .HasColumnType("smallint") + .HasColumnName("PASSNUM"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Svyazc") + .HasColumnType("real") + .HasColumnName("SVYAZC"); + + b.Property("Svyazu") + .HasColumnType("real") + .HasColumnName("SVYAZU"); + + b.Property("Svydls") + .HasColumnType("real") + .HasColumnName("SVYDLS"); + + b.Property("Svyew") + .HasColumnType("real") + .HasColumnName("SVYEW"); + + b.Property("Svygtf") + .HasColumnType("real") + .HasColumnName("SVYGTF"); + + b.Property("Svyinc") + .HasColumnType("real") + .HasColumnName("SVYINC"); + + b.Property("Svymtf") + .HasColumnType("real") + .HasColumnName("SVYMTF"); + + b.Property("Svyns") + .HasColumnType("real") + .HasColumnName("SVYNS"); + + b.Property("Svytype") + .HasColumnType("text") + .HasColumnName("SVYTYPE"); + + b.Property("Svywalk") + .HasColumnType("real") + .HasColumnName("SVYWALK"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_7"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record8", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptbitv") + .HasColumnType("real") + .HasColumnName("DEPTBITV"); + + b.Property("Deptcalm") + .HasColumnType("real") + .HasColumnName("DEPTCALM"); + + b.Property("Deptcalv") + .HasColumnType("real") + .HasColumnName("DEPTCALV"); + + b.Property("Deptfdm") + .HasColumnType("real") + .HasColumnName("DEPTFDM"); + + b.Property("Deptfdv") + .HasColumnType("real") + .HasColumnName("DEPTFDV"); + + b.Property("Deptgr1m") + .HasColumnType("real") + .HasColumnName("DEPTGR1M"); + + b.Property("Deptgr1v") + .HasColumnType("real") + .HasColumnName("DEPTGR1V"); + + b.Property("Deptgr2m") + .HasColumnType("real") + .HasColumnName("DEPTGR2M"); + + b.Property("Deptgr2v") + .HasColumnType("real") + .HasColumnName("DEPTGR2V"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptp1m") + .HasColumnType("real") + .HasColumnName("DEPTP1M"); + + b.Property("Deptp1v") + .HasColumnType("real") + .HasColumnName("DEPTP1V"); + + b.Property("Deptp2m") + .HasColumnType("real") + .HasColumnName("DEPTP2M"); + + b.Property("Deptp2v") + .HasColumnType("real") + .HasColumnName("DEPTP2V"); + + b.Property("Deptrs1m") + .HasColumnType("real") + .HasColumnName("DEPTRS1M"); + + b.Property("Deptrs1v") + .HasColumnType("real") + .HasColumnName("DEPTRS1V"); + + b.Property("Deptrs2m") + .HasColumnType("real") + .HasColumnName("DEPTRS2M"); + + b.Property("Deptrs2v") + .HasColumnType("real") + .HasColumnName("DEPTRS2V"); + + b.Property("Deptvert") + .HasColumnType("real") + .HasColumnName("DEPTVERT"); + + b.Property("Mclp") + .HasColumnType("real") + .HasColumnName("MCLP"); + + b.Property("Mfd") + .HasColumnType("real") + .HasColumnName("MFD"); + + b.Property("Mffp") + .HasColumnType("real") + .HasColumnName("MFFP"); + + b.Property("Mfpp") + .HasColumnType("real") + .HasColumnName("MFPP"); + + b.Property("Mfrann") + .HasColumnType("real") + .HasColumnName("MFRANN"); + + b.Property("Mfrpipe") + .HasColumnType("real") + .HasColumnName("MFRPIPE"); + + b.Property("Mftann") + .HasColumnType("real") + .HasColumnName("MFTANN"); + + b.Property("Mftpipe") + .HasColumnType("real") + .HasColumnName("MFTPIPE"); + + b.Property("Mg1") + .HasColumnType("real") + .HasColumnName("MG1"); + + b.Property("Mg1c") + .HasColumnType("real") + .HasColumnName("MG1C"); + + b.Property("Mg2") + .HasColumnType("real") + .HasColumnName("MG2"); + + b.Property("Mg2c") + .HasColumnType("real") + .HasColumnName("MG2C"); + + b.Property("Mpo1") + .HasColumnType("real") + .HasColumnName("MPO1"); + + b.Property("Mpo2") + .HasColumnType("real") + .HasColumnName("MPO2"); + + b.Property("Mr1") + .HasColumnType("real") + .HasColumnName("MR1"); + + b.Property("Mr1c") + .HasColumnType("real") + .HasColumnName("MR1C"); + + b.Property("Mr2") + .HasColumnType("real") + .HasColumnName("MR2"); + + b.Property("Mr2c") + .HasColumnType("real") + .HasColumnName("MR2C"); + + b.Property("Passnum") + .HasColumnType("smallint") + .HasColumnName("PASSNUM"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Spare6") + .HasColumnType("real") + .HasColumnName("SPARE6"); + + b.Property("Spare7") + .HasColumnType("real") + .HasColumnName("SPARE7"); + + b.Property("Spare8") + .HasColumnType("real") + .HasColumnName("SPARE8"); + + b.Property("Spare9") + .HasColumnType("real") + .HasColumnName("SPARE9"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_8"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => + { + b.HasOne("AsbCloudDb.Model.Deposit", "Deposit") + .WithMany("Clusters") + .HasForeignKey("IdDeposit") + .HasConstraintName("t_cluster_t_deposit_id_fk"); + + b.Navigation("Deposit"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Company", b => + { + b.HasOne("AsbCloudDb.Model.CompanyType", "CompanyType") + .WithMany("Companies") + .HasForeignKey("IdCompanyType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CompanyType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillFlowChart", b => + { + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillingProgramPart", b => + { + b.HasOne("AsbCloudDb.Model.FileCategory", "FileCategory") + .WithMany() + .HasForeignKey("IdFileCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("DrillingProgramParts") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("FileCategory"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillParams", b => + { + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.WellSectionType", "WellSectionType") + .WithMany("DrillParamsCollection") + .HasForeignKey("IdWellSectionType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_drill_params_t_well_section_type_id_fk"); + + b.Navigation("Well"); + + b.Navigation("WellSectionType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileInfo", b => + { + b.HasOne("AsbCloudDb.Model.User", "Author") + .WithMany("Files") + .HasForeignKey("IdAuthor"); + + b.HasOne("AsbCloudDb.Model.FileCategory", "FileCategory") + .WithMany() + .HasForeignKey("IdCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Author"); + + b.Navigation("FileCategory"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileMark", b => + { + b.HasOne("AsbCloudDb.Model.FileInfo", "FileInfo") + .WithMany("FileMarks") + .HasForeignKey("IdFile") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_file_mark_t_file_info_fk"); + + b.HasOne("AsbCloudDb.Model.User", "User") + .WithMany("FileMarks") + .HasForeignKey("IdUser") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_user_t_file_mark_fk"); + + b.Navigation("FileInfo"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Measure", b => + { + b.HasOne("AsbCloudDb.Model.MeasureCategory", "Category") + .WithMany("Measures") + .HasForeignKey("IdCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Category"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationCompanyWell", b => + { + b.HasOne("AsbCloudDb.Model.Company", "Company") + .WithMany("RelationCompaniesWells") + .HasForeignKey("IdCompany") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_relation_company_well_t_company_id_fk"); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("RelationCompaniesWells") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_relation_company_well_t_well_id_fk"); + + b.Navigation("Company"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserDrillingProgramPart", b => + { + b.HasOne("AsbCloudDb.Model.DrillingProgramPart", "DrillingProgramPart") + .WithMany("RelatedUsers") + .HasForeignKey("IdDrillingProgramPart") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.User", "User") + .WithMany() + .HasForeignKey("IdUser") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DrillingProgramPart"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRolePermission", b => + { + b.HasOne("AsbCloudDb.Model.Permission", "Permission") + .WithMany("RelationUserRolePermissions") + .HasForeignKey("IdPermission") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.UserRole", "UserRole") + .WithMany("RelationUserRolePermissions") + .HasForeignKey("IdUserRole") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Permission"); + + b.Navigation("UserRole"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserRoleUserRole", b => + { + b.HasOne("AsbCloudDb.Model.UserRole", "Role") + .WithMany("RelationUserRoleUserRoles") + .HasForeignKey("Id") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.UserRole", "IncludeRole") + .WithMany() + .HasForeignKey("IdInclude") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("IncludeRole"); + + b.Navigation("Role"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.RelationUserUserRole", b => + { + b.HasOne("AsbCloudDb.Model.User", "User") + .WithMany("RelationUsersUserRoles") + .HasForeignKey("IdUser") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.UserRole", "UserRole") + .WithMany("RelationUsersUserRoles") + .HasForeignKey("IdUserRole") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + + b.Navigation("UserRole"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.ReportProperty", b => + { + b.HasOne("AsbCloudDb.Model.FileInfo", "File") + .WithMany() + .HasForeignKey("IdFile") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("File"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.SetpointsRequest", b => + { + b.HasOne("AsbCloudDb.Model.User", "Author") + .WithMany() + .HasForeignKey("IdAuthor") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany() + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Author"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryAnalysis", b => + { + b.HasOne("AsbCloudDb.Model.WellOperationCategory", "Operation") + .WithMany("Analysis") + .HasForeignKey("IdOperation") + .OnDelete(DeleteBehavior.SetNull) + .IsRequired() + .HasConstraintName("t_analysis_t_operation_id_fk"); + + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Analysis") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_analysis_t_telemetry_id_fk"); + + b.Navigation("Operation"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSaub", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("DataSaub") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_telemetry_data_saub_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryDataSpin", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("DataSpin") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_telemetry_data_spin_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryEvent", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Events") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_event_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryMessage", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Messages") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_messages_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.TelemetryUser", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany("Users") + .HasForeignKey("IdTelemetry") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_telemetry_user_t_telemetry_id_fk"); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.User", b => + { + b.HasOne("AsbCloudDb.Model.Company", "Company") + .WithMany("Users") + .HasForeignKey("IdCompany") + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("t_user_t_company_id_fk"); + + b.Navigation("Company"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Well", b => + { + b.HasOne("AsbCloudDb.Model.Cluster", "Cluster") + .WithMany("Wells") + .HasForeignKey("IdCluster") + .HasConstraintName("t_well_t_cluster_id_fk"); + + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithOne("Well") + .HasForeignKey("AsbCloudDb.Model.Well", "IdTelemetry") + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("t_well_t_telemetry_id_fk"); + + b.HasOne("AsbCloudDb.Model.WellType", "WellType") + .WithMany("Wells") + .HasForeignKey("IdWellType"); + + b.Navigation("Cluster"); + + b.Navigation("Telemetry"); + + b.Navigation("WellType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellComposite", b => + { + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("WellComposites") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_well_сomposite_t_well_id_fk"); + + b.HasOne("AsbCloudDb.Model.WellSectionType", "WellSectionType") + .WithMany("WellComposites") + .HasForeignKey("IdWellSectionType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_well_сomposite_t_well_section_type_id_fk"); + + b.HasOne("AsbCloudDb.Model.Well", "WellSrc") + .WithMany("WellCompositeSrcs") + .HasForeignKey("IdWellSrc") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("t_well_сomposite_src_t_well_id_fk"); + + b.Navigation("Well"); + + b.Navigation("WellSectionType"); + + b.Navigation("WellSrc"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperation", b => + { + b.HasOne("AsbCloudDb.Model.WellOperationCategory", "OperationCategory") + .WithMany() + .HasForeignKey("IdCategory") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.Well", "Well") + .WithMany("WellOperations") + .HasForeignKey("IdWell") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("AsbCloudDb.Model.WellSectionType", "WellSectionType") + .WithMany("WellOperations") + .HasForeignKey("IdWellSectionType") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("OperationCategory"); + + b.Navigation("Well"); + + b.Navigation("WellSectionType"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record1", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record1", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record50", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record50", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record60", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record60", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record61", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record61", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record7", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record7", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record8", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record8", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => + { + b.Navigation("Wells"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Company", b => + { + b.Navigation("RelationCompaniesWells"); + + b.Navigation("Users"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.CompanyType", b => + { + b.Navigation("Companies"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Deposit", b => + { + b.Navigation("Clusters"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.DrillingProgramPart", b => + { + b.Navigation("RelatedUsers"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.FileInfo", b => + { + b.Navigation("FileMarks"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.MeasureCategory", b => + { + b.Navigation("Measures"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Permission", b => + { + b.Navigation("RelationUserRolePermissions"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Telemetry", b => + { + b.Navigation("Analysis"); + + b.Navigation("DataSaub"); + + b.Navigation("DataSpin"); + + b.Navigation("Events"); + + b.Navigation("Messages"); + + b.Navigation("Users"); + + b.Navigation("Well"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.User", b => + { + b.Navigation("FileMarks"); + + b.Navigation("Files"); + + b.Navigation("RelationUsersUserRoles"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.UserRole", b => + { + b.Navigation("RelationUserRolePermissions"); + + b.Navigation("RelationUserRoleUserRoles"); + + b.Navigation("RelationUsersUserRoles"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.Well", b => + { + b.Navigation("DrillingProgramParts"); + + b.Navigation("RelationCompaniesWells"); + + b.Navigation("WellCompositeSrcs"); + + b.Navigation("WellComposites"); + + b.Navigation("WellOperations"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellOperationCategory", b => + { + b.Navigation("Analysis"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellSectionType", b => + { + b.Navigation("DrillParamsCollection"); + + b.Navigation("WellComposites"); + + b.Navigation("WellOperations"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WellType", b => + { + b.Navigation("Wells"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.cs b/AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.cs new file mode 100644 index 00000000..6cbf2dd7 --- /dev/null +++ b/AsbCloudDb/Migrations/20220401125154_Edit_WitsRecords_tableNames.cs @@ -0,0 +1,507 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace AsbCloudDb.Migrations +{ + public partial class Edit_WitsRecords_tableNames : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_t_record_1_RecordBase_id_telemetry_date", + table: "t_record_1"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_1_t_telemetry_TelemetryId", + table: "t_record_1"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_50_RecordBase_id_telemetry_date", + table: "t_record_50"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_50_t_telemetry_TelemetryId", + table: "t_record_50"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_60_RecordBase_id_telemetry_date", + table: "t_record_60"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_60_t_telemetry_TelemetryId", + table: "t_record_60"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_61_RecordBase_id_telemetry_date", + table: "t_record_61"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_61_t_telemetry_TelemetryId", + table: "t_record_61"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_7_RecordBase_id_telemetry_date", + table: "t_record_7"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_7_t_telemetry_TelemetryId", + table: "t_record_7"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_8_RecordBase_id_telemetry_date", + table: "t_record_8"); + + migrationBuilder.DropForeignKey( + name: "FK_t_record_8_t_telemetry_TelemetryId", + table: "t_record_8"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_record_8", + table: "t_record_8"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_record_7", + table: "t_record_7"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_record_61", + table: "t_record_61"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_record_60", + table: "t_record_60"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_record_50", + table: "t_record_50"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_record_1", + table: "t_record_1"); + + migrationBuilder.RenameTable( + name: "t_record_8", + newName: "t_telemetry_wits_8"); + + migrationBuilder.RenameTable( + name: "t_record_7", + newName: "t_telemetry_wits_7"); + + migrationBuilder.RenameTable( + name: "t_record_61", + newName: "t_telemetry_wits_61"); + + migrationBuilder.RenameTable( + name: "t_record_60", + newName: "t_telemetry_wits_60"); + + migrationBuilder.RenameTable( + name: "t_record_50", + newName: "t_telemetry_wits_50"); + + migrationBuilder.RenameTable( + name: "t_record_1", + newName: "t_telemetry_wits_1"); + + migrationBuilder.RenameIndex( + name: "IX_t_record_8_TelemetryId", + table: "t_telemetry_wits_8", + newName: "IX_t_telemetry_wits_8_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_record_7_TelemetryId", + table: "t_telemetry_wits_7", + newName: "IX_t_telemetry_wits_7_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_record_61_TelemetryId", + table: "t_telemetry_wits_61", + newName: "IX_t_telemetry_wits_61_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_record_60_TelemetryId", + table: "t_telemetry_wits_60", + newName: "IX_t_telemetry_wits_60_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_record_50_TelemetryId", + table: "t_telemetry_wits_50", + newName: "IX_t_telemetry_wits_50_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_record_1_TelemetryId", + table: "t_telemetry_wits_1", + newName: "IX_t_telemetry_wits_1_TelemetryId"); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_telemetry_wits_8", + table: "t_telemetry_wits_8", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_telemetry_wits_7", + table: "t_telemetry_wits_7", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_telemetry_wits_61", + table: "t_telemetry_wits_61", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_telemetry_wits_60", + table: "t_telemetry_wits_60", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_telemetry_wits_50", + table: "t_telemetry_wits_50", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_telemetry_wits_1", + table: "t_telemetry_wits_1", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_1_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_1", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_1_t_telemetry_TelemetryId", + table: "t_telemetry_wits_1", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_50_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_50", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_50_t_telemetry_TelemetryId", + table: "t_telemetry_wits_50", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_60_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_60", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_60_t_telemetry_TelemetryId", + table: "t_telemetry_wits_60", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_61_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_61", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_61_t_telemetry_TelemetryId", + table: "t_telemetry_wits_61", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_7_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_7", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_7_t_telemetry_TelemetryId", + table: "t_telemetry_wits_7", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_8_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_8", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_telemetry_wits_8_t_telemetry_TelemetryId", + table: "t_telemetry_wits_8", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_1_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_1"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_1_t_telemetry_TelemetryId", + table: "t_telemetry_wits_1"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_50_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_50"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_50_t_telemetry_TelemetryId", + table: "t_telemetry_wits_50"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_60_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_60"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_60_t_telemetry_TelemetryId", + table: "t_telemetry_wits_60"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_61_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_61"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_61_t_telemetry_TelemetryId", + table: "t_telemetry_wits_61"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_7_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_7"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_7_t_telemetry_TelemetryId", + table: "t_telemetry_wits_7"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_8_RecordBase_id_telemetry_date", + table: "t_telemetry_wits_8"); + + migrationBuilder.DropForeignKey( + name: "FK_t_telemetry_wits_8_t_telemetry_TelemetryId", + table: "t_telemetry_wits_8"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_telemetry_wits_8", + table: "t_telemetry_wits_8"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_telemetry_wits_7", + table: "t_telemetry_wits_7"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_telemetry_wits_61", + table: "t_telemetry_wits_61"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_telemetry_wits_60", + table: "t_telemetry_wits_60"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_telemetry_wits_50", + table: "t_telemetry_wits_50"); + + migrationBuilder.DropPrimaryKey( + name: "PK_t_telemetry_wits_1", + table: "t_telemetry_wits_1"); + + migrationBuilder.RenameTable( + name: "t_telemetry_wits_8", + newName: "t_record_8"); + + migrationBuilder.RenameTable( + name: "t_telemetry_wits_7", + newName: "t_record_7"); + + migrationBuilder.RenameTable( + name: "t_telemetry_wits_61", + newName: "t_record_61"); + + migrationBuilder.RenameTable( + name: "t_telemetry_wits_60", + newName: "t_record_60"); + + migrationBuilder.RenameTable( + name: "t_telemetry_wits_50", + newName: "t_record_50"); + + migrationBuilder.RenameTable( + name: "t_telemetry_wits_1", + newName: "t_record_1"); + + migrationBuilder.RenameIndex( + name: "IX_t_telemetry_wits_8_TelemetryId", + table: "t_record_8", + newName: "IX_t_record_8_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_telemetry_wits_7_TelemetryId", + table: "t_record_7", + newName: "IX_t_record_7_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_telemetry_wits_61_TelemetryId", + table: "t_record_61", + newName: "IX_t_record_61_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_telemetry_wits_60_TelemetryId", + table: "t_record_60", + newName: "IX_t_record_60_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_telemetry_wits_50_TelemetryId", + table: "t_record_50", + newName: "IX_t_record_50_TelemetryId"); + + migrationBuilder.RenameIndex( + name: "IX_t_telemetry_wits_1_TelemetryId", + table: "t_record_1", + newName: "IX_t_record_1_TelemetryId"); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_record_8", + table: "t_record_8", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_record_7", + table: "t_record_7", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_record_61", + table: "t_record_61", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_record_60", + table: "t_record_60", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_record_50", + table: "t_record_50", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddPrimaryKey( + name: "PK_t_record_1", + table: "t_record_1", + columns: new[] { "id_telemetry", "date" }); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_1_RecordBase_id_telemetry_date", + table: "t_record_1", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_1_t_telemetry_TelemetryId", + table: "t_record_1", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_50_RecordBase_id_telemetry_date", + table: "t_record_50", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_50_t_telemetry_TelemetryId", + table: "t_record_50", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_60_RecordBase_id_telemetry_date", + table: "t_record_60", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_60_t_telemetry_TelemetryId", + table: "t_record_60", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_61_RecordBase_id_telemetry_date", + table: "t_record_61", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_61_t_telemetry_TelemetryId", + table: "t_record_61", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_7_RecordBase_id_telemetry_date", + table: "t_record_7", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_7_t_telemetry_TelemetryId", + table: "t_record_7", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_8_RecordBase_id_telemetry_date", + table: "t_record_8", + columns: new[] { "id_telemetry", "date" }, + principalTable: "RecordBase", + principalColumns: new[] { "id_telemetry", "date" }, + onDelete: ReferentialAction.Cascade); + + migrationBuilder.AddForeignKey( + name: "FK_t_record_8_t_telemetry_TelemetryId", + table: "t_record_8", + column: "TelemetryId", + principalTable: "t_telemetry", + principalColumn: "id"); + } + } +} diff --git a/AsbCloudDb/Migrations/AsbCloudDbContextModelSnapshot.cs b/AsbCloudDb/Migrations/AsbCloudDbContextModelSnapshot.cs index 7dfab020..14fbc872 100644 --- a/AsbCloudDb/Migrations/AsbCloudDbContextModelSnapshot.cs +++ b/AsbCloudDb/Migrations/AsbCloudDbContextModelSnapshot.cs @@ -2562,7 +2562,7 @@ namespace AsbCloudDb.Migrations .HasColumnType("integer") .HasColumnName("id_telemetry"); - b.Property("Date") + b.Property("DateTime") .HasColumnType("timestamp with time zone") .HasColumnName("date") .HasComment("'2021-10-19 18:23:54+05'"); @@ -2752,7 +2752,7 @@ namespace AsbCloudDb.Migrations .HasColumnName("well_depth") .HasComment("Глубина забоя"); - b.HasKey("IdTelemetry", "Date"); + b.HasKey("IdTelemetry", "DateTime"); b.ToTable("t_telemetry_data_saub"); @@ -2765,7 +2765,7 @@ namespace AsbCloudDb.Migrations .HasColumnType("integer") .HasColumnName("id_telemetry"); - b.Property("Date") + b.Property("DateTime") .HasColumnType("timestamp with time zone") .HasColumnName("date") .HasComment("'2021-10-19 18:23:54+05'"); @@ -3064,7 +3064,7 @@ namespace AsbCloudDb.Migrations .HasColumnName("w2810") .HasComment(" автоматический сброс блокировки"); - b.HasKey("IdTelemetry", "Date"); + b.HasKey("IdTelemetry", "DateTime"); b.ToTable("t_telemetry_data_spin"); @@ -3126,7 +3126,7 @@ namespace AsbCloudDb.Migrations .HasColumnType("character varying(255)") .HasColumnName("arg3"); - b.Property("Date") + b.Property("DateTime") .HasColumnType("timestamp with time zone") .HasColumnName("date"); @@ -4426,6 +4426,701 @@ namespace AsbCloudDb.Migrations }); }); + modelBuilder.Entity("AsbCloudDb.Model.WITS.RecordBase", b => + { + b.Property("IdTelemetry") + .HasColumnType("integer") + .HasColumnName("id_telemetry"); + + b.Property("DateTime") + .HasColumnType("timestamp with time zone") + .HasColumnName("date"); + + b.Property("Actcod") + .HasColumnType("smallint") + .HasColumnName("ACTCOD"); + + b.Property("Date") + .HasColumnType("integer") + .HasColumnName("DATE"); + + b.Property("Recid") + .HasColumnType("smallint") + .HasColumnName("RECID"); + + b.Property("Seqid") + .HasColumnType("integer") + .HasColumnName("SEQID"); + + b.Property("Stknum") + .HasColumnType("smallint") + .HasColumnName("STKNUM"); + + b.Property("Time") + .HasColumnType("integer") + .HasColumnName("TIME"); + + b.Property("Wellid") + .HasColumnType("text") + .HasColumnName("WELLID"); + + b.HasKey("IdTelemetry", "DateTime"); + + b.ToTable("RecordBase"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record1", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Blkpos") + .HasColumnType("real") + .HasColumnName("BLKPOS"); + + b.Property("Chkp") + .HasColumnType("real") + .HasColumnName("CHKP"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptbitv") + .HasColumnType("real") + .HasColumnName("DEPTBITV"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptretm") + .HasColumnType("real") + .HasColumnName("DEPTRETM"); + + b.Property("Deptvert") + .HasColumnType("real") + .HasColumnName("DEPTVERT"); + + b.Property("Gasa") + .HasColumnType("real") + .HasColumnName("GASA"); + + b.Property("Hkla") + .HasColumnType("real") + .HasColumnName("HKLA"); + + b.Property("Hklx") + .HasColumnType("real") + .HasColumnName("HKLX"); + + b.Property("Lagstks") + .HasColumnType("smallint") + .HasColumnName("LAGSTKS"); + + b.Property("Mcia") + .HasColumnType("real") + .HasColumnName("MCIA"); + + b.Property("Mcoa") + .HasColumnType("real") + .HasColumnName("MCOA"); + + b.Property("Mdia") + .HasColumnType("real") + .HasColumnName("MDIA"); + + b.Property("Mdoa") + .HasColumnType("real") + .HasColumnName("MDOA"); + + b.Property("Mfia") + .HasColumnType("real") + .HasColumnName("MFIA"); + + b.Property("Mfoa") + .HasColumnType("real") + .HasColumnName("MFOA"); + + b.Property("Mfop") + .HasColumnType("smallint") + .HasColumnName("MFOP"); + + b.Property("Mtia") + .HasColumnType("real") + .HasColumnName("MTIA"); + + b.Property("Mtoa") + .HasColumnType("real") + .HasColumnName("MTOA"); + + b.Property("Ropa") + .HasColumnType("real") + .HasColumnName("ROPA"); + + b.Property("Rpma") + .HasColumnType("smallint") + .HasColumnName("RPMA"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Spm1") + .HasColumnType("smallint") + .HasColumnName("SPM1"); + + b.Property("Spm2") + .HasColumnType("smallint") + .HasColumnName("SPM2"); + + b.Property("Spm3") + .HasColumnType("smallint") + .HasColumnName("SPM3"); + + b.Property("Sppa") + .HasColumnType("real") + .HasColumnName("SPPA"); + + b.Property("Stkc") + .HasColumnType("integer") + .HasColumnName("STKC"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.Property("Torqa") + .HasColumnType("real") + .HasColumnName("TORQA"); + + b.Property("Torqx") + .HasColumnType("real") + .HasColumnName("TORQX"); + + b.Property("Tvolact") + .HasColumnType("real") + .HasColumnName("TVOLACT"); + + b.Property("Tvolcact") + .HasColumnType("real") + .HasColumnName("TVOLCACT"); + + b.Property("Woba") + .HasColumnType("real") + .HasColumnName("WOBA"); + + b.Property("Wobx") + .HasColumnType("real") + .HasColumnName("WOBX"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_1"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record50", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("DeptmeasGdpMc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_GDP_mc"); + + b.Property("DeptmeasMcrstat") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_MCRSTAT"); + + b.Property("DeptmeasRa33Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33_mc"); + + b.Property("DeptmeasRa33f2Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33F2_mc"); + + b.Property("DeptmeasRa33f4Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RA33F4_mc"); + + b.Property("DeptmeasRp33Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33_mc"); + + b.Property("DeptmeasRp33f2Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33F2_mc"); + + b.Property("DeptmeasRp33f4Mc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_RP33F4_mc"); + + b.Property("DeptmeasSlvlMc") + .HasColumnType("real") + .HasColumnName("DEPTMEAS_SLVL_mc"); + + b.Property("GdpMc") + .HasColumnType("real") + .HasColumnName("GDP_mc"); + + b.Property("Mcrstat") + .HasColumnType("real") + .HasColumnName("MCRSTAT"); + + b.Property("Ra33Mc") + .HasColumnType("real") + .HasColumnName("RA33_mc"); + + b.Property("Ra33f2Mc") + .HasColumnType("real") + .HasColumnName("RA33F2_mc"); + + b.Property("Ra33f4Mc") + .HasColumnType("real") + .HasColumnName("RA33F4_mc"); + + b.Property("Rp33Mc") + .HasColumnType("real") + .HasColumnName("RP33_mc"); + + b.Property("Rp33f2Mc") + .HasColumnType("real") + .HasColumnName("RP33F2_mc"); + + b.Property("Rp33f4Mc") + .HasColumnType("real") + .HasColumnName("RP33F4_mc"); + + b.Property("SlvlMc") + .HasColumnType("real") + .HasColumnName("SLVL_mc"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_50"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record60", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Btot") + .HasColumnType("real") + .HasColumnName("Btot"); + + b.Property("Bx") + .HasColumnType("real") + .HasColumnName("Bx"); + + b.Property("By") + .HasColumnType("real") + .HasColumnName("By"); + + b.Property("Bz") + .HasColumnType("real") + .HasColumnName("Bz"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Gtot") + .HasColumnType("real") + .HasColumnName("Gtot"); + + b.Property("Gx") + .HasColumnType("real") + .HasColumnName("Gx"); + + b.Property("Gy") + .HasColumnType("real") + .HasColumnName("Gy"); + + b.Property("Gz") + .HasColumnType("real") + .HasColumnName("Gz"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_60"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record61", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Att06h") + .HasColumnType("real") + .HasColumnName("ATT06H"); + + b.Property("Att06l") + .HasColumnType("real") + .HasColumnName("ATT06L"); + + b.Property("Att10h") + .HasColumnType("real") + .HasColumnName("ATT10H"); + + b.Property("Att10l") + .HasColumnType("real") + .HasColumnName("ATT10L"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Phl1f1") + .HasColumnType("real") + .HasColumnName("PHL1F1"); + + b.Property("Phl1f2") + .HasColumnType("real") + .HasColumnName("PHL1F2"); + + b.Property("Phl2f1") + .HasColumnType("real") + .HasColumnName("PHL2F1"); + + b.Property("Phl2f2") + .HasColumnType("real") + .HasColumnName("PHL2F2"); + + b.Property("Status") + .HasColumnType("real") + .HasColumnName("Status"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_61"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record7", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptsvym") + .HasColumnType("real") + .HasColumnName("DEPTSVYM"); + + b.Property("Deptsvyv") + .HasColumnType("real") + .HasColumnName("DEPTSVYV"); + + b.Property("Passnum") + .HasColumnType("smallint") + .HasColumnName("PASSNUM"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Svyazc") + .HasColumnType("real") + .HasColumnName("SVYAZC"); + + b.Property("Svyazu") + .HasColumnType("real") + .HasColumnName("SVYAZU"); + + b.Property("Svydls") + .HasColumnType("real") + .HasColumnName("SVYDLS"); + + b.Property("Svyew") + .HasColumnType("real") + .HasColumnName("SVYEW"); + + b.Property("Svygtf") + .HasColumnType("real") + .HasColumnName("SVYGTF"); + + b.Property("Svyinc") + .HasColumnType("real") + .HasColumnName("SVYINC"); + + b.Property("Svymtf") + .HasColumnType("real") + .HasColumnName("SVYMTF"); + + b.Property("Svyns") + .HasColumnType("real") + .HasColumnName("SVYNS"); + + b.Property("Svytype") + .HasColumnType("text") + .HasColumnName("SVYTYPE"); + + b.Property("Svywalk") + .HasColumnType("real") + .HasColumnName("SVYWALK"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_7"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record8", b => + { + b.HasBaseType("AsbCloudDb.Model.WITS.RecordBase"); + + b.Property("Deptbitm") + .HasColumnType("real") + .HasColumnName("DEPTBITM"); + + b.Property("Deptbitv") + .HasColumnType("real") + .HasColumnName("DEPTBITV"); + + b.Property("Deptcalm") + .HasColumnType("real") + .HasColumnName("DEPTCALM"); + + b.Property("Deptcalv") + .HasColumnType("real") + .HasColumnName("DEPTCALV"); + + b.Property("Deptfdm") + .HasColumnType("real") + .HasColumnName("DEPTFDM"); + + b.Property("Deptfdv") + .HasColumnType("real") + .HasColumnName("DEPTFDV"); + + b.Property("Deptgr1m") + .HasColumnType("real") + .HasColumnName("DEPTGR1M"); + + b.Property("Deptgr1v") + .HasColumnType("real") + .HasColumnName("DEPTGR1V"); + + b.Property("Deptgr2m") + .HasColumnType("real") + .HasColumnName("DEPTGR2M"); + + b.Property("Deptgr2v") + .HasColumnType("real") + .HasColumnName("DEPTGR2V"); + + b.Property("Deptmeas") + .HasColumnType("real") + .HasColumnName("DEPTMEAS"); + + b.Property("Deptp1m") + .HasColumnType("real") + .HasColumnName("DEPTP1M"); + + b.Property("Deptp1v") + .HasColumnType("real") + .HasColumnName("DEPTP1V"); + + b.Property("Deptp2m") + .HasColumnType("real") + .HasColumnName("DEPTP2M"); + + b.Property("Deptp2v") + .HasColumnType("real") + .HasColumnName("DEPTP2V"); + + b.Property("Deptrs1m") + .HasColumnType("real") + .HasColumnName("DEPTRS1M"); + + b.Property("Deptrs1v") + .HasColumnType("real") + .HasColumnName("DEPTRS1V"); + + b.Property("Deptrs2m") + .HasColumnType("real") + .HasColumnName("DEPTRS2M"); + + b.Property("Deptrs2v") + .HasColumnType("real") + .HasColumnName("DEPTRS2V"); + + b.Property("Deptvert") + .HasColumnType("real") + .HasColumnName("DEPTVERT"); + + b.Property("Mclp") + .HasColumnType("real") + .HasColumnName("MCLP"); + + b.Property("Mfd") + .HasColumnType("real") + .HasColumnName("MFD"); + + b.Property("Mffp") + .HasColumnType("real") + .HasColumnName("MFFP"); + + b.Property("Mfpp") + .HasColumnType("real") + .HasColumnName("MFPP"); + + b.Property("Mfrann") + .HasColumnType("real") + .HasColumnName("MFRANN"); + + b.Property("Mfrpipe") + .HasColumnType("real") + .HasColumnName("MFRPIPE"); + + b.Property("Mftann") + .HasColumnType("real") + .HasColumnName("MFTANN"); + + b.Property("Mftpipe") + .HasColumnType("real") + .HasColumnName("MFTPIPE"); + + b.Property("Mg1") + .HasColumnType("real") + .HasColumnName("MG1"); + + b.Property("Mg1c") + .HasColumnType("real") + .HasColumnName("MG1C"); + + b.Property("Mg2") + .HasColumnType("real") + .HasColumnName("MG2"); + + b.Property("Mg2c") + .HasColumnType("real") + .HasColumnName("MG2C"); + + b.Property("Mpo1") + .HasColumnType("real") + .HasColumnName("MPO1"); + + b.Property("Mpo2") + .HasColumnType("real") + .HasColumnName("MPO2"); + + b.Property("Mr1") + .HasColumnType("real") + .HasColumnName("MR1"); + + b.Property("Mr1c") + .HasColumnType("real") + .HasColumnName("MR1C"); + + b.Property("Mr2") + .HasColumnType("real") + .HasColumnName("MR2"); + + b.Property("Mr2c") + .HasColumnType("real") + .HasColumnName("MR2C"); + + b.Property("Passnum") + .HasColumnType("smallint") + .HasColumnName("PASSNUM"); + + b.Property("Spare1") + .HasColumnType("real") + .HasColumnName("SPARE1"); + + b.Property("Spare2") + .HasColumnType("real") + .HasColumnName("SPARE2"); + + b.Property("Spare3") + .HasColumnType("real") + .HasColumnName("SPARE3"); + + b.Property("Spare4") + .HasColumnType("real") + .HasColumnName("SPARE4"); + + b.Property("Spare5") + .HasColumnType("real") + .HasColumnName("SPARE5"); + + b.Property("Spare6") + .HasColumnType("real") + .HasColumnName("SPARE6"); + + b.Property("Spare7") + .HasColumnType("real") + .HasColumnName("SPARE7"); + + b.Property("Spare8") + .HasColumnType("real") + .HasColumnName("SPARE8"); + + b.Property("Spare9") + .HasColumnType("real") + .HasColumnName("SPARE9"); + + b.Property("TelemetryId") + .HasColumnType("integer"); + + b.HasIndex("TelemetryId"); + + b.ToTable("t_telemetry_wits_8"); + }); + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => { b.HasOne("AsbCloudDb.Model.Deposit", "Deposit") @@ -4870,6 +5565,96 @@ namespace AsbCloudDb.Migrations b.Navigation("WellSectionType"); }); + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record1", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record1", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record50", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record50", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record60", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record60", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record61", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record61", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record7", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record7", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + + modelBuilder.Entity("AsbCloudDb.Model.WITS.Record8", b => + { + b.HasOne("AsbCloudDb.Model.Telemetry", "Telemetry") + .WithMany() + .HasForeignKey("TelemetryId"); + + b.HasOne("AsbCloudDb.Model.WITS.RecordBase", null) + .WithOne() + .HasForeignKey("AsbCloudDb.Model.WITS.Record8", "IdTelemetry", "DateTime") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Telemetry"); + }); + modelBuilder.Entity("AsbCloudDb.Model.Cluster", b => { b.Navigation("Wells"); diff --git a/AsbCloudDb/Model/AsbCloudDbContext.cs b/AsbCloudDb/Model/AsbCloudDbContext.cs index 21722c5a..6eef0855 100644 --- a/AsbCloudDb/Model/AsbCloudDbContext.cs +++ b/AsbCloudDb/Model/AsbCloudDbContext.cs @@ -44,6 +44,14 @@ namespace AsbCloudDb.Model public virtual DbSet RelationUserRoleUserRoles { get; set; } public virtual DbSet RelationDrillingProgramPartUsers { get; set; } + // WITS + public DbSet Record1 { get; set; } + public DbSet Record7 { get; set; } + public DbSet Record8 { get; set; } + public DbSet Record50 { get; set; } + public DbSet Record60 { get; set; } + public DbSet Record61 { get; set; } + //var options = new DbContextOptionsBuilder() // .UseNpgsql("Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True") // .Options; @@ -111,7 +119,18 @@ namespace AsbCloudDb.Model .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("t_telemetry_data_saub_t_telemetry_id_fk"); - entity.HasKey(nameof(ITelemetryData.IdTelemetry), nameof(ITelemetryData.Date)); + entity.HasKey(nameof(ITelemetryData.IdTelemetry), nameof(ITelemetryData.DateTime)); + }); + + modelBuilder.Entity(entity => + { + //entity.HasOne(d => d.Telemetry) + // .WithMany(p => p.DataSaub) + // .HasForeignKey(d => d.IdTelemetry) + // .OnDelete(DeleteBehavior.Cascade) + // .HasConstraintName("t_telemetry_data_saub_t_telemetry_id_fk"); + + entity.HasKey(nameof(ITelemetryData.IdTelemetry), nameof(ITelemetryData.DateTime)); }); modelBuilder.Entity(entity => @@ -122,7 +141,7 @@ namespace AsbCloudDb.Model .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("t_telemetry_data_spin_t_telemetry_id_fk"); - entity.HasKey(nameof(ITelemetryData.IdTelemetry), nameof(ITelemetryData.Date)); + entity.HasKey(nameof(ITelemetryData.IdTelemetry), nameof(ITelemetryData.DateTime)); }); modelBuilder.Entity(entity => diff --git a/AsbCloudDb/Model/ITelemetryData.cs b/AsbCloudDb/Model/ITelemetryData.cs index cc55e8b9..0d1517b1 100644 --- a/AsbCloudDb/Model/ITelemetryData.cs +++ b/AsbCloudDb/Model/ITelemetryData.cs @@ -5,6 +5,6 @@ namespace AsbCloudDb.Model public interface ITelemetryData { int IdTelemetry { get; set; } - DateTimeOffset Date { get; set; } + DateTimeOffset DateTime { get; set; } } } diff --git a/AsbCloudDb/Model/TelemetryDataSaub.cs b/AsbCloudDb/Model/TelemetryDataSaub.cs index d414a13b..f386288a 100644 --- a/AsbCloudDb/Model/TelemetryDataSaub.cs +++ b/AsbCloudDb/Model/TelemetryDataSaub.cs @@ -17,7 +17,7 @@ namespace AsbCloudDb.Model public int? IdUser { get; set; } [Column("date", TypeName = "timestamp with time zone"), Comment("'2021-10-19 18:23:54+05'")] - public DateTimeOffset Date { get; set; } + public DateTimeOffset DateTime { get; set; } [Column("mode"), Comment("Режим САУБ")] public short? Mode { get; set; } diff --git a/AsbCloudDb/Model/TelemetryDataSpin.cs b/AsbCloudDb/Model/TelemetryDataSpin.cs index 344acd2b..8859a502 100644 --- a/AsbCloudDb/Model/TelemetryDataSpin.cs +++ b/AsbCloudDb/Model/TelemetryDataSpin.cs @@ -12,7 +12,7 @@ namespace AsbCloudDb.Model [Column("id_telemetry")] public int IdTelemetry { get; set; } [Column("date", TypeName = "timestamp with time zone"), Comment("'2021-10-19 18:23:54+05'")] - public DateTimeOffset Date { get; set; } + public DateTimeOffset DateTime { get; set; } [Column("top_drive_speed"), Comment("Скорость СВП")] public float? TopDriveSpeed { get; set; } diff --git a/AsbCloudDb/Model/TelemetryMessage.cs b/AsbCloudDb/Model/TelemetryMessage.cs index 468d443a..18c5442a 100644 --- a/AsbCloudDb/Model/TelemetryMessage.cs +++ b/AsbCloudDb/Model/TelemetryMessage.cs @@ -24,7 +24,7 @@ namespace AsbCloudDb.Model public int? IdTelemetryUser { get; set; } [Column("date", TypeName = "timestamp with time zone")] - public DateTimeOffset Date { get; set; } + public DateTimeOffset DateTime { get; set; } [Column("well_depth")] public double WellDepth { get; set; } diff --git a/AsbCloudDb/Model/WITS/Record1.cs b/AsbCloudDb/Model/WITS/Record1.cs new file mode 100644 index 00000000..c7ee23c5 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record1.cs @@ -0,0 +1,585 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: General Time-Based + /// Description: Drilling data gathered at regular time intervals + /// + [Table("t_telemetry_wits_1")] + public class Record1 : RecordBase + { + + /// + /// RecordId = 1, + /// ItemId = 8, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "Code indicating what activity is currently being performed on the rig. IT IS ESSENTIAL that this information be as accurate and current as possible. Acceptible codes are shownhere", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 9, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "Measured depth of the bit at the time the record is generated. This is the measured depth of the shoe when running casing or liner.", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITV")] + public float? Deptbitv { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "Vertical depth of the bit at the time the record is generated. This is the vertical depth of the shoe when running casing or liner.", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 11, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vet)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 12, + /// LongMnemonic = "BLKPOS", + /// ShortMnemonic = "BPOS", + /// Description = "Block Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BLKPOS")] + public float? Blkpos { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 13, + /// LongMnemonic = "ROPA", + /// ShortMnemonic = "ROPA", + /// Description = "Rate of Penetration (avg)", + /// Description2 = "", + /// FPSUnits = "F/HR", + /// MetricUnits = "M/HR", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ROPA")] + public float? Ropa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 14, + /// LongMnemonic = "HKLA", + /// ShortMnemonic = "HKLA", + /// Description = "Hookload (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLA")] + public float? Hkla { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 15, + /// LongMnemonic = "HKLX", + /// ShortMnemonic = "HKLX", + /// Description = "Hookload (max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLX")] + public float? Hklx { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 16, + /// LongMnemonic = "WOBA", + /// ShortMnemonic = "WOBA", + /// Description = "Weight-on-Bit (surf,avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WOBA")] + public float? Woba { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 17, + /// LongMnemonic = "WOBX", + /// ShortMnemonic = "WOBX", + /// Description = "Weight-on-Bit (surf,max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WOBX")] + public float? Wobx { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 18, + /// LongMnemonic = "TORQA", + /// ShortMnemonic = "TQA", + /// Description = "Rotary Torque (surf,avg)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TORQA")] + public float? Torqa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 19, + /// LongMnemonic = "TORQX", + /// ShortMnemonic = "TQX", + /// Description = "Rotary Torque (surf,max)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TORQX")] + public float? Torqx { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 20, + /// LongMnemonic = "RPMA", + /// ShortMnemonic = "RPMA", + /// Description = "Rotary Speed (surf,avg)", + /// Description2 = "", + /// FPSUnits = "RPM", + /// MetricUnits = "RPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("RPMA")] + public short? Rpma { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 21, + /// LongMnemonic = "SPPA", + /// ShortMnemonic = "SPPA", + /// Description = "Standpipe Pressure (avg)", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPPA")] + public float? Sppa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 22, + /// LongMnemonic = "CHKP", + /// ShortMnemonic = "CHKP", + /// Description = "Casing (Choke) Pressure", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CHKP")] + public float? Chkp { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 23, + /// LongMnemonic = "SPM1", + /// ShortMnemonic = "SPM1", + /// Description = "Pump Stroke Rate #1", + /// Description2 = "", + /// FPSUnits = "SPM", + /// MetricUnits = "SPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("SPM1")] + public short? Spm1 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 24, + /// LongMnemonic = "SPM2", + /// ShortMnemonic = "SPM2", + /// Description = "Pump Stroke Rate #2", + /// Description2 = "", + /// FPSUnits = "SPM", + /// MetricUnits = "SPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("SPM2")] + public short? Spm2 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 25, + /// LongMnemonic = "SPM3", + /// ShortMnemonic = "SPM3", + /// Description = "Pump Stroke Rate #3", + /// Description2 = "", + /// FPSUnits = "SPM", + /// MetricUnits = "SPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("SPM3")] + public short? Spm3 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 26, + /// LongMnemonic = "TVOLACT", + /// ShortMnemonic = "TVA", + /// Description = "Tank Volume (active)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOLACT")] + public float? Tvolact { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 27, + /// LongMnemonic = "TVOLCACT", + /// ShortMnemonic = "TVCA", + /// Description = "Tank Volume Change (act)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOLCACT")] + public float? Tvolcact { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 28, + /// LongMnemonic = "MFOP", + /// ShortMnemonic = "MFOP", + /// Description = "Mud Flow Out %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MFOP")] + public short? Mfop { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 29, + /// LongMnemonic = "MFOA", + /// ShortMnemonic = "MFOA", + /// Description = "Mud Flow Out (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFOA")] + public float? Mfoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 30, + /// LongMnemonic = "MFIA", + /// ShortMnemonic = "MFIA", + /// Description = "Mud Flow In (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFIA")] + public float? Mfia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 31, + /// LongMnemonic = "MDOA", + /// ShortMnemonic = "MDOA", + /// Description = "Mud Density Out (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MDOA")] + public float? Mdoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 32, + /// LongMnemonic = "MDIA", + /// ShortMnemonic = "MDIA", + /// Description = "Mud Density In (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MDIA")] + public float? Mdia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 33, + /// LongMnemonic = "MTOA", + /// ShortMnemonic = "MTOA", + /// Description = "Mud Temperature Out (avg)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MTOA")] + public float? Mtoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 34, + /// LongMnemonic = "MTIA", + /// ShortMnemonic = "MTIA", + /// Description = "Mud Temperature In (avg)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MTIA")] + public float? Mtia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 35, + /// LongMnemonic = "MCOA", + /// ShortMnemonic = "MCOA", + /// Description = "Mud Conductivity Out (avg)", + /// Description2 = "", + /// FPSUnits = "MMHO", + /// MetricUnits = "MMHO", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MCOA")] + public float? Mcoa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 36, + /// LongMnemonic = "MCIA", + /// ShortMnemonic = "MCIA", + /// Description = "Mud Conductivity In (avg)", + /// Description2 = "", + /// FPSUnits = "MMHO", + /// MetricUnits = "MMHO", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MCIA")] + public float? Mcia { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 37, + /// LongMnemonic = "STKC", + /// ShortMnemonic = "STKC", + /// Description = "Pump Stroke Count (cum)", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("STKC")] + public int? Stkc { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 38, + /// LongMnemonic = "LAGSTKS", + /// ShortMnemonic = "LSTK", + /// Description = "Lag Strokes", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("LAGSTKS")] + public short? Lagstks { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 39, + /// LongMnemonic = "DEPTRETM", + /// ShortMnemonic = "DRTM", + /// Description = "Depth Returns (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRETM")] + public float? Deptretm { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 40, + /// LongMnemonic = "GASA", + /// ShortMnemonic = "GASA", + /// Description = "Gas (avg)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("GASA")] + public float? Gasa { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 41, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 42, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 43, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 44, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 45, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record10.cs b/AsbCloudDb/Model/WITS/Record10.cs new file mode 100644 index 00000000..baabe8d2 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record10.cs @@ -0,0 +1,405 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Pressure Evaluation + /// Description: Pressure Evaluation data + /// Description2: + /// + [Table("t_telemetry_wits_10")] + public class Record10: RecordBase { + + /// + /// RecordId = 10, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 10, + /// LongMnemonic = "DEPTSAMM", + /// ShortMnemonic = "DSAM", + /// Description = "Depth Sample (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSAMM")] + public float? Deptsamm { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 11, + /// LongMnemonic = "DEPTSAMV", + /// ShortMnemonic = "DSAV", + /// Description = "Depth Sample (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSAMV")] + public float? Deptsamv { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 12, + /// LongMnemonic = "FPOREPG", + /// ShortMnemonic = "FPPG", + /// Description = "Est. Form. Pore Press Grad.", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FPOREPG")] + public float? Fporepg { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 13, + /// LongMnemonic = "FFRACPG", + /// ShortMnemonic = "FFPG", + /// Description = "Est. Form. Frac Press Grad.", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FFRACPG")] + public float? Ffracpg { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 14, + /// LongMnemonic = "FOBPG", + /// ShortMnemonic = "FOPG", + /// Description = "Est. Form. Overburden Grad.", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FOBPG")] + public float? Fobpg { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 15, + /// LongMnemonic = "KTOL", + /// ShortMnemonic = "KTOL", + /// Description = "Est. Kick Tolerance", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("KTOL")] + public float? Ktol { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 16, + /// LongMnemonic = "PSIPX", + /// ShortMnemonic = "PSIP", + /// Description = "Max. Permitted SICP (init)", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PSIPX")] + public float? Psipx { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 17, + /// LongMnemonic = "CONNGASA", + /// ShortMnemonic = "CGSA", + /// Description = "Connection Gas (avg)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CONNGASA")] + public float? Conngasa { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 18, + /// LongMnemonic = "CONNGASX", + /// ShortMnemonic = "CGSX", + /// Description = "Connection Gas (max)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CONNGASX")] + public float? Conngasx { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 19, + /// LongMnemonic = "CONNGASL", + /// ShortMnemonic = "CGSL", + /// Description = "Connection Gas (last)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CONNGASL")] + public float? Conngasl { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 20, + /// LongMnemonic = "TRIPGAS", + /// ShortMnemonic = "TGAS", + /// Description = "Last Trip Gas", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TRIPGAS")] + public float? Tripgas { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 21, + /// LongMnemonic = "SHALEDEN", + /// ShortMnemonic = "SDEN", + /// Description = "Shale Density", + /// Description2 = "", + /// FPSUnits = "G/CC", + /// MetricUnits = "G/CC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SHALEDEN")] + public float? Shaleden { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 22, + /// LongMnemonic = "CEC", + /// ShortMnemonic = "CEC", + /// Description = "Cuttings CEC", + /// Description2 = "", + /// FPSUnits = "MEHG", + /// MetricUnits = "MEHG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEC")] + public float? Cec { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 23, + /// LongMnemonic = "CAVINGS", + /// ShortMnemonic = "CAV", + /// Description = "Cavings %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CAVINGS")] + public short? Cavings { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 24, + /// LongMnemonic = "DXC", + /// ShortMnemonic = "DXC", + /// Description = "Corr. Drilling Exponent", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DXC")] + public float? Dxc { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 25, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 26, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 27, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 28, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 29, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 30, + /// LongMnemonic = "SPARE6", + /// ShortMnemonic = "SPR6", + /// Description = "< SPARE 6>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE6")] + public float? Spare6 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 31, + /// LongMnemonic = "SPARE7", + /// ShortMnemonic = "SPR7", + /// Description = "< SPARE 7>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE7")] + public float? Spare7 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 32, + /// LongMnemonic = "SPARE8", + /// ShortMnemonic = "SPR8", + /// Description = "< SPARE 8>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE8")] + public float? Spare8 { get; set; } + + /// + /// RecordId = 10, + /// ItemId = 33, + /// LongMnemonic = "SPARE9", + /// ShortMnemonic = "SPR9", + /// Description = "< SPARE 9>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE9")] + public float? Spare9 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record11.cs b/AsbCloudDb/Model/WITS/Record11.cs new file mode 100644 index 00000000..8c5bbe14 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record11.cs @@ -0,0 +1,435 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Mud Tank Volumes + /// Description: Mud Tank (Pit) Volume data + /// Description2: + /// + [Table("t_telemetry_wits_11")] + public class Record11: RecordBase { + + /// + /// RecordId = 11, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 10, + /// LongMnemonic = "TVOLTOT", + /// ShortMnemonic = "TVT", + /// Description = "Tank Volume (total)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOLTOT")] + public float? Tvoltot { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 11, + /// LongMnemonic = "TVOLACT", + /// ShortMnemonic = "TVA", + /// Description = "Tank Volume (active)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOLACT")] + public float? Tvolact { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 12, + /// LongMnemonic = "TVOLCTOT", + /// ShortMnemonic = "TVCT", + /// Description = "Tank Volume Change (total)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOLCTOT")] + public float? Tvolctot { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 13, + /// LongMnemonic = "TVOLCACT", + /// ShortMnemonic = "TVCA", + /// Description = "Tank Volume Change (active)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOLCACT")] + public float? Tvolcact { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 14, + /// LongMnemonic = "TVRESET", + /// ShortMnemonic = "TVRT", + /// Description = "Tank Volume Reset Time", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("TVRESET")] + public int? Tvreset { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 15, + /// LongMnemonic = "TVOL01", + /// ShortMnemonic = "TV01", + /// Description = "Tank 01 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL01")] + public float? Tvol01 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 16, + /// LongMnemonic = "TVOL02", + /// ShortMnemonic = "TV02", + /// Description = "Tank 02 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL02")] + public float? Tvol02 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 17, + /// LongMnemonic = "TVOL03", + /// ShortMnemonic = "TV03", + /// Description = "Tank 03 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL03")] + public float? Tvol03 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 18, + /// LongMnemonic = "TVOL04", + /// ShortMnemonic = "TV04", + /// Description = "Tank 04 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL04")] + public float? Tvol04 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 19, + /// LongMnemonic = "TVOL05", + /// ShortMnemonic = "TV05", + /// Description = "Tank 05 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL05")] + public float? Tvol05 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 20, + /// LongMnemonic = "TVOL06", + /// ShortMnemonic = "TV06", + /// Description = "Tank 06 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL06")] + public float? Tvol06 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 21, + /// LongMnemonic = "TVOL07", + /// ShortMnemonic = "TV07", + /// Description = "Tank 07 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL07")] + public float? Tvol07 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 22, + /// LongMnemonic = "TVOL08", + /// ShortMnemonic = "TV08", + /// Description = "Tank 08 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL08")] + public float? Tvol08 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 23, + /// LongMnemonic = "TVOL09", + /// ShortMnemonic = "TV09", + /// Description = "Tank 09 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL09")] + public float? Tvol09 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 24, + /// LongMnemonic = "TVOL10", + /// ShortMnemonic = "TV10", + /// Description = "Tank 10 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL10")] + public float? Tvol10 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 25, + /// LongMnemonic = "TVOL11", + /// ShortMnemonic = "TV11", + /// Description = "Tank 11 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL11")] + public float? Tvol11 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 26, + /// LongMnemonic = "TVOL12", + /// ShortMnemonic = "TV12", + /// Description = "Tank 12 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL12")] + public float? Tvol12 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 27, + /// LongMnemonic = "TVOL13", + /// ShortMnemonic = "TV13", + /// Description = "Tank 13 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL13")] + public float? Tvol13 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 28, + /// LongMnemonic = "TVOL14", + /// ShortMnemonic = "TV14", + /// Description = "Tank 14 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOL14")] + public float? Tvol14 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 29, + /// LongMnemonic = "TTVOL1", + /// ShortMnemonic = "TTV1", + /// Description = "Trip Tank 1 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TTVOL1")] + public float? Ttvol1 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 30, + /// LongMnemonic = "TTVOL2", + /// ShortMnemonic = "TTV2", + /// Description = "Trip Tank 2 Volume", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TTVOL2")] + public float? Ttvol2 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 31, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 32, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 33, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 34, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 11, + /// ItemId = 35, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record12.cs b/AsbCloudDb/Model/WITS/Record12.cs new file mode 100644 index 00000000..f13f820b --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record12.cs @@ -0,0 +1,330 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Chromatograph Cycle-Based + /// Description: Chromatograph Cycle data + /// Description2: + /// + [Table("t_telemetry_wits_12")] + public class Record12: RecordBase { + + /// + /// RecordId = 12, + /// ItemId = 8, + /// LongMnemonic = "DEPTCHRM", + /// ShortMnemonic = "DCHM", + /// Description = "Depth Chrom Sample (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCHRM")] + public float? Deptchrm { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 9, + /// LongMnemonic = "DEPTCHRV", + /// ShortMnemonic = "DCHV", + /// Description = "Depth Chrom Sample (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCHRV")] + public float? Deptchrv { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 10, + /// LongMnemonic = "DATECHR", + /// ShortMnemonic = "DCHR", + /// Description = "Date Chrom Sample", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("DATECHR")] + public int? Datechr { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 11, + /// LongMnemonic = "TIMECHR", + /// ShortMnemonic = "TCHR", + /// Description = "Time Chrom Sample", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("TIMECHR")] + public int? Timechr { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 12, + /// LongMnemonic = "METHANE", + /// ShortMnemonic = "METH", + /// Description = "Methane (C1)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("METHANE")] + public int? Methane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 13, + /// LongMnemonic = "ETHANE", + /// ShortMnemonic = "ETH", + /// Description = "Ethane (C2)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("ETHANE")] + public int? Ethane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 14, + /// LongMnemonic = "PROPANE", + /// ShortMnemonic = "PRP", + /// Description = "Propane (C3)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("PROPANE")] + public int? Propane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 15, + /// LongMnemonic = "IBUTANE", + /// ShortMnemonic = "IBUT", + /// Description = "Iso-Butane (IC4)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IBUTANE")] + public int? Ibutane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 16, + /// LongMnemonic = "NBUTANE", + /// ShortMnemonic = "NBUT", + /// Description = "Nor-Butane (NC4)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NBUTANE")] + public int? Nbutane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 17, + /// LongMnemonic = "IPENTANE", + /// ShortMnemonic = "IPEN", + /// Description = "Iso-Pentane (IC5)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IPENTANE")] + public int? Ipentane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 18, + /// LongMnemonic = "NPENTANE", + /// ShortMnemonic = "NPEN", + /// Description = "Nor-Pentane (NC5)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NPENTANE")] + public int? Npentane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 19, + /// LongMnemonic = "EPENTANE", + /// ShortMnemonic = "EPEN", + /// Description = "Neo-Pentane (EC5)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("EPENTANE")] + public int? Epentane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 20, + /// LongMnemonic = "IHEXANE", + /// ShortMnemonic = "IHEX", + /// Description = "Iso-Hexane (IC6)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IHEXANE")] + public int? Ihexane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 21, + /// LongMnemonic = "NHEXANE", + /// ShortMnemonic = "NHEX", + /// Description = "Nor-Hexane (NC6)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NHEXANE")] + public int? Nhexane { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 22, + /// LongMnemonic = "CO2", + /// ShortMnemonic = "CO2", + /// Description = "Carbon Dioxide", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("CO2")] + public int? Co2 { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 23, + /// LongMnemonic = "ACET", + /// ShortMnemonic = "ACET", + /// Description = "Acetylene", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("ACET")] + public int? Acet { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 24, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 25, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 26, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 27, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 12, + /// ItemId = 28, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record13.cs b/AsbCloudDb/Model/WITS/Record13.cs new file mode 100644 index 00000000..5723fe2c --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record13.cs @@ -0,0 +1,630 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Chromatograph Depth-Based + /// Description: Chromatograph data averaged over depth intervals + /// Description2: + /// + [Table("t_telemetry_wits_13")] + public class Record13: RecordBase { + + /// + /// RecordId = 13, + /// ItemId = 8, + /// LongMnemonic = "DEPTRETM", + /// ShortMnemonic = "DRTM", + /// Description = "Depth Returns (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRETM")] + public float? Deptretm { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 9, + /// LongMnemonic = "DEPTRETV", + /// ShortMnemonic = "DRTV", + /// Description = "Depth Returns (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRETV")] + public float? Deptretv { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 10, + /// LongMnemonic = "METHA", + /// ShortMnemonic = "MTHA", + /// Description = "Methane (C1) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("METHA")] + public int? Metha { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 11, + /// LongMnemonic = "METHN", + /// ShortMnemonic = "MTHN", + /// Description = "Methane (C1) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("METHN")] + public int? Methn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 12, + /// LongMnemonic = "METHX", + /// ShortMnemonic = "MTHX", + /// Description = "Methane (C1) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("METHX")] + public int? Methx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 13, + /// LongMnemonic = "ETHA", + /// ShortMnemonic = "ETHA", + /// Description = "Ethane (C2) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("ETHA")] + public int? Etha { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 14, + /// LongMnemonic = "ETHN", + /// ShortMnemonic = "ETHN", + /// Description = "Ethane (C2) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("ETHN")] + public int? Ethn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 15, + /// LongMnemonic = "ETHX", + /// ShortMnemonic = "ETHX", + /// Description = "Ethane (C2) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("ETHX")] + public int? Ethx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 16, + /// LongMnemonic = "PROPA", + /// ShortMnemonic = "PRPA", + /// Description = "Propane (C3) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("PROPA")] + public int? Propa { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 17, + /// LongMnemonic = "PROPN", + /// ShortMnemonic = "PRPN", + /// Description = "Propane (C3) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("PROPN")] + public int? Propn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 18, + /// LongMnemonic = "PROPX", + /// ShortMnemonic = "PRPX", + /// Description = "Propane (C3) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("PROPX")] + public int? Propx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 19, + /// LongMnemonic = "IBUTA", + /// ShortMnemonic = "IBTA", + /// Description = "Iso-Butane (IC4) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IBUTA")] + public int? Ibuta { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 20, + /// LongMnemonic = "IBUTN", + /// ShortMnemonic = "IBTN", + /// Description = "Iso-Butane (IC4) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IBUTN")] + public int? Ibutn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 21, + /// LongMnemonic = "IBUTX", + /// ShortMnemonic = "IBTX", + /// Description = "Iso-Butane (IC4) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IBUTX")] + public int? Ibutx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 22, + /// LongMnemonic = "NBUTA", + /// ShortMnemonic = "NBTA", + /// Description = "Nor-Butane (NC4) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NBUTA")] + public int? Nbuta { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 23, + /// LongMnemonic = "NBUTN", + /// ShortMnemonic = "NBTN", + /// Description = "Nor-Butane (NC4) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NBUTN")] + public int? Nbutn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 24, + /// LongMnemonic = "NBUTX", + /// ShortMnemonic = "NBTX", + /// Description = "Nor-Butane (NC4) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NBUTX")] + public int? Nbutx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 25, + /// LongMnemonic = "IPENTA", + /// ShortMnemonic = "IPNA", + /// Description = "Iso-Pentane (IC5) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IPENTA")] + public int? Ipenta { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 26, + /// LongMnemonic = "IPENTN", + /// ShortMnemonic = "IPNN", + /// Description = "Iso-Pentane (IC5) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IPENTN")] + public int? Ipentn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 27, + /// LongMnemonic = "IPENTX", + /// ShortMnemonic = "IPNX", + /// Description = "Iso-Pentane (IC5) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IPENTX")] + public int? Ipentx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 28, + /// LongMnemonic = "NPENTA", + /// ShortMnemonic = "NPNA", + /// Description = "Nor-Pentane (NC5) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NPENTA")] + public int? Npenta { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 29, + /// LongMnemonic = "NPENTN", + /// ShortMnemonic = "NPNN", + /// Description = "Nor-Pentane (NC5) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NPENTN")] + public int? Npentn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 30, + /// LongMnemonic = "NPENTX", + /// ShortMnemonic = "NPNX", + /// Description = "Nor-Pentane (NC5) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NPENTX")] + public int? Npentx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 31, + /// LongMnemonic = "EPENTA", + /// ShortMnemonic = "EPNA", + /// Description = "Neo-Pentane (EC5) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("EPENTA")] + public int? Epenta { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 32, + /// LongMnemonic = "EPENTN", + /// ShortMnemonic = "EPNN", + /// Description = "Neo-Pentane (EC5) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("EPENTN")] + public int? Epentn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 33, + /// LongMnemonic = "EPENTX", + /// ShortMnemonic = "EPNX", + /// Description = "Neo-Pentane (EC5) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("EPENTX")] + public int? Epentx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 34, + /// LongMnemonic = "IHEXA", + /// ShortMnemonic = "IHXA", + /// Description = "Iso-Hexane (IC6) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IHEXA")] + public int? Ihexa { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 35, + /// LongMnemonic = "IHEXN", + /// ShortMnemonic = "IHXN", + /// Description = "Iso-Hexane (IC6) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IHEXN")] + public int? Ihexn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 36, + /// LongMnemonic = "IHEXX", + /// ShortMnemonic = "IHXX", + /// Description = "Iso-Hexane (IC6) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IHEXX")] + public int? Ihexx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 37, + /// LongMnemonic = "NHEXA", + /// ShortMnemonic = "NHXA", + /// Description = "Nor-Hexane (NC6) (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NHEXA")] + public int? Nhexa { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 38, + /// LongMnemonic = "NHEXN", + /// ShortMnemonic = "NHXN", + /// Description = "Nor-Hexane (NC6) (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NHEXN")] + public int? Nhexn { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 39, + /// LongMnemonic = "NHEXX", + /// ShortMnemonic = "NHXX", + /// Description = "Nor-Hexane (NC6) (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NHEXX")] + public int? Nhexx { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 40, + /// LongMnemonic = "CO2A", + /// ShortMnemonic = "CO2A", + /// Description = "Carbon Dioxide (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("CO2A")] + public int? Co2a { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 41, + /// LongMnemonic = "CO2N", + /// ShortMnemonic = "CO2N", + /// Description = "Carbon Dioxide (min)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("CO2N")] + public int? Co2n { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 42, + /// LongMnemonic = "CO2X", + /// ShortMnemonic = "CO2X", + /// Description = "Carbon Dioxide (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("CO2X")] + public int? Co2x { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 43, + /// LongMnemonic = "ACET", + /// ShortMnemonic = "ACET", + /// Description = "Acetylene", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("ACET")] + public int? Acet { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 44, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 45, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 46, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 47, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 13, + /// ItemId = 48, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record14.cs b/AsbCloudDb/Model/WITS/Record14.cs new file mode 100644 index 00000000..229eb548 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record14.cs @@ -0,0 +1,345 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Lagged Mud Properties + /// Description: Mud Property data based returns depth increments + /// Description2: + /// + [Table("t_telemetry_wits_14")] + public class Record14: RecordBase { + + /// + /// RecordId = 14, + /// ItemId = 8, + /// LongMnemonic = "DEPTRETM", + /// ShortMnemonic = "DRTM", + /// Description = "Depth Returns (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRETM")] + public float? Deptretm { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 9, + /// LongMnemonic = "DEPTRETV", + /// ShortMnemonic = "DRTV", + /// Description = "Depth Returns (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRETV")] + public float? Deptretv { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 10, + /// LongMnemonic = "MDIL", + /// ShortMnemonic = "MDIL", + /// Description = "Mud Density In (lagd)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MDIL")] + public float? Mdil { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 11, + /// LongMnemonic = "MDOA", + /// ShortMnemonic = "MDOA", + /// Description = "Mud Density Out (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MDOA")] + public float? Mdoa { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 12, + /// LongMnemonic = "MTIL", + /// ShortMnemonic = "MTIL", + /// Description = "Mud Temperature In (lagd)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MTIL")] + public float? Mtil { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 13, + /// LongMnemonic = "MTOA", + /// ShortMnemonic = "MTOA", + /// Description = "Mud Temperature Out (avg)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MTOA")] + public float? Mtoa { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 14, + /// LongMnemonic = "MCIL", + /// ShortMnemonic = "MCIL", + /// Description = "Mud Conductivity In (lagd)", + /// Description2 = "", + /// FPSUnits = "MMHO", + /// MetricUnits = "MMHO", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MCIL")] + public float? Mcil { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 15, + /// LongMnemonic = "MCOA", + /// ShortMnemonic = "MCOA", + /// Description = "Mud Conductivity Out (avg)", + /// Description2 = "", + /// FPSUnits = "MMHO", + /// MetricUnits = "MMHO", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MCOA")] + public float? Mcoa { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 16, + /// LongMnemonic = "HSHPA", + /// ShortMnemonic = "HHPA", + /// Description = "Hyd.Sulfide Haz.Pot. (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HSHPA")] + public float? Hshpa { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 17, + /// LongMnemonic = "HSPHA", + /// ShortMnemonic = "HPHA", + /// Description = "Hyd.Sulfide pH (avg)", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HSPHA")] + public float? Hspha { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 18, + /// LongMnemonic = "HSPHSA", + /// ShortMnemonic = "HPSA", + /// Description = "Hyd.Sulfide pHS (avg)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HSPHSA")] + public float? Hsphsa { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 19, + /// LongMnemonic = "GASIL", + /// ShortMnemonic = "GSIL", + /// Description = "Gas In (lagd)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("GASIL")] + public float? Gasil { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 20, + /// LongMnemonic = "GASA", + /// ShortMnemonic = "GASA", + /// Description = "Gas (avg)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("GASA")] + public float? Gasa { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 21, + /// LongMnemonic = "GASX", + /// ShortMnemonic = "GASX", + /// Description = "Gas (max)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("GASX")] + public float? Gasx { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 22, + /// LongMnemonic = "CO2A", + /// ShortMnemonic = "CO2A", + /// Description = "Carbon Dioxide (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("CO2A")] + public int? Co2a { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 23, + /// LongMnemonic = "HSA", + /// ShortMnemonic = "HSA", + /// Description = "Hydrogen Sulfide (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("HSA")] + public int? Hsa { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 24, + /// LongMnemonic = "HSX", + /// ShortMnemonic = "HSX", + /// Description = "Hydrogen Sulfide (max)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("HSX")] + public int? Hsx { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 25, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 26, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 27, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 28, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 14, + /// ItemId = 29, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record15.cs b/AsbCloudDb/Model/WITS/Record15.cs new file mode 100644 index 00000000..00781033 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record15.cs @@ -0,0 +1,795 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Cuttings / Lithology + /// Description: Cuttings Lithology and related data + /// Description2: + /// + [Table("t_telemetry_wits_15")] + public class Record15: RecordBase { + + /// + /// RecordId = 15, + /// ItemId = 8, + /// LongMnemonic = "DEPTSAMM", + /// ShortMnemonic = "DSAM", + /// Description = "Depth Sample (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSAMM")] + public float? Deptsamm { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 9, + /// LongMnemonic = "DEPTSAMV", + /// ShortMnemonic = "DSAV", + /// Description = "Depth Sample (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSAMV")] + public float? Deptsamv { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 10, + /// LongMnemonic = "DESCTYPE", + /// ShortMnemonic = "DESC", + /// Description = "Description type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("DESCTYPE")] + public string? Desctype { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 11, + /// LongMnemonic = "L1TYPE", + /// ShortMnemonic = "L1TY", + /// Description = "Lith 1 type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1TYPE")] + public string? L1type { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 12, + /// LongMnemonic = "L1PERC", + /// ShortMnemonic = "L1PC", + /// Description = "Lith 1 %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("L1PERC")] + public short? L1perc { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 13, + /// LongMnemonic = "L1CLASS", + /// ShortMnemonic = "L1CL", + /// Description = "Lith 1 classification", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1CLASS")] + public string? L1class { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 14, + /// LongMnemonic = "L1COLOR", + /// ShortMnemonic = "L1CO", + /// Description = "Lith 1 color", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1COLOR")] + public string? L1color { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 15, + /// LongMnemonic = "L1TEXT", + /// ShortMnemonic = "L1TX", + /// Description = "Lith 1 texture", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1TEXT")] + public string? L1text { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 16, + /// LongMnemonic = "L1HARD", + /// ShortMnemonic = "L1HD", + /// Description = "Lith 1 hardness", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1HARD")] + public string? L1hard { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 17, + /// LongMnemonic = "L1SIZE", + /// ShortMnemonic = "L1SZ", + /// Description = "Lith 1 grain size", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1SIZE")] + public string? L1size { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 18, + /// LongMnemonic = "L1ROUND", + /// ShortMnemonic = "L1RD", + /// Description = "Lith 1 roundness", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1ROUND")] + public string? L1round { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 19, + /// LongMnemonic = "L1SORT", + /// ShortMnemonic = "L1SO", + /// Description = "Lith 1 sorting", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1SORT")] + public string? L1sort { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 20, + /// LongMnemonic = "L1MATCEM", + /// ShortMnemonic = "L1MC", + /// Description = "Lith 1 matrix/cement", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1MATCEM")] + public string? L1matcem { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 21, + /// LongMnemonic = "L1ACC", + /// ShortMnemonic = "L1AC", + /// Description = "Lith 1 accessories", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L1ACC")] + public string? L1acc { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 22, + /// LongMnemonic = "L1POR", + /// ShortMnemonic = "L1PO", + /// Description = "Lith 1 porosity", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("L1POR")] + public float? L1por { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 23, + /// LongMnemonic = "L1PERM", + /// ShortMnemonic = "L1PE", + /// Description = "Lith 1 permeability", + /// Description2 = "", + /// FPSUnits = "MD", + /// MetricUnits = "MD", + /// Length = 4, + /// ValueType = "F" + /// + [Column("L1PERM")] + public float? L1perm { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 24, + /// LongMnemonic = "L2TYPE", + /// ShortMnemonic = "L2TY", + /// Description = "Lith 2 type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2TYPE")] + public string? L2type { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 25, + /// LongMnemonic = "L2PERC", + /// ShortMnemonic = "L2PC", + /// Description = "Lith 2 %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("L2PERC")] + public short? L2perc { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 26, + /// LongMnemonic = "L2CLASS", + /// ShortMnemonic = "L2CL", + /// Description = "Lith 2 classification", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2CLASS")] + public string? L2class { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 27, + /// LongMnemonic = "L2COLOR", + /// ShortMnemonic = "L2CO", + /// Description = "Lith 2 color", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2COLOR")] + public string? L2color { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 28, + /// LongMnemonic = "L2TEXT", + /// ShortMnemonic = "L2TX", + /// Description = "Lith 2 texture", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2TEXT")] + public string? L2text { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 29, + /// LongMnemonic = "L2HARD", + /// ShortMnemonic = "L2HD", + /// Description = "Lith 2 hardness", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2HARD")] + public string? L2hard { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 30, + /// LongMnemonic = "L2SIZE", + /// ShortMnemonic = "L2SZ", + /// Description = "Lith 2 grain size", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2SIZE")] + public string? L2size { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 31, + /// LongMnemonic = "L2ROUND", + /// ShortMnemonic = "L2RD", + /// Description = "Lith 2 roundness", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2ROUND")] + public string? L2round { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 32, + /// LongMnemonic = "L2SORT", + /// ShortMnemonic = "L2SO", + /// Description = "Lith 2 sorting", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2SORT")] + public string? L2sort { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 33, + /// LongMnemonic = "L2MATCEM", + /// ShortMnemonic = "L2MC", + /// Description = "Lith 2 matrix/cement", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2MATCEM")] + public string? L2matcem { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 34, + /// LongMnemonic = "L2ACC", + /// ShortMnemonic = "L2AC", + /// Description = "Lith 2 accessories", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L2ACC")] + public string? L2acc { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 35, + /// LongMnemonic = "L2POR", + /// ShortMnemonic = "L2PO", + /// Description = "Lith 2 porosity", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("L2POR")] + public float? L2por { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 36, + /// LongMnemonic = "L2PERM", + /// ShortMnemonic = "L2PE", + /// Description = "Lith 2 permeability", + /// Description2 = "", + /// FPSUnits = "MD", + /// MetricUnits = "MD", + /// Length = 4, + /// ValueType = "F" + /// + [Column("L2PERM")] + public float? L2perm { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 37, + /// LongMnemonic = "L3TYPE", + /// ShortMnemonic = "L3TY", + /// Description = "Lith 3 type", + /// Description2 = "", + /// FPSUnits = "---", + /// MetricUnits = "-----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L3TYPE")] + public string? L3type { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 38, + /// LongMnemonic = "L3PERC", + /// ShortMnemonic = "L3PC", + /// Description = "Lith 3 %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("L3PERC")] + public short? L3perc { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 39, + /// LongMnemonic = "L3CLASS", + /// ShortMnemonic = "L3CL", + /// Description = "Lith 3 classification", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L3CLASS")] + public string? L3class { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 40, + /// LongMnemonic = "L4TYPE", + /// ShortMnemonic = "L4TY", + /// Description = "Lith 4 type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L4TYPE")] + public string? L4type { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 41, + /// LongMnemonic = "L4PERC", + /// ShortMnemonic = "L4PC", + /// Description = "Lith 4 %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("L4PERC")] + public short? L4perc { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 42, + /// LongMnemonic = "L4CLASS", + /// ShortMnemonic = "L4CL", + /// Description = "Lith 4 classification", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L4CLASS")] + public string? L4class { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 43, + /// LongMnemonic = "L5TYPE", + /// ShortMnemonic = "L5TY", + /// Description = "Lith 5 type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L5TYPE")] + public string? L5type { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 44, + /// LongMnemonic = "L5PERC", + /// ShortMnemonic = "L5PC", + /// Description = "Lith 5 %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("L5PERC")] + public short? L5perc { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 45, + /// LongMnemonic = "L5CLASS", + /// ShortMnemonic = "L5CL", + /// Description = "Lith 5 classification", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("L5CLASS")] + public string? L5class { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 46, + /// LongMnemonic = "FOSS", + /// ShortMnemonic = "FOSS", + /// Description = "Fossils", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("FOSS")] + public string? Foss { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 47, + /// LongMnemonic = "COMPSHOW", + /// ShortMnemonic = "SHOW", + /// Description = "Composite Show", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("COMPSHOW")] + public string? Compshow { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 48, + /// LongMnemonic = "BULKDEN", + /// ShortMnemonic = "BDEN", + /// Description = "Bulk Density", + /// Description2 = "", + /// FPSUnits = "G/CC", + /// MetricUnits = "G/CC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BULKDEN")] + public float? Bulkden { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 49, + /// LongMnemonic = "GASCUTT", + /// ShortMnemonic = "GCUT", + /// Description = "Cuttings Gas", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("GASCUTT")] + public float? Gascutt { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 50, + /// LongMnemonic = "CCAL", + /// ShortMnemonic = "CCAL", + /// Description = "Calcimetry Calcite %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CCAL")] + public float? Ccal { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 51, + /// LongMnemonic = "CDOL", + /// ShortMnemonic = "CDOL", + /// Description = "Calcimetry Dolomite %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CDOL")] + public float? Cdol { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 52, + /// LongMnemonic = "CEC", + /// ShortMnemonic = "CEC", + /// Description = "Cuttings CEC", + /// Description2 = "", + /// FPSUnits = "MEHG", + /// MetricUnits = "MEHG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEC")] + public float? Cec { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 53, + /// LongMnemonic = "CAVINGS", + /// ShortMnemonic = "CAV", + /// Description = "Cavings %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CAVINGS")] + public short? Cavings { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 54, + /// LongMnemonic = "SHALEDEN", + /// ShortMnemonic = "SDEN", + /// Description = "Shale Density", + /// Description2 = "", + /// FPSUnits = "G/CC", + /// MetricUnits = "G/CC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SHALEDEN")] + public float? Shaleden { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 55, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 56, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 57, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 58, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 15, + /// ItemId = 59, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record16.cs b/AsbCloudDb/Model/WITS/Record16.cs new file mode 100644 index 00000000..a24d0547 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record16.cs @@ -0,0 +1,600 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Hydrocarbon Show + /// Description: Hydrocarbon Show related data + /// Description2: + /// + [Table("t_telemetry_wits_16")] + public class Record16: RecordBase { + + /// + /// RecordId = 16, + /// ItemId = 8, + /// LongMnemonic = "SHOWNUM", + /// ShortMnemonic = "SWNO", + /// Description = "Show Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("SHOWNUM")] + public short? Shownum { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 9, + /// LongMnemonic = "DEPTSITM", + /// ShortMnemonic = "DSTM", + /// Description = "Show Intvl Top Depth (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSITM")] + public float? Deptsitm { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 10, + /// LongMnemonic = "DEPTSITV", + /// ShortMnemonic = "DSTV", + /// Description = "Show Intvl Top Depth (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSITV")] + public float? Deptsitv { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 11, + /// LongMnemonic = "DEPTSIBM", + /// ShortMnemonic = "DSBM", + /// Description = "Show Intvl Bott Depth(meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSIBM")] + public float? Deptsibm { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 12, + /// LongMnemonic = "DEPTSIBV", + /// ShortMnemonic = "DSBV", + /// Description = "Show Intvl Bott Depth(vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSIBV")] + public float? Deptsibv { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 13, + /// LongMnemonic = "SHLTYPE", + /// ShortMnemonic = "WLTY", + /// Description = "Show Lith type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLTYPE")] + public string? Shltype { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 14, + /// LongMnemonic = "SHLCLASS", + /// ShortMnemonic = "WLCL", + /// Description = "Show Lith classification", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLCLASS")] + public string? Shlclass { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 15, + /// LongMnemonic = "SHLCOLOR", + /// ShortMnemonic = "WLCO", + /// Description = "Show Lith color", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLCOLOR")] + public string? Shlcolor { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 16, + /// LongMnemonic = "SHLTEXT", + /// ShortMnemonic = "WLTX", + /// Description = "Show Lith texture", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLTEXT")] + public string? Shltext { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 17, + /// LongMnemonic = "SHLHARD", + /// ShortMnemonic = "WLHD", + /// Description = "Show Lith hardness", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLHARD")] + public string? Shlhard { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 18, + /// LongMnemonic = "SHLSIZE", + /// ShortMnemonic = "WLSZ", + /// Description = "Show Lith grain size", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLSIZE")] + public string? Shlsize { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 19, + /// LongMnemonic = "SHLROUND", + /// ShortMnemonic = "WLRD", + /// Description = "Show Lith roundness", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLROUND")] + public string? Shlround { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 20, + /// LongMnemonic = "SHLSORT", + /// ShortMnemonic = "WLSO", + /// Description = "Show Lith sorting", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLSORT")] + public string? Shlsort { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 21, + /// LongMnemonic = "SHLMC", + /// ShortMnemonic = "WLMC", + /// Description = "Show Lith matrix/cement", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLMC")] + public string? Shlmc { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 22, + /// LongMnemonic = "SHLACC", + /// ShortMnemonic = "WLAC", + /// Description = "Show Lith accessories", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLACC")] + public string? Shlacc { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 23, + /// LongMnemonic = "SHLPORV", + /// ShortMnemonic = "WLPV", + /// Description = "Show Lith porosity -visible", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("SHLPORV")] + public string? Shlporv { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 24, + /// LongMnemonic = "SHLPORM", + /// ShortMnemonic = "WLPM", + /// Description = "Show Lith porosity -meas", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SHLPORM")] + public float? Shlporm { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 25, + /// LongMnemonic = "SHLPERM", + /// ShortMnemonic = "WLPE", + /// Description = "Show Lith permeability", + /// Description2 = "", + /// FPSUnits = "MD", + /// MetricUnits = "MD", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SHLPERM")] + public float? Shlperm { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 26, + /// LongMnemonic = "SHLSTAIN", + /// ShortMnemonic = "WLST", + /// Description = "Show Lith stain description", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 64, + /// ValueType = "A" + /// + [Column("SHLSTAIN")] + public string? Shlstain { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 27, + /// LongMnemonic = "SHLFLUOR", + /// ShortMnemonic = "WLFL", + /// Description = "Show Lith fluor description", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 64, + /// ValueType = "A" + /// + [Column("SHLFLUOR")] + public string? Shlfluor { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 28, + /// LongMnemonic = "SHLCUT", + /// ShortMnemonic = "WLCT", + /// Description = "Show Lith cut description", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 64, + /// ValueType = "A" + /// + [Column("SHLCUT")] + public string? Shlcut { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 29, + /// LongMnemonic = "SHLGCUT", + /// ShortMnemonic = "WLGC", + /// Description = "Show Lith cuttings gas", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SHLGCUT")] + public float? Shlgcut { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 30, + /// LongMnemonic = "SHSAL", + /// ShortMnemonic = "WSAL", + /// Description = "Show titrated salinity", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("SHSAL")] + public int? Shsal { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 31, + /// LongMnemonic = "METHMUD", + /// ShortMnemonic = "MTHM", + /// Description = "Show Mud Smple Methane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("METHMUD")] + public int? Methmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 32, + /// LongMnemonic = "ETHMUD", + /// ShortMnemonic = "ETHM", + /// Description = "Show Mud Smple Ethane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("ETHMUD")] + public int? Ethmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 33, + /// LongMnemonic = "PROPMUD", + /// ShortMnemonic = "PRPM", + /// Description = "Show Mud Smple Propane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("PROPMUD")] + public int? Propmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 34, + /// LongMnemonic = "IBUTMUD", + /// ShortMnemonic = "IBTM", + /// Description = "Show Mud Smple I-Butane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IBUTMUD")] + public int? Ibutmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 35, + /// LongMnemonic = "NBUTMUD", + /// ShortMnemonic = "NBTM", + /// Description = "Show Mud Smple N-Butane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NBUTMUD")] + public int? Nbutmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 36, + /// LongMnemonic = "IPENMUD", + /// ShortMnemonic = "IPNM", + /// Description = "Show Mud Smple I-Pentane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IPENMUD")] + public int? Ipenmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 37, + /// LongMnemonic = "NPENMUD", + /// ShortMnemonic = "NPNM", + /// Description = "Show Mud Smple N-Pentane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NPENMUD")] + public int? Npenmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 38, + /// LongMnemonic = "EPENMUD", + /// ShortMnemonic = "EPNM", + /// Description = "Show Mud Smple N-Pentane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("EPENMUD")] + public int? Epenmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 39, + /// LongMnemonic = "IHEXMUD", + /// ShortMnemonic = "IHXM", + /// Description = "Show Mud Smple I-Hexane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("IHEXMUD")] + public int? Ihexmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 40, + /// LongMnemonic = "NHEXMUD", + /// ShortMnemonic = "NHXM", + /// Description = "Show Mud Smple N-Hexane", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("NHEXMUD")] + public int? Nhexmud { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 41, + /// LongMnemonic = "SHOWCOMM", + /// ShortMnemonic = "WCOM", + /// Description = "Show Comments", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 128, + /// ValueType = "A" + /// + [Column("SHOWCOMM")] + public string? Showcomm { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 42, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 43, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 44, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 45, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 16, + /// ItemId = 46, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record17.cs b/AsbCloudDb/Model/WITS/Record17.cs new file mode 100644 index 00000000..df84fa46 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record17.cs @@ -0,0 +1,480 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Cementing + /// Description: Well Cementing operations data + /// Description2: + /// + [Table("t_telemetry_wits_17")] + public class Record17: RecordBase { + + /// + /// RecordId = 17, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 10, + /// LongMnemonic = "DEPTCSGM", + /// ShortMnemonic = "DCGM", + /// Description = "Depth Casing Shoe (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCSGM")] + public float? Deptcsgm { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 11, + /// LongMnemonic = "DEPTCSGV", + /// ShortMnemonic = "DCGV", + /// Description = "Depth Casing Shoe (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCSGV")] + public float? Deptcsgv { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 12, + /// LongMnemonic = "CEMPPA", + /// ShortMnemonic = "CPPA", + /// Description = "Cem Pump Pressure (avg)", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMPPA")] + public float? Cemppa { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 13, + /// LongMnemonic = "HKLA", + /// ShortMnemonic = "HKLA", + /// Description = "Hookload (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLA")] + public float? Hkla { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 14, + /// LongMnemonic = "BLKPOS", + /// ShortMnemonic = "BPOS", + /// Description = "Block Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BLKPOS")] + public float? Blkpos { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 15, + /// LongMnemonic = "CEMFIC", + /// ShortMnemonic = "CFIC", + /// Description = "Cem Flow Rate In (calc)", + /// Description2 = "", + /// FPSUnits = "BPM", + /// MetricUnits = "M3/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMFIC")] + public float? Cemfic { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 16, + /// LongMnemonic = "CEMFIA", + /// ShortMnemonic = "CFIA", + /// Description = "Cem Flow Rate In (avg)", + /// Description2 = "", + /// FPSUnits = "BPM", + /// MetricUnits = "M3/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMFIA")] + public float? Cemfia { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 17, + /// LongMnemonic = "CEMFOA", + /// ShortMnemonic = "CFOA", + /// Description = "Cem Flow Rate Out (avg)", + /// Description2 = "", + /// FPSUnits = "BPM", + /// MetricUnits = "M3/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMFOA")] + public float? Cemfoa { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 18, + /// LongMnemonic = "CEMFOP", + /// ShortMnemonic = "CFOP", + /// Description = "Cem Flow Out %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CEMFOP")] + public short? Cemfop { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 19, + /// LongMnemonic = "CEMDIA", + /// ShortMnemonic = "CDIA", + /// Description = "Cem Fluid Dens In (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMDIA")] + public float? Cemdia { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 20, + /// LongMnemonic = "CEMDOA", + /// ShortMnemonic = "CDOA", + /// Description = "Cem Fluid Dens Out (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMDOA")] + public float? Cemdoa { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 21, + /// LongMnemonic = "ECDCSG", + /// ShortMnemonic = "ECDC", + /// Description = "ECD at Casing Shoe", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ECDCSG")] + public float? Ecdcsg { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 22, + /// LongMnemonic = "CEMTIA", + /// ShortMnemonic = "CTIA", + /// Description = "Cem Fluid Temp In (avg)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMTIA")] + public float? Cemtia { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 23, + /// LongMnemonic = "CEMTOA", + /// ShortMnemonic = "CTOA", + /// Description = "Cem Fluid Temp Out (avg)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMTOA")] + public float? Cemtoa { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 24, + /// LongMnemonic = "CEMSTAGE", + /// ShortMnemonic = "CSTG", + /// Description = "Cem Stage Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CEMSTAGE")] + public short? Cemstage { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 25, + /// LongMnemonic = "DEPTDVT", + /// ShortMnemonic = "DDVT", + /// Description = "Cem Depth to DV Tool", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTDVT")] + public float? Deptdvt { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 26, + /// LongMnemonic = "CEMFTYPE", + /// ShortMnemonic = "CTYP", + /// Description = "Cem Fluid Type/Batch", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("CEMFTYPE")] + public string? Cemftype { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 27, + /// LongMnemonic = "CEMCUMRT", + /// ShortMnemonic = "CCRT", + /// Description = "Cem Cumulative Returns", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMCUMRT")] + public float? Cemcumrt { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 28, + /// LongMnemonic = "CEMIVOL", + /// ShortMnemonic = "CIVL", + /// Description = "Cem Indiv Vol Pumped", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMIVOL")] + public float? Cemivol { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 29, + /// LongMnemonic = "CEMCVOL", + /// ShortMnemonic = "CCVL", + /// Description = "Cem Cement Vol Pumped", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMCVOL")] + public float? Cemcvol { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 30, + /// LongMnemonic = "CEMTVOL", + /// ShortMnemonic = "CTVL", + /// Description = "Cem Total Vol Pumped", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMTVOL")] + public float? Cemtvol { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 31, + /// LongMnemonic = "CEMBPVOL", + /// ShortMnemonic = "CBVL", + /// Description = "Cem Volume to Bump Plug", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CEMBPVOL")] + public float? Cembpvol { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 32, + /// LongMnemonic = "CEMPLUGS", + /// ShortMnemonic = "CPLG", + /// Description = "Cem No./Status of Plug(s)", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("CEMPLUGS")] + public string? Cemplugs { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 33, + /// LongMnemonic = "CEMJTYP", + /// ShortMnemonic = "CJTY", + /// Description = "Cem Job Type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("CEMJTYP")] + public string? Cemjtyp { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 34, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 35, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 36, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 37, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 17, + /// ItemId = 38, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record18.cs b/AsbCloudDb/Model/WITS/Record18.cs new file mode 100644 index 00000000..c702dc6f --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record18.cs @@ -0,0 +1,375 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Drill Stem Testing + /// Description: Well Testing operations data + /// Description2: + /// + [Table("t_telemetry_wits_18")] + public class Record18: RecordBase { + + /// + /// RecordId = 18, + /// ItemId = 8, + /// LongMnemonic = "DSTID", + /// ShortMnemonic = "DSID", + /// Description = "DST identification", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("DSTID")] + public string? Dstid { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 9, + /// LongMnemonic = "DEPTDITM", + /// ShortMnemonic = "DDTM", + /// Description = "DST Intvl Top Depth (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTDITM")] + public float? Deptditm { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 10, + /// LongMnemonic = "DEPTDITV", + /// ShortMnemonic = "DDTV", + /// Description = "DST Intvl Top Depth (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTDITV")] + public float? Deptditv { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 11, + /// LongMnemonic = "DEPTDIBM", + /// ShortMnemonic = "DDBM", + /// Description = "DST Intvl Bott Depth (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTDIBM")] + public float? Deptdibm { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 12, + /// LongMnemonic = "DEPTDIBV", + /// ShortMnemonic = "DDBV", + /// Description = "DST Intvl Bott Depth (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTDIBV")] + public float? Deptdibv { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 13, + /// LongMnemonic = "DSTTTIME", + /// ShortMnemonic = "DTTI", + /// Description = "DST Tool Time", + /// Description2 = "", + /// FPSUnits = "HR", + /// MetricUnits = "HR", + /// Length = 4, + /// ValueType = "L" + /// + [Column("DSTTTIME")] + public int? Dstttime { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 14, + /// LongMnemonic = "DSTSTATE", + /// ShortMnemonic = "DSTA", + /// Description = "DST State of Well", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("DSTSTATE")] + public short? Dststate { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 15, + /// LongMnemonic = "DSTSPTUB", + /// ShortMnemonic = "DSPT", + /// Description = "DST Surf Pressure, Tubing", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTSPTUB")] + public float? Dstsptub { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 16, + /// LongMnemonic = "DSTSPCAS", + /// ShortMnemonic = "DSPC", + /// Description = "DST Surf Pressure, Casing", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTSPCAS")] + public float? Dstspcas { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 17, + /// LongMnemonic = "DSTSTTUB", + /// ShortMnemonic = "DSTT", + /// Description = "DST Surf Temp, Tubing", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTSTTUB")] + public float? Dststtub { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 18, + /// LongMnemonic = "DSTBHP", + /// ShortMnemonic = "DBHP", + /// Description = "DST Bottom Hole Pressure", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTBHP")] + public float? Dstbhp { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 19, + /// LongMnemonic = "DSTBHT", + /// ShortMnemonic = "DBHT", + /// Description = "DST Bottom Hole Temp", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTBHT")] + public float? Dstbht { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 20, + /// LongMnemonic = "DSTLIQFR", + /// ShortMnemonic = "DLFR", + /// Description = "DST Liquid Flow Rate", + /// Description2 = "", + /// FPSUnits = "BPD", + /// MetricUnits = "M3/D", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTLIQFR")] + public float? Dstliqfr { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 21, + /// LongMnemonic = "DSTGASFR", + /// ShortMnemonic = "DGFR", + /// Description = "DST Gas Flow Rate", + /// Description2 = "", + /// FPSUnits = "MCFD", + /// MetricUnits = "MCMD", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTGASFR")] + public float? Dstgasfr { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 22, + /// LongMnemonic = "DSTTOTFR", + /// ShortMnemonic = "DTFR", + /// Description = "DST Total Flow Rate", + /// Description2 = "", + /// FPSUnits = "BPD", + /// MetricUnits = "M3/D", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTTOTFR")] + public float? Dsttotfr { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 23, + /// LongMnemonic = "DSTCLP", + /// ShortMnemonic = "DCLP", + /// Description = "DST Cum Liquid Production", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTCLP")] + public float? Dstclp { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 24, + /// LongMnemonic = "DSTCGP", + /// ShortMnemonic = "DCGP", + /// Description = "DST Cum Gas Production", + /// Description2 = "", + /// FPSUnits = "MCF", + /// MetricUnits = "MCM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTCGP")] + public float? Dstcgp { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 25, + /// LongMnemonic = "DSTCTP", + /// ShortMnemonic = "DCTP", + /// Description = "DST Cum Total Production", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DSTCTP")] + public float? Dstctp { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 26, + /// LongMnemonic = "HSA", + /// ShortMnemonic = "HSA", + /// Description = "Hydrogen Sulfide (avg)", + /// Description2 = "", + /// FPSUnits = "PPM", + /// MetricUnits = "PPM", + /// Length = 4, + /// ValueType = "L" + /// + [Column("HSA")] + public int? Hsa { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 27, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 28, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 29, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 30, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 18, + /// ItemId = 31, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record19.cs b/AsbCloudDb/Model/WITS/Record19.cs new file mode 100644 index 00000000..07787b51 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record19.cs @@ -0,0 +1,1320 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Configuration + /// Description: Drillstring and Rig Configuration data + /// Description2: + /// + [Table("t_telemetry_wits_19")] + public class Record19: RecordBase { + + /// + /// RecordId = 19, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 10, + /// LongMnemonic = "DSNUM", + /// ShortMnemonic = "DSNO", + /// Description = "No. Drill String Sections", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("DSNUM")] + public short? Dsnum { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 11, + /// LongMnemonic = "DS1OD", + /// ShortMnemonic = "D1OD", + /// Description = "DS Section 1 OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS1OD")] + public float? Ds1od { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 12, + /// LongMnemonic = "DS1ID", + /// ShortMnemonic = "D1ID", + /// Description = "DS Section 1 ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS1ID")] + public float? Ds1id { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 13, + /// LongMnemonic = "DS1JID", + /// ShortMnemonic = "D1JI", + /// Description = "DS Section 1 Tool Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS1JID")] + public float? Ds1jid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 14, + /// LongMnemonic = "DS1JOD", + /// ShortMnemonic = "D1JO", + /// Description = "DS Section 1 Tool Joint OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS1JOD")] + public float? Ds1jod { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 15, + /// LongMnemonic = "DS1MASS", + /// ShortMnemonic = "D1MA", + /// Description = "DS Section 1 Mass/Length", + /// Description2 = "", + /// FPSUnits = "LB/F", + /// MetricUnits = "KG/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS1MASS")] + public float? Ds1mass { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 16, + /// LongMnemonic = "DS1LEN", + /// ShortMnemonic = "D1LE", + /// Description = "DS Section 1 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS1LEN")] + public float? Ds1len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 17, + /// LongMnemonic = "DS2OD", + /// ShortMnemonic = "D2OD", + /// Description = "DS Section 2 OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS2OD")] + public float? Ds2od { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 18, + /// LongMnemonic = "DS2ID", + /// ShortMnemonic = "D2ID", + /// Description = "DS Section 2 ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS2ID")] + public float? Ds2id { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 19, + /// LongMnemonic = "DS2JID", + /// ShortMnemonic = "D2JI", + /// Description = "DS Section 2 Tool Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS2JID")] + public float? Ds2jid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 20, + /// LongMnemonic = "DS2JOD", + /// ShortMnemonic = "D2JO", + /// Description = "DS Section 2 Tool Joint OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS2JOD")] + public float? Ds2jod { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 21, + /// LongMnemonic = "DS2MASS", + /// ShortMnemonic = "D2MA", + /// Description = "DS Section 2 Mass/Length", + /// Description2 = "", + /// FPSUnits = "LB/F", + /// MetricUnits = "KG/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS2MASS")] + public float? Ds2mass { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 22, + /// LongMnemonic = "DS2LEN", + /// ShortMnemonic = "D2LE", + /// Description = "DS Section 2 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS2LEN")] + public float? Ds2len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 23, + /// LongMnemonic = "DS3OD", + /// ShortMnemonic = "D3OD", + /// Description = "DS Section 3 OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS3OD")] + public float? Ds3od { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 24, + /// LongMnemonic = "DS3ID", + /// ShortMnemonic = "D3ID", + /// Description = "DS Section 3 ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS3ID")] + public float? Ds3id { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 25, + /// LongMnemonic = "DS3JID", + /// ShortMnemonic = "D3JI", + /// Description = "DS Section 3 Tool Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS3JID")] + public float? Ds3jid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 26, + /// LongMnemonic = "DS3JOD", + /// ShortMnemonic = "D3JO", + /// Description = "DS Section 3 Tool Joint OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS3JOD")] + public float? Ds3jod { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 27, + /// LongMnemonic = "DS3MASS", + /// ShortMnemonic = "D3MA", + /// Description = "DS Section 3 Mass/Length", + /// Description2 = "", + /// FPSUnits = "LB/F", + /// MetricUnits = "KG/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS3MASS")] + public float? Ds3mass { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 28, + /// LongMnemonic = "DS3LEN", + /// ShortMnemonic = "D3LE", + /// Description = "DS Section 3 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS3LEN")] + public float? Ds3len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 29, + /// LongMnemonic = "DS4OD", + /// ShortMnemonic = "D4OD", + /// Description = "DS Section 4 OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS4OD")] + public float? Ds4od { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 30, + /// LongMnemonic = "DS4ID", + /// ShortMnemonic = "D4ID", + /// Description = "DS Section 4 ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS4ID")] + public float? Ds4id { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 31, + /// LongMnemonic = "DS4JID", + /// ShortMnemonic = "D4JI", + /// Description = "DS Section 4 Tool Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS4JID")] + public float? Ds4jid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 32, + /// LongMnemonic = "DS4JOD", + /// ShortMnemonic = "D4JO", + /// Description = "DS Section 4 Tool Joint OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS4JOD")] + public float? Ds4jod { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 33, + /// LongMnemonic = "DS4MASS", + /// ShortMnemonic = "D4MA", + /// Description = "DS Section 4 Mass/Length", + /// Description2 = "", + /// FPSUnits = "LB/F", + /// MetricUnits = "KG/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS4MASS")] + public float? Ds4mass { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 34, + /// LongMnemonic = "DS4LEN", + /// ShortMnemonic = "D4LE", + /// Description = "DS Section 4 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS4LEN")] + public float? Ds4len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 35, + /// LongMnemonic = "DS5OD", + /// ShortMnemonic = "D5OD", + /// Description = "DS Section 5 OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS5OD")] + public float? Ds5od { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 36, + /// LongMnemonic = "DS5ID", + /// ShortMnemonic = "D5ID", + /// Description = "DS Section 5 ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS5ID")] + public float? Ds5id { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 37, + /// LongMnemonic = "DS5JID", + /// ShortMnemonic = "D5JI", + /// Description = "DS Section 5 Tool Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS5JID")] + public float? Ds5jid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 38, + /// LongMnemonic = "DS5JOD", + /// ShortMnemonic = "D5JO", + /// Description = "DS Section 5 Tool Joint OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS5JOD")] + public float? Ds5jod { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 39, + /// LongMnemonic = "DS5MASS", + /// ShortMnemonic = "D5MA", + /// Description = "DS Section 5 Mass/Length", + /// Description2 = "", + /// FPSUnits = "LB/F", + /// MetricUnits = "KG/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS5MASS")] + public float? Ds5mass { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 40, + /// LongMnemonic = "DS5LEN", + /// ShortMnemonic = "D5LE", + /// Description = "DS Section 5 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS5LEN")] + public float? Ds5len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 41, + /// LongMnemonic = "DS6OD", + /// ShortMnemonic = "D6OD", + /// Description = "DS Section 6 OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS6OD")] + public float? Ds6od { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 42, + /// LongMnemonic = "DS6ID", + /// ShortMnemonic = "D6ID", + /// Description = "DS Section 6 ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS6ID")] + public float? Ds6id { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 43, + /// LongMnemonic = "DS6JID", + /// ShortMnemonic = "D6JI", + /// Description = "DS Section 6 Tool Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS6JID")] + public float? Ds6jid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 44, + /// LongMnemonic = "DS6JOD", + /// ShortMnemonic = "D6JO", + /// Description = "DS Section 6 Tool Joint OD", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS6JOD")] + public float? Ds6jod { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 45, + /// LongMnemonic = "DS6MASS", + /// ShortMnemonic = "D6MA", + /// Description = "DS Section 6 Mass/Length", + /// Description2 = "", + /// FPSUnits = "LB/F", + /// MetricUnits = "KG/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DS6MASS")] + public float? Ds6mass { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 46, + /// LongMnemonic = "KELLYID", + /// ShortMnemonic = "KID", + /// Description = "Kelly ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("KELLYID")] + public float? Kellyid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 47, + /// LongMnemonic = "KELLYLEN", + /// ShortMnemonic = "KLEN", + /// Description = "Kelly Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("KELLYLEN")] + public float? Kellylen { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 48, + /// LongMnemonic = "DPSTDLEN", + /// ShortMnemonic = "SLEN", + /// Description = "Drill Pipe Stand Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DPSTDLEN")] + public float? Dpstdlen { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 49, + /// LongMnemonic = "DPSTDJNT", + /// ShortMnemonic = "SJNT", + /// Description = "No. Joints/Stand", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("DPSTDJNT")] + public short? Dpstdjnt { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 50, + /// LongMnemonic = "HOLENUM", + /// ShortMnemonic = "HLNO", + /// Description = "No. Hole Sections", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("HOLENUM")] + public short? Holenum { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 51, + /// LongMnemonic = "HL1DIAM", + /// ShortMnemonic = "H1DI", + /// Description = "Hole Section 1 Diam", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL1DIAM")] + public float? Hl1diam { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 52, + /// LongMnemonic = "HL1LEN", + /// ShortMnemonic = "H1LE", + /// Description = "Hole Section 1 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL1LEN")] + public float? Hl1len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 53, + /// LongMnemonic = "HL2DIAM", + /// ShortMnemonic = "H2DI", + /// Description = "Hole Section 2 Diam", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL2DIAM")] + public float? Hl2diam { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 54, + /// LongMnemonic = "HL2LEN", + /// ShortMnemonic = "H2LE", + /// Description = "Hole Section 2 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL2LEN")] + public float? Hl2len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 55, + /// LongMnemonic = "HL3DIAM", + /// ShortMnemonic = "H3DI", + /// Description = "Hole Section 3 Diam", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL3DIAM")] + public float? Hl3diam { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 56, + /// LongMnemonic = "HL3LEN", + /// ShortMnemonic = "H3LE", + /// Description = "Hole Section 3 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL3LEN")] + public float? Hl3len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 57, + /// LongMnemonic = "HL4DIAM", + /// ShortMnemonic = "H4DI", + /// Description = "Hole Section 4 Diam", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL4DIAM")] + public float? Hl4diam { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 58, + /// LongMnemonic = "HL4LEN", + /// ShortMnemonic = "H4LE", + /// Description = "Hole Section 4 Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL4LEN")] + public float? Hl4len { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 59, + /// LongMnemonic = "HL5DIAM", + /// ShortMnemonic = "H5DI", + /// Description = "Hole Section 5 Diam", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HL5DIAM")] + public float? Hl5diam { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 60, + /// LongMnemonic = "PUMP1CAP", + /// ShortMnemonic = "P1CA", + /// Description = "Pump 1 Capacity", + /// Description2 = "", + /// FPSUnits = "B/ST", + /// MetricUnits = "M3ST", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PUMP1CAP")] + public float? Pump1cap { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 61, + /// LongMnemonic = "PUMP1EFF", + /// ShortMnemonic = "P1EF", + /// Description = "Pump 1 Efficiency", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("PUMP1EFF")] + public short? Pump1eff { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 62, + /// LongMnemonic = "PUMP2CAP", + /// ShortMnemonic = "P2CA", + /// Description = "Pump 2 Capacity", + /// Description2 = "", + /// FPSUnits = "B/ST", + /// MetricUnits = "M3ST", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PUMP2CAP")] + public float? Pump2cap { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 63, + /// LongMnemonic = "PUMP2EFF", + /// ShortMnemonic = "P2EF", + /// Description = "Pump 2 Efficiency", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("PUMP2EFF")] + public short? Pump2eff { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 64, + /// LongMnemonic = "PUMP3CAP", + /// ShortMnemonic = "P3CA", + /// Description = "Pump 3 Capacity", + /// Description2 = "", + /// FPSUnits = "B/ST", + /// MetricUnits = "M3ST", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PUMP3CAP")] + public float? Pump3cap { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 65, + /// LongMnemonic = "PUMP3EFF", + /// ShortMnemonic = "P3EF", + /// Description = "Pump 3 Efficiency", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("PUMP3EFF")] + public short? Pump3eff { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 66, + /// LongMnemonic = "RIGCOST", + /// ShortMnemonic = "RIGC", + /// Description = "Rig Operating Cost/Hour", + /// Description2 = "", + /// FPSUnits = "$", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("RIGCOST")] + public short? Rigcost { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 67, + /// LongMnemonic = "TRIPRATE", + /// ShortMnemonic = "TRRT", + /// Description = "Trip Rate (Dist/Time)", + /// Description2 = "", + /// FPSUnits = "KF/H", + /// MetricUnits = "KPH", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TRIPRATE")] + public float? Triprate { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 68, + /// LongMnemonic = "KILLID", + /// ShortMnemonic = "KLID", + /// Description = "Kill Line ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("KILLID")] + public float? Killid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 69, + /// LongMnemonic = "KILLJID", + /// ShortMnemonic = "KLJD", + /// Description = "Kill Line Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("KILLJID")] + public float? Killjid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 70, + /// LongMnemonic = "KILLJF", + /// ShortMnemonic = "KLJF", + /// Description = "Kill Line Joint Fraction", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("KILLJF")] + public short? Killjf { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 71, + /// LongMnemonic = "KILLLEN", + /// ShortMnemonic = "KLLE", + /// Description = "Kill Line Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("KILLLEN")] + public float? Killlen { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 72, + /// LongMnemonic = "CHKID", + /// ShortMnemonic = "CHID", + /// Description = "Choke Line ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CHKID")] + public float? Chkid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 73, + /// LongMnemonic = "CHKJID", + /// ShortMnemonic = "CHJD", + /// Description = "Choke Line Joint ID", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CHKJID")] + public float? Chkjid { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 74, + /// LongMnemonic = "CHKJF", + /// ShortMnemonic = "CHJF", + /// Description = "Choke Line Joint Fraction", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CHKJF")] + public short? Chkjf { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 75, + /// LongMnemonic = "CHKLEN", + /// ShortMnemonic = "CHLE", + /// Description = "Choke Line Length", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CHKLEN")] + public float? Chklen { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 76, + /// LongMnemonic = "DEPTCSGM", + /// ShortMnemonic = "DCGM", + /// Description = "Depth Casing Shoe (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCSGM")] + public float? Deptcsgm { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 77, + /// LongMnemonic = "DEPTCSGV", + /// ShortMnemonic = "DCGV", + /// Description = "Depth Casing Shoe (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCSGV")] + public float? Deptcsgv { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 78, + /// LongMnemonic = "DEPTPITM", + /// ShortMnemonic = "DPTM", + /// Description = "Depth PIT (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTPITM")] + public float? Deptpitm { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 79, + /// LongMnemonic = "DEPTPITV", + /// ShortMnemonic = "DPTV", + /// Description = "Depth PIT (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTPITV")] + public float? Deptpitv { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 80, + /// LongMnemonic = "FPGPIT", + /// ShortMnemonic = "FPIT", + /// Description = "Frac Pressure Grad at PIT", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FPGPIT")] + public float? Fpgpit { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 81, + /// LongMnemonic = "DRLGCONT", + /// ShortMnemonic = "CONT", + /// Description = "Drilling Contractor", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("DRLGCONT")] + public string? Drlgcont { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 82, + /// LongMnemonic = "RIGNAME", + /// ShortMnemonic = "RIG", + /// Description = "Rig Name", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("RIGNAME")] + public string? Rigname { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 83, + /// LongMnemonic = "RIGTYPE", + /// ShortMnemonic = "RTYP", + /// Description = "Rig Type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("RIGTYPE")] + public string? Rigtype { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 84, + /// LongMnemonic = "VENDOR1", + /// ShortMnemonic = "VEN1", + /// Description = "Vendor 1 Name/Service", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("VENDOR1")] + public string? Vendor1 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 85, + /// LongMnemonic = "VENDOR2", + /// ShortMnemonic = "VEN2", + /// Description = "Vendor 2 Name/Service", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("VENDOR2")] + public string? Vendor2 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 86, + /// LongMnemonic = "VENDOR3", + /// ShortMnemonic = "VEN3", + /// Description = "Vendor 3 Name/Service", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("VENDOR3")] + public string? Vendor3 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 87, + /// LongMnemonic = "VENDOR4", + /// ShortMnemonic = "VEN4", + /// Description = "Vendor 4 Name/Service", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("VENDOR4")] + public string? Vendor4 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 88, + /// LongMnemonic = "VENDOR5", + /// ShortMnemonic = "VEN5", + /// Description = "Vendor 5 Name/Service", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("VENDOR5")] + public string? Vendor5 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 89, + /// LongMnemonic = "VENDOR6", + /// ShortMnemonic = "VEN6", + /// Description = "Vendor 6 Name/Service", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("VENDOR6")] + public string? Vendor6 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 90, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 91, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 92, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 93, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 19, + /// ItemId = 94, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record2.cs b/AsbCloudDb/Model/WITS/Record2.cs new file mode 100644 index 00000000..8ce926e9 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record2.cs @@ -0,0 +1,449 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Drilling - Depth Based + /// Description: Drilling data gathered at regular depth intervals + /// + [Table("t_telemetry_wits_2")] + public class Record2: RecordBase { + + /// + /// RecordId = 2, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 10, + /// LongMnemonic = "ROPA", + /// ShortMnemonic = "ROPA", + /// Description = "Rate of Penetration (avg)", + /// Description2 = "", + /// FPSUnits = "F/HR", + /// MetricUnits = "M/HR", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ROPA")] + public float? Ropa { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 11, + /// LongMnemonic = "WOBA", + /// ShortMnemonic = "WOBA", + /// Description = "Weight-on-Bit (surf,avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WOBA")] + public float? Woba { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 12, + /// LongMnemonic = "HKLA", + /// ShortMnemonic = "HKLA", + /// Description = "Hookload (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLA")] + public float? Hkla { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 13, + /// LongMnemonic = "SPPA", + /// ShortMnemonic = "SPPA", + /// Description = "Standpipe Pressure (avg)", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPPA")] + public float? Sppa { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 14, + /// LongMnemonic = "TORQA", + /// ShortMnemonic = "TQA", + /// Description = "Rotary Torque (surf,avg)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TORQA")] + public float? Torqa { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 15, + /// LongMnemonic = "RPMA", + /// ShortMnemonic = "RPMA", + /// Description = "Rotary Speed (surf,avg)", + /// Description2 = "", + /// FPSUnits = "RPM", + /// MetricUnits = "RPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("RPMA")] + public short? Rpma { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 16, + /// LongMnemonic = "BTREVC", + /// ShortMnemonic = "BRVC", + /// Description = "Bit Revolutions (cum)", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("BTREVC")] + public int? Btrevc { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 17, + /// LongMnemonic = "MDIA", + /// ShortMnemonic = "MDIA", + /// Description = "Mud Density In (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MDIA")] + public float? Mdia { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 18, + /// LongMnemonic = "ECDTD", + /// ShortMnemonic = "ECDT", + /// Description = "ECD at Total Depth", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ECDTD")] + public float? Ecdtd { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 19, + /// LongMnemonic = "MFIA", + /// ShortMnemonic = "MFIA", + /// Description = "Mud Flow In (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFIA")] + public float? Mfia { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 20, + /// LongMnemonic = "MFOA", + /// ShortMnemonic = "MFOA", + /// Description = "Mud Flow Out (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFOA")] + public float? Mfoa { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 21, + /// LongMnemonic = "MFOP", + /// ShortMnemonic = "MFOP", + /// Description = "Mud Flow Out %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MFOP")] + public short? Mfop { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 22, + /// LongMnemonic = "TVOLACT", + /// ShortMnemonic = "TVA", + /// Description = "Tank Volume (active)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TVOLACT")] + public float? Tvolact { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 23, + /// LongMnemonic = "CPDI", + /// ShortMnemonic = "CPDI", + /// Description = "Cost/Distance (inst)", + /// Description2 = "", + /// FPSUnits = "$/F", + /// MetricUnits = "$/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CPDI")] + public float? Cpdi { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 24, + /// LongMnemonic = "CPDC", + /// ShortMnemonic = "CPDC", + /// Description = "Cost/Distance (cum)", + /// Description2 = "", + /// FPSUnits = "$/F", + /// MetricUnits = "$/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CPDC")] + public float? Cpdc { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 25, + /// LongMnemonic = "BTDTIME", + /// ShortMnemonic = "BDTI", + /// Description = "Bit Drilled Time", + /// Description2 = "", + /// FPSUnits = "HR", + /// MetricUnits = "HR", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTDTIME")] + public float? Btdtime { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 26, + /// LongMnemonic = "BTDDIST", + /// ShortMnemonic = "BDDI", + /// Description = "Bit Drilled Distance", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTDDIST")] + public float? Btddist { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 27, + /// LongMnemonic = "DXC", + /// ShortMnemonic = "DXC", + /// Description = "Corr. Drilling Exponent", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DXC")] + public float? Dxc { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 28, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 29, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 30, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 31, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 32, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 33, + /// LongMnemonic = "SPARE6", + /// ShortMnemonic = "SPR6", + /// Description = "< SPARE 6>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE6")] + public float? Spare6 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 34, + /// LongMnemonic = "SPARE7", + /// ShortMnemonic = "SPR7", + /// Description = "< SPARE 7>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE7")] + public float? Spare7 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 35, + /// LongMnemonic = "SPARE8", + /// ShortMnemonic = "SPR8", + /// Description = "< SPARE 8>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE8")] + public float? Spare8 { get; set; } + + /// + /// RecordId = 2, + /// ItemId = 36, + /// LongMnemonic = "SPARE9", + /// ShortMnemonic = "SPR9", + /// Description = "< SPARE 9>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE9")] + public float? Spare9 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record20.cs b/AsbCloudDb/Model/WITS/Record20.cs new file mode 100644 index 00000000..95fee007 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record20.cs @@ -0,0 +1,885 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Mud Report + /// Description: Mud Report data + /// Description2: + /// + [Table("t_telemetry_wits_20")] + public class Record20: RecordBase { + + /// + /// RecordId = 20, + /// ItemId = 8, + /// LongMnemonic = "MREPDM", + /// ShortMnemonic = "MRDM", + /// Description = "Mud Rept Depth (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MREPDM")] + public float? Mrepdm { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 9, + /// LongMnemonic = "MREPDV", + /// ShortMnemonic = "MRDV", + /// Description = "Mud Rept Depth (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MREPDV")] + public float? Mrepdv { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 10, + /// LongMnemonic = "MREPNUM", + /// ShortMnemonic = "MNUM", + /// Description = "Mud Rept Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MREPNUM")] + public short? Mrepnum { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 11, + /// LongMnemonic = "MRMTYPE", + /// ShortMnemonic = "MTYP", + /// Description = "Mud Rept Mud Type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("MRMTYPE")] + public string? Mrmtype { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 12, + /// LongMnemonic = "MRSLOC", + /// ShortMnemonic = "MLOC", + /// Description = "Mud Rept Sample Location", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("MRSLOC")] + public string? Mrsloc { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 13, + /// LongMnemonic = "MRSDATE", + /// ShortMnemonic = "MDAT", + /// Description = "Mud Rept Sample Date", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("MRSDATE")] + public int? Mrsdate { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 14, + /// LongMnemonic = "MRSTIME", + /// ShortMnemonic = "MTIM", + /// Description = "Mud Rept Sample Time", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("MRSTIME")] + public int? Mrstime { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 15, + /// LongMnemonic = "MRDENS", + /// ShortMnemonic = "MDEN", + /// Description = "Mud Rept Mud Density", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRDENS")] + public float? Mrdens { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 16, + /// LongMnemonic = "MRFVIS", + /// ShortMnemonic = "MFV", + /// Description = "Mud Rept Funnel Vis", + /// Description2 = "", + /// FPSUnits = "S/QT", + /// MetricUnits = "S/L", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MRFVIS")] + public short? Mrfvis { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 17, + /// LongMnemonic = "MRFVIST", + /// ShortMnemonic = "MFVT", + /// Description = "Mud Rept Funnel Vis Temp", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRFVIST")] + public float? Mrfvist { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 18, + /// LongMnemonic = "MRPV", + /// ShortMnemonic = "MPV", + /// Description = "Mud Rept Plastic Vis", + /// Description2 = "", + /// FPSUnits = "CP", + /// MetricUnits = "CP", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRPV")] + public float? Mrpv { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 19, + /// LongMnemonic = "MRYP", + /// ShortMnemonic = "MYP", + /// Description = "Mud Rept Yield Point", + /// Description2 = "", + /// FPSUnits = "PHSF", + /// MetricUnits = "PA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRYP")] + public float? Mryp { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 20, + /// LongMnemonic = "MRGEL10S", + /// ShortMnemonic = "MGL1", + /// Description = "Mud Rept Gel - 10 sec", + /// Description2 = "", + /// FPSUnits = "PHSF", + /// MetricUnits = "PA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRGEL10S")] + public float? Mrgel10s { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 21, + /// LongMnemonic = "MRGEL10M", + /// ShortMnemonic = "MGL2", + /// Description = "Mud Rept Gel - 10 min", + /// Description2 = "", + /// FPSUnits = "PHSF", + /// MetricUnits = "PA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRGEL10M")] + public float? Mrgel10m { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 22, + /// LongMnemonic = "MRGEL30M", + /// ShortMnemonic = "MGL3", + /// Description = "Mud Rept Gel - 30 min", + /// Description2 = "", + /// FPSUnits = "PHSF", + /// MetricUnits = "PA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRGEL30M")] + public float? Mrgel30m { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 23, + /// LongMnemonic = "MRFILT", + /// ShortMnemonic = "MFIL", + /// Description = "Mud Rept Filtrate", + /// Description2 = "", + /// FPSUnits = "C/30", + /// MetricUnits = "C/30", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRFILT")] + public float? Mrfilt { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 24, + /// LongMnemonic = "MRCAKE", + /// ShortMnemonic = "MCAK", + /// Description = "Mud Rept Filter Cake", + /// Description2 = "", + /// FPSUnits = "I/32", + /// MetricUnits = "MM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MRCAKE")] + public short? Mrcake { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 25, + /// LongMnemonic = "MRHT", + /// ShortMnemonic = "MHT", + /// Description = "Mud Rept HTHP Temp", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRHT")] + public float? Mrht { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 26, + /// LongMnemonic = "MRHP", + /// ShortMnemonic = "MHP", + /// Description = "Mud Rept HTHP Pressure", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRHP")] + public float? Mrhp { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 27, + /// LongMnemonic = "MRHFILT", + /// ShortMnemonic = "MHFI", + /// Description = "Mud Rept HTHP Filtrate", + /// Description2 = "", + /// FPSUnits = "C/30", + /// MetricUnits = "C/30", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRHFILT")] + public float? Mrhfilt { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 28, + /// LongMnemonic = "MRHCAKE", + /// ShortMnemonic = "MHCK", + /// Description = "Mud Rept HTHP Filter Cake", + /// Description2 = "", + /// FPSUnits = "I/32", + /// MetricUnits = "MM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MRHCAKE")] + public short? Mrhcake { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 29, + /// LongMnemonic = "MRSOLRET", + /// ShortMnemonic = "MSOL", + /// Description = "Mud Rept Solids % (retort)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRSOLRET")] + public float? Mrsolret { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 30, + /// LongMnemonic = "MRWATRET", + /// ShortMnemonic = "MWAT", + /// Description = "Mud Rept Water % (retort)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRWATRET")] + public float? Mrwatret { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 31, + /// LongMnemonic = "MROILRET", + /// ShortMnemonic = "MOIL", + /// Description = "Mud Rept Oil % (retort)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MROILRET")] + public float? Mroilret { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 32, + /// LongMnemonic = "MRSAND", + /// ShortMnemonic = "MSAN", + /// Description = "Mud Rept Sand %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRSAND")] + public float? Mrsand { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 33, + /// LongMnemonic = "MRLGSOL", + /// ShortMnemonic = "MLGS", + /// Description = "Mud Rept Low Grav Sol %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRLGSOL")] + public float? Mrlgsol { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 34, + /// LongMnemonic = "MRSOLCAL", + /// ShortMnemonic = "MSCA", + /// Description = "Mud Rept Solids % (calc)", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRSOLCAL")] + public float? Mrsolcal { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 35, + /// LongMnemonic = "MRBARITE", + /// ShortMnemonic = "MBRT", + /// Description = "Mud Rept Barite content", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRBARITE")] + public float? Mrbarite { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 36, + /// LongMnemonic = "MRLCM", + /// ShortMnemonic = "MLCM", + /// Description = "Mud Rept LCM content", + /// Description2 = "", + /// FPSUnits = "PPB", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRLCM")] + public float? Mrlcm { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 37, + /// LongMnemonic = "MRMBT", + /// ShortMnemonic = "MMBT", + /// Description = "Mud Rept MBT capacity", + /// Description2 = "", + /// FPSUnits = "PPB", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRMBT")] + public float? Mrmbt { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 38, + /// LongMnemonic = "MRPH", + /// ShortMnemonic = "MPH", + /// Description = "Mud Rept pH", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRPH")] + public float? Mrph { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 39, + /// LongMnemonic = "MRPHT", + /// ShortMnemonic = "MPHT", + /// Description = "Mud Rept pH sample temp", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRPHT")] + public float? Mrpht { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 40, + /// LongMnemonic = "MRPM", + /// ShortMnemonic = "MPM", + /// Description = "Mud Rept Pm", + /// Description2 = "", + /// FPSUnits = "MLML", + /// MetricUnits = "MLML", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRPM")] + public float? Mrpm { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 41, + /// LongMnemonic = "MRPF", + /// ShortMnemonic = "MPF", + /// Description = "Mud Rept Pf", + /// Description2 = "", + /// FPSUnits = "MLML", + /// MetricUnits = "MLML", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRPF")] + public float? Mrpf { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 42, + /// LongMnemonic = "MRMF", + /// ShortMnemonic = "MMF", + /// Description = "Mud Rept Mf", + /// Description2 = "", + /// FPSUnits = "MLML", + /// MetricUnits = "MLML", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRMF")] + public float? Mrmf { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 43, + /// LongMnemonic = "MRP1", + /// ShortMnemonic = "MRP1", + /// Description = "Mud Rept P1", + /// Description2 = "", + /// FPSUnits = "MLML", + /// MetricUnits = "MLML", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRP1")] + public float? Mrp1 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 44, + /// LongMnemonic = "MRP2", + /// ShortMnemonic = "MRP2", + /// Description = "Mud Rept P2", + /// Description2 = "", + /// FPSUnits = "MLML", + /// MetricUnits = "MLML", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRP2")] + public float? Mrp2 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 45, + /// LongMnemonic = "MRCHLOR", + /// ShortMnemonic = "MCHL", + /// Description = "Mud Rept Chlorides", + /// Description2 = "", + /// FPSUnits = "MG/L", + /// MetricUnits = "MG/L", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRCHLOR")] + public float? Mrchlor { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 46, + /// LongMnemonic = "MRCALC", + /// ShortMnemonic = "MCAL", + /// Description = "Mud Rept Calcium", + /// Description2 = "", + /// FPSUnits = "MG/L", + /// MetricUnits = "MG/L", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRCALC")] + public float? Mrcalc { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 47, + /// LongMnemonic = "MRMAG", + /// ShortMnemonic = "MMAG", + /// Description = "Mud Rept Magnesium", + /// Description2 = "", + /// FPSUnits = "MG/L", + /// MetricUnits = "MG/L", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRMAG")] + public float? Mrmag { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 48, + /// LongMnemonic = "MRPOT", + /// ShortMnemonic = "MPOT", + /// Description = "Mud Rept Potassium", + /// Description2 = "", + /// FPSUnits = "MG/L", + /// MetricUnits = "MG/L", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRPOT")] + public float? Mrpot { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 49, + /// LongMnemonic = "MRRHETEM", + /// ShortMnemonic = "MRHT", + /// Description = "Mud Rept Rheometer temp", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRRHETEM")] + public float? Mrrhetem { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 50, + /// LongMnemonic = "MRVIS3", + /// ShortMnemonic = "M3", + /// Description = "Mud Rept Viscom 3 rpm", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRVIS3")] + public float? Mrvis3 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 51, + /// LongMnemonic = "MRVIS6", + /// ShortMnemonic = "M6", + /// Description = "Mud Rept Viscom 6 rpm", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRVIS6")] + public float? Mrvis6 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 52, + /// LongMnemonic = "MRVIS100", + /// ShortMnemonic = "M100", + /// Description = "Mud Rept Viscom 100 rpm", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRVIS100")] + public float? Mrvis100 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 53, + /// LongMnemonic = "MRVIS200", + /// ShortMnemonic = "M200", + /// Description = "Mud Rept Viscom 200 rpm", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRVIS200")] + public float? Mrvis200 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 54, + /// LongMnemonic = "MRVIS300", + /// ShortMnemonic = "M300", + /// Description = "Mud Rept Viscom 300 rpm", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRVIS300")] + public float? Mrvis300 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 55, + /// LongMnemonic = "MRVIS600", + /// ShortMnemonic = "M600", + /// Description = "Mud Rept Viscom 600 rpm", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRVIS600")] + public float? Mrvis600 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 56, + /// LongMnemonic = "MRBRINE", + /// ShortMnemonic = "MBRI", + /// Description = "Mud Rept Brine %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRBRINE")] + public float? Mrbrine { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 57, + /// LongMnemonic = "MRALK", + /// ShortMnemonic = "MALK", + /// Description = "Mud Rept Alkalinity", + /// Description2 = "", + /// FPSUnits = "MLML", + /// MetricUnits = "MLML", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRALK")] + public float? Mralk { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 58, + /// LongMnemonic = "MRLIME", + /// ShortMnemonic = "MLIM", + /// Description = "Mud Rept Lime content", + /// Description2 = "", + /// FPSUnits = "PPB", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRLIME")] + public float? Mrlime { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 59, + /// LongMnemonic = "MRELECST", + /// ShortMnemonic = "MELS", + /// Description = "Mud Rept Elect. Stability", + /// Description2 = "", + /// FPSUnits = "V", + /// MetricUnits = "V", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRELECST")] + public float? Mrelecst { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 60, + /// LongMnemonic = "MRCACL", + /// ShortMnemonic = "MCCL", + /// Description = "Mud Rept CaCl, Wt %", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MRCACL")] + public float? Mrcacl { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 61, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 62, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 63, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 64, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 20, + /// ItemId = 65, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record21.cs b/AsbCloudDb/Model/WITS/Record21.cs new file mode 100644 index 00000000..0fc28312 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record21.cs @@ -0,0 +1,645 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Bit Report + /// Description: Bit Report data + /// Description2: + /// + [Table("t_telemetry_wits_21")] + public class Record21: RecordBase { + + /// + /// RecordId = 21, + /// ItemId = 8, + /// LongMnemonic = "BTNUM", + /// ShortMnemonic = "BNUM", + /// Description = "Bit Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("BTNUM")] + public string? Btnum { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 9, + /// LongMnemonic = "BTDIAM", + /// ShortMnemonic = "BDIA", + /// Description = "Bit Diameter", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTDIAM")] + public float? Btdiam { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 10, + /// LongMnemonic = "BTMANUF", + /// ShortMnemonic = "BMAN", + /// Description = "Bit Manufacturer", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("BTMANUF")] + public string? Btmanuf { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 11, + /// LongMnemonic = "BTNAME", + /// ShortMnemonic = "BNAM", + /// Description = "Bit Name", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("BTNAME")] + public string? Btname { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 12, + /// LongMnemonic = "BTCODE", + /// ShortMnemonic = "BCOD", + /// Description = "Bit IADC Code", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("BTCODE")] + public string? Btcode { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 13, + /// LongMnemonic = "BTSERNUM", + /// ShortMnemonic = "BSER", + /// Description = "Bit Serial Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("BTSERNUM")] + public string? Btsernum { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 14, + /// LongMnemonic = "BTCOST", + /// ShortMnemonic = "BCST", + /// Description = "Bit Cost", + /// Description2 = "", + /// FPSUnits = "$", + /// MetricUnits = "$", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTCOST")] + public float? Btcost { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 15, + /// LongMnemonic = "BTJET1", + /// ShortMnemonic = "BJT1", + /// Description = "Bit Jet 1 Diameter", + /// Description2 = "", + /// FPSUnits = "I/32", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTJET1")] + public float? Btjet1 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 16, + /// LongMnemonic = "BTJET2", + /// ShortMnemonic = "BJT2", + /// Description = "Bit Jet 2 Diameter", + /// Description2 = "", + /// FPSUnits = "I/32", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTJET2")] + public float? Btjet2 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 17, + /// LongMnemonic = "BTJET3", + /// ShortMnemonic = "BJT3", + /// Description = "Bit Jet 3 Diameter", + /// Description2 = "", + /// FPSUnits = "I/32", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTJET3")] + public float? Btjet3 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 18, + /// LongMnemonic = "BTJET4", + /// ShortMnemonic = "BJT4", + /// Description = "Bit Jet 4 Diameter", + /// Description2 = "", + /// FPSUnits = "I/32", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTJET4")] + public float? Btjet4 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 19, + /// LongMnemonic = "BTJETCEN", + /// ShortMnemonic = "BJTC", + /// Description = "Bit Center Jet Diameter", + /// Description2 = "", + /// FPSUnits = "I/32", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTJETCEN")] + public float? Btjetcen { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 20, + /// LongMnemonic = "BTTFA", + /// ShortMnemonic = "BTFA", + /// Description = "Bit Total Flow Area", + /// Description2 = "", + /// FPSUnits = "SQIN", + /// MetricUnits = "MM2", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTTFA")] + public float? Bttfa { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 21, + /// LongMnemonic = "BTDEPIN", + /// ShortMnemonic = "BDPI", + /// Description = "Bit Starting Depth (In)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTDEPIN")] + public float? Btdepin { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 22, + /// LongMnemonic = "BTDEPOUT", + /// ShortMnemonic = "BDPO", + /// Description = "Bit Ending Depth (Out)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTDEPOUT")] + public float? Btdepout { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 23, + /// LongMnemonic = "BTDDIST", + /// ShortMnemonic = "BDDI", + /// Description = "Bit Run Drilled Distance", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTDDIST")] + public float? Btddist { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 24, + /// LongMnemonic = "BTDTIME", + /// ShortMnemonic = "BDTI", + /// Description = "Bit Run Drilled Time", + /// Description2 = "", + /// FPSUnits = "HR", + /// MetricUnits = "HR", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTDTIME")] + public float? Btdtime { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 25, + /// LongMnemonic = "BTRTIME", + /// ShortMnemonic = "BRTI", + /// Description = "Bit Run Reamed Time", + /// Description2 = "", + /// FPSUnits = "HR", + /// MetricUnits = "HR", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTRTIME")] + public float? Btrtime { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 26, + /// LongMnemonic = "BTROPA", + /// ShortMnemonic = "BRPA", + /// Description = "Bit Penetration Rate (avg)", + /// Description2 = "", + /// FPSUnits = "F/HR", + /// MetricUnits = "M/HR", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTROPA")] + public float? Btropa { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 27, + /// LongMnemonic = "BTWOBA", + /// ShortMnemonic = "BWBA", + /// Description = "Bit Weight-on-Bit (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTWOBA")] + public float? Btwoba { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 28, + /// LongMnemonic = "BTWOBX", + /// ShortMnemonic = "BWBX", + /// Description = "Bit Weight-on-Bit (max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTWOBX")] + public float? Btwobx { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 29, + /// LongMnemonic = "BTRPMA", + /// ShortMnemonic = "BRMA", + /// Description = "Bit Rotary Speed (avg)", + /// Description2 = "", + /// FPSUnits = "RPM", + /// MetricUnits = "RPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("BTRPMA")] + public short? Btrpma { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 30, + /// LongMnemonic = "BTRPMX", + /// ShortMnemonic = "BRMX", + /// Description = "Bit Rotary Speed (max)", + /// Description2 = "", + /// FPSUnits = "RPM", + /// MetricUnits = "RPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("BTRPMX")] + public short? Btrpmx { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 31, + /// LongMnemonic = "BTMFA", + /// ShortMnemonic = "BMFA", + /// Description = "Bit Mud Flow Rate (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTMFA")] + public float? Btmfa { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 32, + /// LongMnemonic = "BTMDA", + /// ShortMnemonic = "BMDA", + /// Description = "Bit Mud Density (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTMDA")] + public float? Btmda { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 33, + /// LongMnemonic = "BTSPPA", + /// ShortMnemonic = "BSPA", + /// Description = "Bit Standpipe Pressure (avg)", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BTSPPA")] + public float? Btsppa { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 34, + /// LongMnemonic = "BTRUN", + /// ShortMnemonic = "BRUN", + /// Description = "Bit Reason Run", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("BTRUN")] + public string? Btrun { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 35, + /// LongMnemonic = "BTPULL", + /// ShortMnemonic = "BPUL", + /// Description = "Bit Reason Pulled", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("BTPULL")] + public string? Btpull { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 36, + /// LongMnemonic = "BTGRDIN", + /// ShortMnemonic = "BGI", + /// Description = "Bit Grade In", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("BTGRDIN")] + public string? Btgrdin { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 37, + /// LongMnemonic = "BTGRDOUT", + /// ShortMnemonic = "BGO", + /// Description = "Bit Grade Out", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("BTGRDOUT")] + public string? Btgrdout { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 38, + /// LongMnemonic = "BTSHKSUB", + /// ShortMnemonic = "BSHK", + /// Description = "Bit Shock Sub Used ?", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 1, + /// ValueType = "A" + /// + [Column("BTSHKSUB")] + public string? Btshksub { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 39, + /// LongMnemonic = "BTMUDMOT", + /// ShortMnemonic = "BMM", + /// Description = "Bit Mud Motor Used ?", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 1, + /// ValueType = "A" + /// + [Column("BTMUDMOT")] + public string? Btmudmot { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 40, + /// LongMnemonic = "BTCOMM", + /// ShortMnemonic = "BCOM", + /// Description = "Bit Comments", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 128, + /// ValueType = "A" + /// + [Column("BTCOMM")] + public string? Btcomm { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 41, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 42, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 43, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 44, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 45, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 46, + /// LongMnemonic = "SPARE6", + /// ShortMnemonic = "SPR6", + /// Description = "< SPARE 6>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE6")] + public float? Spare6 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 47, + /// LongMnemonic = "SPARE7", + /// ShortMnemonic = "SPR7", + /// Description = "< SPARE 7>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE7")] + public float? Spare7 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 48, + /// LongMnemonic = "SPARE8", + /// ShortMnemonic = "SPR8", + /// Description = "< SPARE 8>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE8")] + public float? Spare8 { get; set; } + + /// + /// RecordId = 21, + /// ItemId = 49, + /// LongMnemonic = "SPARE9", + /// ShortMnemonic = "SPR9", + /// Description = "< SPARE 9>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE9")] + public float? Spare9 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record22.cs b/AsbCloudDb/Model/WITS/Record22.cs new file mode 100644 index 00000000..1642eedd --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record22.cs @@ -0,0 +1,60 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Remarks + /// Description: Freeform Comments + /// Description2: + /// + [Table("t_telemetry_wits_22")] + public class Record22: RecordBase { + + /// + /// RecordId = 22, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 22, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 22, + /// ItemId = 10, + /// LongMnemonic = "COMM", + /// ShortMnemonic = "COMM", + /// Description = "Comments", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 256, + /// ValueType = "A" + /// + [Column("COMM")] + public string? Comm { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record23.cs b/AsbCloudDb/Model/WITS/Record23.cs new file mode 100644 index 00000000..e47d9e32 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record23.cs @@ -0,0 +1,465 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Well Identification + /// Description: Well Identification data + /// Description2: + /// + [Table("t_telemetry_wits_23")] + public class Record23: RecordBase { + + /// + /// RecordId = 23, + /// ItemId = 8, + /// LongMnemonic = "WELLNAME", + /// ShortMnemonic = "WELL", + /// Description = "Well Name", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("WELLNAME")] + public string? Wellname { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 9, + /// LongMnemonic = "WELLNUM", + /// ShortMnemonic = "WNUM", + /// Description = "Well Identification Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("WELLNUM")] + public string? Wellnum { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 10, + /// LongMnemonic = "OPERATOR", + /// ShortMnemonic = "OPER", + /// Description = "Operator", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("OPERATOR")] + public string? Operator { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 11, + /// LongMnemonic = "WELLCLAS", + /// ShortMnemonic = "WCLS", + /// Description = "Well Classification (Lahee)", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("WELLCLAS")] + public string? Wellclas { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 12, + /// LongMnemonic = "LOCATION", + /// ShortMnemonic = "WLOC", + /// Description = "Well Location", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("LOCATION")] + public string? Location { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 13, + /// LongMnemonic = "WELLUTM", + /// ShortMnemonic = "WUTM", + /// Description = "Well Univ.Tran.Mercator", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("WELLUTM")] + public string? Wellutm { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 14, + /// LongMnemonic = "WELLLAT", + /// ShortMnemonic = "WLAT", + /// Description = "Well Surface Latitude", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("WELLLAT")] + public string? Welllat { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 15, + /// LongMnemonic = "WELLLON", + /// ShortMnemonic = "WLON", + /// Description = "Well Surface Longitude", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("WELLLON")] + public string? Welllon { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 16, + /// LongMnemonic = "FIELD", + /// ShortMnemonic = "FLD", + /// Description = "Field Name", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("FIELD")] + public string? Field { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 17, + /// LongMnemonic = "ELEVDP", + /// ShortMnemonic = "ELDP", + /// Description = "Elev : Datum-MSL", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ELEVDP")] + public float? Elevdp { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 18, + /// LongMnemonic = "ELEVKB", + /// ShortMnemonic = "ELKB", + /// Description = "Elev : Kelly Bushing-MSL", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ELEVKB")] + public float? Elevkb { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 19, + /// LongMnemonic = "ELEVGL", + /// ShortMnemonic = "ELGL", + /// Description = "Elev : Ground Level-MSL", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ELEVGL")] + public float? Elevgl { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 20, + /// LongMnemonic = "WATDEPT", + /// ShortMnemonic = "WDPM", + /// Description = "Water Depth (mean)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WATDEPT")] + public float? Watdept { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 21, + /// LongMnemonic = "SPUDDATE", + /// ShortMnemonic = "SPDT", + /// Description = "Spud Date", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("SPUDDATE")] + public int? Spuddate { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 22, + /// LongMnemonic = "CUS1", + /// ShortMnemonic = "CUS1", + /// Description = "Custom Field 01 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS1")] + public string? Cus1 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 23, + /// LongMnemonic = "CUS2", + /// ShortMnemonic = "CUS2", + /// Description = "Custom Field 02 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS2")] + public string? Cus2 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 24, + /// LongMnemonic = "CUS3", + /// ShortMnemonic = "CUS3", + /// Description = "Custom Field 03 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS3")] + public string? Cus3 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 25, + /// LongMnemonic = "CUS4", + /// ShortMnemonic = "CUS4", + /// Description = "Custom Field 04 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS4")] + public string? Cus4 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 26, + /// LongMnemonic = "CUS5", + /// ShortMnemonic = "CUS5", + /// Description = "Custom Field 05 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS5")] + public string? Cus5 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 27, + /// LongMnemonic = "CUS6", + /// ShortMnemonic = "CUS6", + /// Description = "Custom Field 06 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS6")] + public string? Cus6 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 28, + /// LongMnemonic = "CUS7", + /// ShortMnemonic = "CUS7", + /// Description = "Custom Field 07 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS7")] + public string? Cus7 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 29, + /// LongMnemonic = "CUS8", + /// ShortMnemonic = "CUS8", + /// Description = "Custom Field 08 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS8")] + public string? Cus8 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 30, + /// LongMnemonic = "CUS9", + /// ShortMnemonic = "CUS9", + /// Description = "Custom Field 09 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS9")] + public string? Cus9 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 31, + /// LongMnemonic = "CUS0", + /// ShortMnemonic = "CUS0", + /// Description = "Custom Field 10 Identifier", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 32, + /// ValueType = "A" + /// + [Column("CUS0")] + public string? Cus0 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 32, + /// LongMnemonic = "UNIT", + /// ShortMnemonic = "UNIT", + /// Description = "Units Type used", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("UNIT")] + public string? Unit { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 33, + /// LongMnemonic = "TOFFSET", + /// ShortMnemonic = "TOFF", + /// Description = "Time Zone Offset", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("TOFFSET")] + public int? Toffset { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 34, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 35, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 36, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 23, + /// ItemId = 37, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record24.cs b/AsbCloudDb/Model/WITS/Record24.cs new file mode 100644 index 00000000..ef6d544d --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record24.cs @@ -0,0 +1,870 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Vessel Motion / Mooring Status + /// Description: Vessel Motion and Mooring Status data + /// Description2: + /// + [Table("t_telemetry_wits_24")] + public class Record24: RecordBase { + + /// + /// RecordId = 24, + /// ItemId = 8, + /// LongMnemonic = "WATDEPT", + /// ShortMnemonic = "WDPM", + /// Description = "Water Depth (mean)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WATDEPT")] + public float? Watdept { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 9, + /// LongMnemonic = "TIDE", + /// ShortMnemonic = "TIDE", + /// Description = "Tide", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TIDE")] + public float? Tide { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 10, + /// LongMnemonic = "VESSHEAD", + /// ShortMnemonic = "VHED", + /// Description = "Vessel Heading", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("VESSHEAD")] + public float? Vesshead { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 11, + /// LongMnemonic = "RIGVCG", + /// ShortMnemonic = "RVCG", + /// Description = "Rig VCG", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RIGVCG")] + public float? Rigvcg { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 12, + /// LongMnemonic = "RISTENS", + /// ShortMnemonic = "RTEN", + /// Description = "Riser Tension", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RISTENS")] + public float? Ristens { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 13, + /// LongMnemonic = "OFFSETA", + /// ShortMnemonic = "OFSA", + /// Description = "Rig Offset (avg)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("OFFSETA")] + public float? Offseta { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 14, + /// LongMnemonic = "OFFSETX", + /// ShortMnemonic = "OFSX", + /// Description = "Rig Offset (max)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("OFFSETX")] + public float? Offsetx { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 15, + /// LongMnemonic = "OFFSETD", + /// ShortMnemonic = "OFSD", + /// Description = "Rig Offset Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("OFFSETD")] + public float? Offsetd { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 16, + /// LongMnemonic = "LMRPANA", + /// ShortMnemonic = "LANA", + /// Description = "LMRP Angle (avg)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("LMRPANA")] + public float? Lmrpana { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 17, + /// LongMnemonic = "LMRPANX", + /// ShortMnemonic = "LANX", + /// Description = "LMRP Angle (max)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("LMRPANX")] + public float? Lmrpanx { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 18, + /// LongMnemonic = "LMRPAND", + /// ShortMnemonic = "LAND", + /// Description = "LMRP Angle, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("LMRPAND")] + public float? Lmrpand { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 19, + /// LongMnemonic = "MDRISER", + /// ShortMnemonic = "MDRI", + /// Description = "Fluid Density in Riser", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MDRISER")] + public float? Mdriser { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 20, + /// LongMnemonic = "MLTA01", + /// ShortMnemonic = "TA01", + /// Description = "Mooring Line #01 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA01")] + public float? Mlta01 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 21, + /// LongMnemonic = "MLTX01", + /// ShortMnemonic = "TX01", + /// Description = "Mooring Line #01 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX01")] + public float? Mltx01 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 22, + /// LongMnemonic = "MLTA02", + /// ShortMnemonic = "TA02", + /// Description = "Mooring Line #02 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA02")] + public float? Mlta02 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 23, + /// LongMnemonic = "MLTX02", + /// ShortMnemonic = "TX02", + /// Description = "Mooring Line #02 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX02")] + public float? Mltx02 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 24, + /// LongMnemonic = "MLTA03", + /// ShortMnemonic = "TA03", + /// Description = "Mooring Line #03 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA03")] + public float? Mlta03 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 25, + /// LongMnemonic = "MLTX03", + /// ShortMnemonic = "TX03", + /// Description = "Mooring Line #03 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX03")] + public float? Mltx03 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 26, + /// LongMnemonic = "MLTA04", + /// ShortMnemonic = "TA04", + /// Description = "Mooring Line #04 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA04")] + public float? Mlta04 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 27, + /// LongMnemonic = "MLTX04", + /// ShortMnemonic = "TX04", + /// Description = "Mooring Line #04 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX04")] + public float? Mltx04 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 28, + /// LongMnemonic = "MLTA05", + /// ShortMnemonic = "TA05", + /// Description = "Mooring Line #05 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA05")] + public float? Mlta05 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 29, + /// LongMnemonic = "MLTX05", + /// ShortMnemonic = "TX05", + /// Description = "Mooring Line #05 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX05")] + public float? Mltx05 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 30, + /// LongMnemonic = "MLTA06", + /// ShortMnemonic = "TA06", + /// Description = "Mooring Line #06 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA06")] + public float? Mlta06 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 31, + /// LongMnemonic = "MLTX06", + /// ShortMnemonic = "TX06", + /// Description = "Mooring Line #06 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX06")] + public float? Mltx06 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 32, + /// LongMnemonic = "MLTA07", + /// ShortMnemonic = "TA07", + /// Description = "Mooring Line #07 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA07")] + public float? Mlta07 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 33, + /// LongMnemonic = "MLTX07", + /// ShortMnemonic = "TX07", + /// Description = "Mooring Line #07 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX07")] + public float? Mltx07 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 34, + /// LongMnemonic = "MLTA08", + /// ShortMnemonic = "TA08", + /// Description = "Mooring Line #08 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA08")] + public float? Mlta08 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 35, + /// LongMnemonic = "MLTX08", + /// ShortMnemonic = "TX08", + /// Description = "Mooring Line #08 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX08")] + public float? Mltx08 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 36, + /// LongMnemonic = "MLTA09", + /// ShortMnemonic = "TA09", + /// Description = "Mooring Line #09 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA09")] + public float? Mlta09 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 37, + /// LongMnemonic = "MLTX09", + /// ShortMnemonic = "TX09", + /// Description = "Mooring Line #09 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX09")] + public float? Mltx09 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 38, + /// LongMnemonic = "MLTA10", + /// ShortMnemonic = "TA10", + /// Description = "Mooring Line #10 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA10")] + public float? Mlta10 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 39, + /// LongMnemonic = "MLTX10", + /// ShortMnemonic = "TX10", + /// Description = "Mooring Line #10 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX10")] + public float? Mltx10 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 40, + /// LongMnemonic = "MLTA11", + /// ShortMnemonic = "TA11", + /// Description = "Mooring Line #11 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA11")] + public float? Mlta11 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 41, + /// LongMnemonic = "MLTX11", + /// ShortMnemonic = "TX11", + /// Description = "Mooring Line #11 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX11")] + public float? Mltx11 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 42, + /// LongMnemonic = "MLTA12", + /// ShortMnemonic = "TA12", + /// Description = "Mooring Line #12 Tens(avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTA12")] + public float? Mlta12 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 43, + /// LongMnemonic = "MLTX12", + /// ShortMnemonic = "TX12", + /// Description = "Mooring Line #12 Tens(max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MLTX12")] + public float? Mltx12 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 44, + /// LongMnemonic = "THRF01", + /// ShortMnemonic = "TF01", + /// Description = "Thruster #01, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF01")] + public float? Thrf01 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 45, + /// LongMnemonic = "THRD01", + /// ShortMnemonic = "TD01", + /// Description = "Thruster #01, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD01")] + public float? Thrd01 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 46, + /// LongMnemonic = "THRF02", + /// ShortMnemonic = "TF02", + /// Description = "Thruster #02, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF02")] + public float? Thrf02 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 47, + /// LongMnemonic = "THRD02", + /// ShortMnemonic = "TD02", + /// Description = "Thruster #02, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD02")] + public float? Thrd02 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 48, + /// LongMnemonic = "THRF03", + /// ShortMnemonic = "TF03", + /// Description = "Thruster #03, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF03")] + public float? Thrf03 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 49, + /// LongMnemonic = "THRD03", + /// ShortMnemonic = "TD03", + /// Description = "Thruster #03, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD03")] + public float? Thrd03 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 50, + /// LongMnemonic = "THRF04", + /// ShortMnemonic = "TF04", + /// Description = "Thruster #04, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF04")] + public float? Thrf04 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 51, + /// LongMnemonic = "THRD04", + /// ShortMnemonic = "TD04", + /// Description = "Thruster #04, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD04")] + public float? Thrd04 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 52, + /// LongMnemonic = "THRF05", + /// ShortMnemonic = "TF05", + /// Description = "Thruster #05, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF05")] + public float? Thrf05 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 53, + /// LongMnemonic = "THRD05", + /// ShortMnemonic = "TD05", + /// Description = "Thruster #05, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD05")] + public float? Thrd05 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 54, + /// LongMnemonic = "THRF06", + /// ShortMnemonic = "TF06", + /// Description = "Thruster #06, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF06")] + public float? Thrf06 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 55, + /// LongMnemonic = "THRD06", + /// ShortMnemonic = "TD06", + /// Description = "Thruster #06, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD06")] + public float? Thrd06 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 56, + /// LongMnemonic = "THRF07", + /// ShortMnemonic = "TF07", + /// Description = "Thruster #07, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF07")] + public float? Thrf07 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 57, + /// LongMnemonic = "THRD07", + /// ShortMnemonic = "TD07", + /// Description = "Thruster #07, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD07")] + public float? Thrd07 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 58, + /// LongMnemonic = "THRF08", + /// ShortMnemonic = "TF08", + /// Description = "Thruster #08, Force", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRF08")] + public float? Thrf08 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 59, + /// LongMnemonic = "THRD08", + /// ShortMnemonic = "TD08", + /// Description = "Thruster #08, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("THRD08")] + public float? Thrd08 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 60, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 61, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 62, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 63, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 24, + /// ItemId = 64, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record25.cs b/AsbCloudDb/Model/WITS/Record25.cs new file mode 100644 index 00000000..00214bbe --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record25.cs @@ -0,0 +1,690 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Weather / Sea State + /// Description: Weather and Sea State data + /// Description2: + /// + [Table("t_telemetry_wits_25")] + public class Record25: RecordBase { + + /// + /// RecordId = 25, + /// ItemId = 8, + /// LongMnemonic = "WATDEPT", + /// ShortMnemonic = "WDPM", + /// Description = "Water Depth (mean)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WATDEPT")] + public float? Watdept { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 9, + /// LongMnemonic = "AIRTEMP", + /// ShortMnemonic = "AIRT", + /// Description = "Air Temperature", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("AIRTEMP")] + public float? Airtemp { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 10, + /// LongMnemonic = "BARPRES", + /// ShortMnemonic = "BARP", + /// Description = "Barometric Pressure", + /// Description2 = "", + /// FPSUnits = "IHG", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BARPRES")] + public float? Barpres { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 11, + /// LongMnemonic = "WVSHGHT", + /// ShortMnemonic = "WVSH", + /// Description = "Waves, Significant Height", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WVSHGHT")] + public float? Wvshght { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 12, + /// LongMnemonic = "WVMHGHT", + /// ShortMnemonic = "WVMH", + /// Description = "Waves, Maximum Height", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WVMHGHT")] + public float? Wvmhght { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 13, + /// LongMnemonic = "WVMPER", + /// ShortMnemonic = "WVMP", + /// Description = "Waves, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("WVMPER")] + public short? Wvmper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 14, + /// LongMnemonic = "WVDIR", + /// ShortMnemonic = "WVDI", + /// Description = "Waves, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WVDIR")] + public float? Wvdir { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 15, + /// LongMnemonic = "SWSHGHT", + /// ShortMnemonic = "SWSH", + /// Description = "Swell, Significant Height", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SWSHGHT")] + public float? Swshght { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 16, + /// LongMnemonic = "SWMHGHT", + /// ShortMnemonic = "SWMH", + /// Description = "Swell, Maximum Height", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SWMHGHT")] + public float? Swmhght { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 17, + /// LongMnemonic = "SWMPER", + /// ShortMnemonic = "SWMP", + /// Description = "Swell, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("SWMPER")] + public short? Swmper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 18, + /// LongMnemonic = "SWDIR", + /// ShortMnemonic = "SWDI", + /// Description = "Swell, Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SWDIR")] + public float? Swdir { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 19, + /// LongMnemonic = "WINDSPD", + /// ShortMnemonic = "WSPD", + /// Description = "Wind Speed ( 1 min )", + /// Description2 = "", + /// FPSUnits = "MPH", + /// MetricUnits = "KPH", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WINDSPD")] + public float? Windspd { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 20, + /// LongMnemonic = "WINDGUST", + /// ShortMnemonic = "WGST", + /// Description = "Wind Gusts ( 5 sec )", + /// Description2 = "", + /// FPSUnits = "MPH", + /// MetricUnits = "KPH", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WINDGUST")] + public float? Windgust { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 21, + /// LongMnemonic = "WINDDIR", + /// ShortMnemonic = "WDIR", + /// Description = "Wind Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("WINDDIR")] + public float? Winddir { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 22, + /// LongMnemonic = "ANEMHGHT", + /// ShortMnemonic = "ANEM", + /// Description = "Anemometer Height", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ANEMHGHT")] + public float? Anemhght { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 23, + /// LongMnemonic = "CURRSPD", + /// ShortMnemonic = "CSPD", + /// Description = "Current Speed", + /// Description2 = "", + /// FPSUnits = "MPH", + /// MetricUnits = "KPH", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CURRSPD")] + public short? Currspd { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 24, + /// LongMnemonic = "CURRDIR", + /// ShortMnemonic = "CDIR", + /// Description = "Current Direction", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("CURRDIR")] + public float? Currdir { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 25, + /// LongMnemonic = "DEPTCURR", + /// ShortMnemonic = "DCUR", + /// Description = "Depth current measured", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCURR")] + public float? Deptcurr { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 26, + /// LongMnemonic = "VESMDRFT", + /// ShortMnemonic = "VMD", + /// Description = "Vessel Mean Draft", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("VESMDRFT")] + public float? Vesmdrft { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 27, + /// LongMnemonic = "HEAVSIG", + /// ShortMnemonic = "HVSG", + /// Description = "Heave, Peak-to-Peak (sig)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HEAVSIG")] + public float? Heavsig { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 28, + /// LongMnemonic = "HEAVMAX", + /// ShortMnemonic = "HVMX", + /// Description = "Heave, Peak-to-Peak (max)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HEAVMAX")] + public float? Heavmax { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 29, + /// LongMnemonic = "HEAVMPER", + /// ShortMnemonic = "HVMP", + /// Description = "Heave, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("HEAVMPER")] + public short? Heavmper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 30, + /// LongMnemonic = "ROLLSIG", + /// ShortMnemonic = "RLSG", + /// Description = "Roll, Peak-to-Peak (sig)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ROLLSIG")] + public float? Rollsig { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 31, + /// LongMnemonic = "ROLLMAX", + /// ShortMnemonic = "RLMX", + /// Description = "Roll, Peak-to-Peak (max)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ROLLMAX")] + public float? Rollmax { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 32, + /// LongMnemonic = "ROLLMPER", + /// ShortMnemonic = "RLMP", + /// Description = "Roll, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ROLLMPER")] + public short? Rollmper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 33, + /// LongMnemonic = "PTCHSIG", + /// ShortMnemonic = "PTSG", + /// Description = "Pitch, Peak-to-Peak (sig)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PTCHSIG")] + public float? Ptchsig { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 34, + /// LongMnemonic = "PTCHMAX", + /// ShortMnemonic = "PTMX", + /// Description = "Pitch, Peak-to-Peak (max)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PTCHMAX")] + public float? Ptchmax { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 35, + /// LongMnemonic = "PTCHMPER", + /// ShortMnemonic = "PTMP", + /// Description = "Pitch, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("PTCHMPER")] + public short? Ptchmper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 36, + /// LongMnemonic = "YAWSIG", + /// ShortMnemonic = "YWSG", + /// Description = "Yaw, Peak-to Peak (sig)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("YAWSIG")] + public float? Yawsig { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 37, + /// LongMnemonic = "YAWMAX", + /// ShortMnemonic = "YWMX", + /// Description = "Yaw, Peak-to-Peak (max)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("YAWMAX")] + public float? Yawmax { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 38, + /// LongMnemonic = "YAWMPER", + /// ShortMnemonic = "YWMP", + /// Description = "Yaw, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("YAWMPER")] + public short? Yawmper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 39, + /// LongMnemonic = "SURGSIG", + /// ShortMnemonic = "SUSG", + /// Description = "Surge, Peak-to-Peak (sig)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SURGSIG")] + public float? Surgsig { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 40, + /// LongMnemonic = "SURGMAX", + /// ShortMnemonic = "SUMX", + /// Description = "Surge, Peak-to-Peak (max)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SURGMAX")] + public float? Surgmax { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 41, + /// LongMnemonic = "SURGMPER", + /// ShortMnemonic = "SUMP", + /// Description = "Surge, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("SURGMPER")] + public short? Surgmper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 42, + /// LongMnemonic = "SWAYSIG", + /// ShortMnemonic = "SYSG", + /// Description = "Sway, Peak-to-Peak (sig)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SWAYSIG")] + public float? Swaysig { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 43, + /// LongMnemonic = "SWAYMAX", + /// ShortMnemonic = "SYMX", + /// Description = "Sway, Peak-to-Peak (max)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SWAYMAX")] + public float? Swaymax { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 44, + /// LongMnemonic = "SWAYMPER", + /// ShortMnemonic = "SYMP", + /// Description = "Sway, Mean Period", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("SWAYMPER")] + public short? Swaymper { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 45, + /// LongMnemonic = "TRIM", + /// ShortMnemonic = "TRIM", + /// Description = "Trim", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TRIM")] + public float? Trim { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 46, + /// LongMnemonic = "HEEL", + /// ShortMnemonic = "HEEL", + /// Description = "Heel", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HEEL")] + public float? Heel { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 47, + /// LongMnemonic = "WSSCOMM", + /// ShortMnemonic = "WSCM", + /// Description = "Weather Comments", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 128, + /// ValueType = "A" + /// + [Column("WSSCOMM")] + public string? Wsscomm { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 48, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 49, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 50, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 51, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 25, + /// ItemId = 52, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record3.cs b/AsbCloudDb/Model/WITS/Record3.cs new file mode 100644 index 00000000..4f6bd7f9 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record3.cs @@ -0,0 +1,300 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Drilling - Connections + /// Description: Data gathered at drilling connections + /// Description2: + /// + [Table("t_telemetry_wits_3")] + public class Record3: RecordBase { + + /// + /// RecordId = 3, + /// ItemId = 8, + /// LongMnemonic = "DEPTCONM", + /// ShortMnemonic = "DCNM", + /// Description = "Depth Connection (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCONM")] + public float? Deptconm { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 9, + /// LongMnemonic = "DEPTCONV", + /// ShortMnemonic = "DCNV", + /// Description = "Depth Connection (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCONV")] + public float? Deptconv { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 11, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 12, + /// LongMnemonic = "ETIMEBTS", + /// ShortMnemonic = "ETBS", + /// Description = "Elapsed Time Bottom-Slips", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ETIMEBTS")] + public short? Etimebts { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 13, + /// LongMnemonic = "ETIMESLP", + /// ShortMnemonic = "ETSL", + /// Description = "Elapsed Time In-Slips", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ETIMESLP")] + public short? Etimeslp { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 14, + /// LongMnemonic = "ETIMESTB", + /// ShortMnemonic = "ETSB", + /// Description = "Elapsed Time Slips-Bottom", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ETIMESTB")] + public short? Etimestb { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 15, + /// LongMnemonic = "ETIMEPOF", + /// ShortMnemonic = "ETPO", + /// Description = "Elapsed Time Pumps-Off", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ETIMEPOF")] + public short? Etimepof { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 16, + /// LongMnemonic = "RSUX", + /// ShortMnemonic = "RSUX", + /// Description = "Running Speed - up (max)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSUX")] + public float? Rsux { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 17, + /// LongMnemonic = "RSDX", + /// ShortMnemonic = "RSDX", + /// Description = "Running Speed - down (max)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSDX")] + public float? Rsdx { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 18, + /// LongMnemonic = "HKLX", + /// ShortMnemonic = "HKLX", + /// Description = "Hookload (max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLX")] + public float? Hklx { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 19, + /// LongMnemonic = "STRGWT", + /// ShortMnemonic = "STWT", + /// Description = "String Weight (rot,avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("STRGWT")] + public float? Strgwt { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 20, + /// LongMnemonic = "TORQMUX", + /// ShortMnemonic = "TQMX", + /// Description = "Torque - Make Up (max)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TORQMUX")] + public float? Torqmux { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 21, + /// LongMnemonic = "TORQBOX", + /// ShortMnemonic = "TQBX", + /// Description = "Torque - Breakout (max)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TORQBOX")] + public float? Torqbox { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 22, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 23, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 24, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 25, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 3, + /// ItemId = 26, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record4.cs b/AsbCloudDb/Model/WITS/Record4.cs new file mode 100644 index 00000000..49bc7215 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record4.cs @@ -0,0 +1,495 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Hydraulics + /// Description: Hydraulics data gathered while circulating + /// Description2: + /// + [Table("t_telemetry_wits_4")] + public class Record4: RecordBase { + + /// + /// RecordId = 4, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 10, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 11, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITV")] + public float? Deptbitv { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 12, + /// LongMnemonic = "MDIA", + /// ShortMnemonic = "MDIA", + /// Description = "Mud Density In (avg)", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MDIA")] + public float? Mdia { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 13, + /// LongMnemonic = "MFIA", + /// ShortMnemonic = "MFIA", + /// Description = "Mud Flow In (avg)", + /// Description2 = "", + /// FPSUnits = "GPM", + /// MetricUnits = "L/M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFIA")] + public float? Mfia { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 14, + /// LongMnemonic = "SPPA", + /// ShortMnemonic = "SPPA", + /// Description = "Standpipe Pressure (avg)", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPPA")] + public float? Sppa { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 15, + /// LongMnemonic = "PV", + /// ShortMnemonic = "PV", + /// Description = "Plastic Viscosity", + /// Description2 = "", + /// FPSUnits = "CP", + /// MetricUnits = "CP", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PV")] + public float? Pv { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 16, + /// LongMnemonic = "YP", + /// ShortMnemonic = "YP", + /// Description = "Yield Point", + /// Description2 = "", + /// FPSUnits = "PHSF", + /// MetricUnits = "PA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("YP")] + public float? Yp { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 17, + /// LongMnemonic = "PLB", + /// ShortMnemonic = "PLB", + /// Description = "Pressure Loss - bit", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLB")] + public float? Plb { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 18, + /// LongMnemonic = "PLDS", + /// ShortMnemonic = "PLDS", + /// Description = "Pressure Loss - string", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLDS")] + public float? Plds { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 19, + /// LongMnemonic = "PLA", + /// ShortMnemonic = "PLA", + /// Description = "Pressure Loss - annulus", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLA")] + public float? Pla { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 20, + /// LongMnemonic = "PLSU", + /// ShortMnemonic = "PLSU", + /// Description = "Pressure Loss - surface", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLSU")] + public float? Plsu { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 21, + /// LongMnemonic = "PLMM", + /// ShortMnemonic = "PLMM", + /// Description = "Pressure Loss - mud motor", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLMM")] + public float? Plmm { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 22, + /// LongMnemonic = "PLMWD", + /// ShortMnemonic = "PLMW", + /// Description = "Pressure Loss - MWD tool", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLMWD")] + public float? Plmwd { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 23, + /// LongMnemonic = "PLPB", + /// ShortMnemonic = "PLPB", + /// Description = "Pressure Loss - % at bit", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLPB")] + public float? Plpb { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 24, + /// LongMnemonic = "BHP", + /// ShortMnemonic = "BHP", + /// Description = "Bit Hydraulic Power", + /// Description2 = "", + /// FPSUnits = "HP", + /// MetricUnits = "KW", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BHP")] + public float? Bhp { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 25, + /// LongMnemonic = "BHPA", + /// ShortMnemonic = "BHPA", + /// Description = "Bit Hydraulic Power/Area", + /// Description2 = "", + /// FPSUnits = "HSI", + /// MetricUnits = "KWM2", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BHPA")] + public float? Bhpa { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 26, + /// LongMnemonic = "JIF", + /// ShortMnemonic = "JIF", + /// Description = "Jet Impact Force", + /// Description2 = "", + /// FPSUnits = "LB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("JIF")] + public float? Jif { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 27, + /// LongMnemonic = "JV", + /// ShortMnemonic = "JV", + /// Description = "Jet Velocity", + /// Description2 = "", + /// FPSUnits = "FPS", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("JV")] + public float? Jv { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 28, + /// LongMnemonic = "AVELN", + /// ShortMnemonic = "AVN", + /// Description = "Annular Velocity (min)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("AVELN")] + public float? Aveln { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 29, + /// LongMnemonic = "AVELX", + /// ShortMnemonic = "AVX", + /// Description = "Annular Velocity (max)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("AVELX")] + public float? Avelx { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 30, + /// LongMnemonic = "ECDTD", + /// ShortMnemonic = "ECDT", + /// Description = "ECD at Total Depth", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ECDTD")] + public float? Ecdtd { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 31, + /// LongMnemonic = "ECDBIT", + /// ShortMnemonic = "ECDB", + /// Description = "ECD at Bit", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ECDBIT")] + public float? Ecdbit { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 32, + /// LongMnemonic = "ECDCSG", + /// ShortMnemonic = "ECDC", + /// Description = "ECD at Casing Shoe", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ECDCSG")] + public float? Ecdcsg { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 33, + /// LongMnemonic = "PHP", + /// ShortMnemonic = "PHP", + /// Description = "Pump Hydraulic Power", + /// Description2 = "", + /// FPSUnits = "HP", + /// MetricUnits = "KW", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PHP")] + public float? Php { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 34, + /// LongMnemonic = "PLCO", + /// ShortMnemonic = "PLCO", + /// Description = "Calc/Obs Press.Loss ratio", + /// Description2 = "", + /// FPSUnits = "%", + /// MetricUnits = "%", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PLCO")] + public float? Plco { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 35, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 36, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 37, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 38, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 4, + /// ItemId = 39, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record5.cs b/AsbCloudDb/Model/WITS/Record5.cs new file mode 100644 index 00000000..85a19e82 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record5.cs @@ -0,0 +1,255 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Trip - Time + /// Description: Tripping data gathered while running in/pulling out + /// Description2: + /// + [Table("t_telemetry_wits_5")] + public class Record5: RecordBase { + + /// + /// RecordId = 5, + /// ItemId = 8, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 9, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITV")] + public float? Deptbitv { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 11, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 12, + /// LongMnemonic = "TRIPNUM", + /// ShortMnemonic = "TNUM", + /// Description = "Trip Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("TRIPNUM")] + public short? Tripnum { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 13, + /// LongMnemonic = "STATUSIS", + /// ShortMnemonic = "STIS", + /// Description = "In-Slips Status", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "A" + /// + [Column("STATUSIS")] + public string? Statusis { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 14, + /// LongMnemonic = "HKLA", + /// ShortMnemonic = "HKLA", + /// Description = "Hookload (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLA")] + public float? Hkla { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 15, + /// LongMnemonic = "BLKPOS", + /// ShortMnemonic = "BPOS", + /// Description = "Block Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("BLKPOS")] + public float? Blkpos { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 16, + /// LongMnemonic = "RSUX", + /// ShortMnemonic = "RSUX", + /// Description = "Running Speed - up (max)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSUX")] + public float? Rsux { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 17, + /// LongMnemonic = "RSDX", + /// ShortMnemonic = "RSDX", + /// Description = "Running Speed - down (max)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSDX")] + public float? Rsdx { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 18, + /// LongMnemonic = "FVOLOC", + /// ShortMnemonic = "FVOC", + /// Description = "Fill/Gain Volume Obs.(cum)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FVOLOC")] + public float? Fvoloc { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 19, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 20, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 21, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 22, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 5, + /// ItemId = 23, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record50.cs b/AsbCloudDb/Model/WITS/Record50.cs new file mode 100644 index 00000000..f6a32b53 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record50.cs @@ -0,0 +1,300 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Резистивиметр MCR + /// Description: SibReciver. Резистивиметр MCR + /// Description2: + /// + [Table("t_telemetry_wits_50")] + public class Record50: RecordBase { + + /// + /// RecordId = 50, + /// ItemId = 8, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "SibReceiver custom. Положение долота", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS_MCRSTAT", + /// ShortMnemonic = "DEPTMEAS_MCRSTAT", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_MCRSTAT")] + public float? DeptmeasMcrstat { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 11, + /// LongMnemonic = "MCRSTAT", + /// ShortMnemonic = "MCRSTAT", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MCRSTAT")] + public float? Mcrstat { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 12, + /// LongMnemonic = "DEPTMEAS_SLVL_mc", + /// ShortMnemonic = "DEPTMEAS_SLVL_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_SLVL_mc")] + public float? DeptmeasSlvlMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 13, + /// LongMnemonic = "SLVL_mc", + /// ShortMnemonic = "SLVL_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SLVL_mc")] + public float? SlvlMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 14, + /// LongMnemonic = "DEPTMEAS_GDP_mc", + /// ShortMnemonic = "DEPTMEAS_GDP_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_GDP_mc")] + public float? DeptmeasGdpMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 15, + /// LongMnemonic = "GDP_mc", + /// ShortMnemonic = "GDP_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("GDP_mc")] + public float? GdpMc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 16, + /// LongMnemonic = "DEPTMEAS_RA33F2_mc", + /// ShortMnemonic = "DEPTMEAS_RA33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_RA33F2_mc")] + public float? DeptmeasRa33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 17, + /// LongMnemonic = "RA33F2_mc", + /// ShortMnemonic = "RA33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RA33F2_mc")] + public float? Ra33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 18, + /// LongMnemonic = "DEPTMEAS_RP33F2_mc", + /// ShortMnemonic = "DEPTMEAS_RP33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_RP33F2_mc")] + public float? DeptmeasRp33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 19, + /// LongMnemonic = "RP33F2_mc", + /// ShortMnemonic = "RP33F2_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RP33F2_mc")] + public float? Rp33f2Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 20, + /// LongMnemonic = "DEPTMEAS_RA33F4_mc", + /// ShortMnemonic = "DEPTMEAS_RA33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_RA33F4_mc")] + public float? DeptmeasRa33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 21, + /// LongMnemonic = "RA33F4_mc", + /// ShortMnemonic = "RA33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RA33F4_mc")] + public float? Ra33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 22, + /// LongMnemonic = "DEPTMEAS_RP33F4_mc", + /// ShortMnemonic = "DEPTMEAS_RP33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_RP33F4_mc")] + public float? DeptmeasRp33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 23, + /// LongMnemonic = "RP33F4_mc", + /// ShortMnemonic = "RP33F4_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RP33F4_mc")] + public float? Rp33f4Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 46, + /// LongMnemonic = "DEPTMEAS_RA33_mc", + /// ShortMnemonic = "DEPTMEAS_RA33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_RA33_mc")] + public float? DeptmeasRa33Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 47, + /// LongMnemonic = "RA33_mc", + /// ShortMnemonic = "RA33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RA33_mc")] + public float? Ra33Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 28, + /// LongMnemonic = "DEPTMEAS_RP33_mc", + /// ShortMnemonic = "DEPTMEAS_RP33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS_RP33_mc")] + public float? DeptmeasRp33Mc { get; set; } + + /// + /// RecordId = 50, + /// ItemId = 29, + /// LongMnemonic = "RP33_mc", + /// ShortMnemonic = "RP33_mc", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RP33_mc")] + public float? Rp33Mc { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record6.cs b/AsbCloudDb/Model/WITS/Record6.cs new file mode 100644 index 00000000..db760b72 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record6.cs @@ -0,0 +1,420 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Trip - Connections + /// Description: Tripping data gathered at tripping connections + /// Description2: + /// + [Table("t_telemetry_wits_6")] + public class Record6: RecordBase { + + /// + /// RecordId = 6, + /// ItemId = 8, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 9, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITV")] + public float? Deptbitv { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 11, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 12, + /// LongMnemonic = "TRIPNUM", + /// ShortMnemonic = "TNUM", + /// Description = "Trip Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("TRIPNUM")] + public short? Tripnum { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 13, + /// LongMnemonic = "CONNDONE", + /// ShortMnemonic = "CDON", + /// Description = "Connections Done", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CONNDONE")] + public short? Conndone { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 14, + /// LongMnemonic = "CONNREM", + /// ShortMnemonic = "CREM", + /// Description = "Connections Remaining", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("CONNREM")] + public short? Connrem { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 15, + /// LongMnemonic = "ETIMESLP", + /// ShortMnemonic = "ETSL", + /// Description = "Elapsed Time In-Slips", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ETIMESLP")] + public short? Etimeslp { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 16, + /// LongMnemonic = "ETIMEOS", + /// ShortMnemonic = "ETOS", + /// Description = "Elapsed Time Out-of-Slips", + /// Description2 = "", + /// FPSUnits = "SEC", + /// MetricUnits = "SEC", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ETIMEOS")] + public short? Etimeos { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 17, + /// LongMnemonic = "RSUX", + /// ShortMnemonic = "RSUX", + /// Description = "Running Speed -up (max)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSUX")] + public float? Rsux { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 18, + /// LongMnemonic = "RSUA", + /// ShortMnemonic = "RSUA", + /// Description = "Running Speed -up (avg)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSUA")] + public float? Rsua { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 19, + /// LongMnemonic = "RSDX", + /// ShortMnemonic = "RSDX", + /// Description = "Running Speed -down (max)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSDX")] + public float? Rsdx { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 20, + /// LongMnemonic = "RSDA", + /// ShortMnemonic = "RSDA", + /// Description = "Running Speed -down (avg)", + /// Description2 = "", + /// FPSUnits = "FPM", + /// MetricUnits = "M/S", + /// Length = 4, + /// ValueType = "F" + /// + [Column("RSDA")] + public float? Rsda { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 21, + /// LongMnemonic = "HKLX", + /// ShortMnemonic = "HKLX", + /// Description = "Hookload (max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLX")] + public float? Hklx { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 22, + /// LongMnemonic = "HKLN", + /// ShortMnemonic = "HKLN", + /// Description = "Hookload (min)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLN")] + public float? Hkln { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 23, + /// LongMnemonic = "HKLA", + /// ShortMnemonic = "HKLA", + /// Description = "Hookload (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("HKLA")] + public float? Hkla { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 24, + /// LongMnemonic = "TORQMUX", + /// ShortMnemonic = "TQMX", + /// Description = "Torque - Make Up (max)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TORQMUX")] + public float? Torqmux { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 25, + /// LongMnemonic = "TORQBOX", + /// ShortMnemonic = "TQBX", + /// Description = "Torque - Breakout (max)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("TORQBOX")] + public float? Torqbox { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 26, + /// LongMnemonic = "FVOLO", + /// ShortMnemonic = "FVO", + /// Description = "Fill/Gain Volume Obs.", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FVOLO")] + public float? Fvolo { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 27, + /// LongMnemonic = "FVOLE", + /// ShortMnemonic = "FVE", + /// Description = "Fill/Gain Volume Exp.", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FVOLE")] + public float? Fvole { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 28, + /// LongMnemonic = "FVOLOC", + /// ShortMnemonic = "FVOC", + /// Description = "Fill/Gain Volume Obs.(cum)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FVOLOC")] + public float? Fvoloc { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 29, + /// LongMnemonic = "FVOLEC", + /// ShortMnemonic = "FVEC", + /// Description = "Fill/Gain Volume Exp (cum)", + /// Description2 = "", + /// FPSUnits = "BBL", + /// MetricUnits = "M3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("FVOLEC")] + public float? Fvolec { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 30, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 31, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 32, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 33, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 6, + /// ItemId = 34, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record60.cs b/AsbCloudDb/Model/WITS/Record60.cs new file mode 100644 index 00000000..8aff0af2 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record60.cs @@ -0,0 +1,165 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Передача полных + /// Description: SibReciver. Передача полных + /// Description2: + /// + [Table("t_telemetry_wits_60")] + public class Record60: RecordBase { + + /// + /// RecordId = 60, + /// ItemId = 99, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "SibReceiver custom. Положение долота", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "SibReceiver custom. Точка Замера", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 11, + /// LongMnemonic = "Gtot", + /// ShortMnemonic = "Gtot", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Gtot")] + public float? Gtot { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 12, + /// LongMnemonic = "Gx", + /// ShortMnemonic = "Gx", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Gx")] + public float? Gx { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 13, + /// LongMnemonic = "Gy", + /// ShortMnemonic = "Gy", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Gy")] + public float? Gy { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 14, + /// LongMnemonic = "Gz", + /// ShortMnemonic = "Gz", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Gz")] + public float? Gz { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 15, + /// LongMnemonic = "Btot", + /// ShortMnemonic = "Btot", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Btot")] + public float? Btot { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 16, + /// LongMnemonic = "Bx", + /// ShortMnemonic = "Bx", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Bx")] + public float? Bx { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 17, + /// LongMnemonic = "By", + /// ShortMnemonic = "By", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("By")] + public float? By { get; set; } + + /// + /// RecordId = 60, + /// ItemId = 18, + /// LongMnemonic = "Bz", + /// ShortMnemonic = "Bz", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Bz")] + public float? Bz { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record61.cs b/AsbCloudDb/Model/WITS/Record61.cs new file mode 100644 index 00000000..e2079075 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record61.cs @@ -0,0 +1,180 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Резистивиметр Corvet + /// Description: SibReciver. Резистивиметр Corvet + /// Description2: + /// + [Table("t_telemetry_wits_61")] + public class Record61: RecordBase { + + /// + /// RecordId = 61, + /// ItemId = 99, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "SibReceiver custom. Положение долота", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 10, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "SibReceiver custom. Точка Замера", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 11, + /// LongMnemonic = "PHL1F1", + /// ShortMnemonic = "PHL1F1", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PHL1F1")] + public float? Phl1f1 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 12, + /// LongMnemonic = "PHL1F2", + /// ShortMnemonic = "PHL1F2", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PHL1F2")] + public float? Phl1f2 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 13, + /// LongMnemonic = "PHL2F1", + /// ShortMnemonic = "PHL2F1", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PHL2F1")] + public float? Phl2f1 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 14, + /// LongMnemonic = "PHL2F2", + /// ShortMnemonic = "PHL2F2", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("PHL2F2")] + public float? Phl2f2 { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 15, + /// LongMnemonic = "ATT06H", + /// ShortMnemonic = "ATT06H", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ATT06H")] + public float? Att06h { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 16, + /// LongMnemonic = "ATT06L", + /// ShortMnemonic = "ATT06L", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ATT06L")] + public float? Att06l { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 17, + /// LongMnemonic = "ATT10H", + /// ShortMnemonic = "ATT10H", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ATT10H")] + public float? Att10h { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 18, + /// LongMnemonic = "ATT10L", + /// ShortMnemonic = "ATT10L", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("ATT10L")] + public float? Att10l { get; set; } + + /// + /// RecordId = 61, + /// ItemId = 19, + /// LongMnemonic = "Status", + /// ShortMnemonic = "Status", + /// Description = "SibReceiver custom", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("Status")] + public float? Status { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record7.cs b/AsbCloudDb/Model/WITS/Record7.cs new file mode 100644 index 00000000..4256e3bc --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record7.cs @@ -0,0 +1,300 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: Survey/Directional + /// Description: Directional/Survey data + /// Description2: + /// + [Table("t_telemetry_wits_7")] + public class Record7: RecordBase { + + /// + /// RecordId = 7, + /// ItemId = 8, + /// LongMnemonic = "DEPTSVYM", + /// ShortMnemonic = "DSVM", + /// Description = "Depth Svy/reading (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSVYM")] + public float? Deptsvym { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 9, + /// LongMnemonic = "DEPTSVYV", + /// ShortMnemonic = "DSVV", + /// Description = "Depth Svy/reading (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTSVYV")] + public float? Deptsvyv { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 10, + /// LongMnemonic = "PASSNUM", + /// ShortMnemonic = "PASS", + /// Description = "Pass Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("PASSNUM")] + public short? Passnum { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 11, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 12, + /// LongMnemonic = "SVYTYPE", + /// ShortMnemonic = "STYP", + /// Description = "Svy Type", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 8, + /// ValueType = "A" + /// + [Column("SVYTYPE")] + public string? Svytype { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 13, + /// LongMnemonic = "SVYINC", + /// ShortMnemonic = "SINC", + /// Description = "Svy Inclination", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYINC")] + public float? Svyinc { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 14, + /// LongMnemonic = "SVYAZU", + /// ShortMnemonic = "SAZU", + /// Description = "Svy Azimuth (uncorrected)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYAZU")] + public float? Svyazu { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 15, + /// LongMnemonic = "SVYAZC", + /// ShortMnemonic = "SAZC", + /// Description = "Svy Azimuth (corrected)", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYAZC")] + public float? Svyazc { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 16, + /// LongMnemonic = "SVYMTF", + /// ShortMnemonic = "SMTF", + /// Description = "Svy Magnetic Toolface", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYMTF")] + public float? Svymtf { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 17, + /// LongMnemonic = "SVYGTF", + /// ShortMnemonic = "SGTF", + /// Description = "Svy Gravity Toolface", + /// Description2 = "", + /// FPSUnits = "DEG", + /// MetricUnits = "DEG", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYGTF")] + public float? Svygtf { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 18, + /// LongMnemonic = "SVYNS", + /// ShortMnemonic = "SNS", + /// Description = "Svy North-South Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYNS")] + public float? Svyns { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 19, + /// LongMnemonic = "SVYEW", + /// ShortMnemonic = "SEW", + /// Description = "Svy East-West Position", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYEW")] + public float? Svyew { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 20, + /// LongMnemonic = "SVYDLS", + /// ShortMnemonic = "SDLS", + /// Description = "Svy Dog Leg Severity", + /// Description2 = "", + /// FPSUnits = "DGHF", + /// MetricUnits = "DGHM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYDLS")] + public float? Svydls { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 21, + /// LongMnemonic = "SVYWALK", + /// ShortMnemonic = "SWLK", + /// Description = "Svy Rate of Walk", + /// Description2 = "", + /// FPSUnits = "DGHF", + /// MetricUnits = "DGHM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SVYWALK")] + public float? Svywalk { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 22, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 23, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 24, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 25, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 7, + /// ItemId = 26, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record8.cs b/AsbCloudDb/Model/WITS/Record8.cs new file mode 100644 index 00000000..3fc66961 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record8.cs @@ -0,0 +1,735 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: MWD Formation Evaluation + /// Description: MWD Formation Evaluation data + /// Description2: + /// + [Table("t_telemetry_wits_8")] + public class Record8: RecordBase { + + /// + /// RecordId = 8, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 10, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 11, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITV")] + public float? Deptbitv { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 12, + /// LongMnemonic = "PASSNUM", + /// ShortMnemonic = "PASS", + /// Description = "Pass Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("PASSNUM")] + public short? Passnum { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 13, + /// LongMnemonic = "DEPTRS1M", + /// ShortMnemonic = "DR1M", + /// Description = "Depth Resis 1 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRS1M")] + public float? Deptrs1m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 14, + /// LongMnemonic = "DEPTRS1V", + /// ShortMnemonic = "DR1V", + /// Description = "Depth Resis 1 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRS1V")] + public float? Deptrs1v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 15, + /// LongMnemonic = "MR1", + /// ShortMnemonic = "MR1", + /// Description = "Resis 1 reading", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MR1")] + public float? Mr1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 16, + /// LongMnemonic = "MR1C", + /// ShortMnemonic = "MR1C", + /// Description = "Resis 1 (borehole corr)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MR1C")] + public float? Mr1c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 17, + /// LongMnemonic = "DEPTRS2M", + /// ShortMnemonic = "DR2M", + /// Description = "Depth Resis 2 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRS2M")] + public float? Deptrs2m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 18, + /// LongMnemonic = "DEPTRS2V", + /// ShortMnemonic = "DR2V", + /// Description = "Depth Resis 2 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTRS2V")] + public float? Deptrs2v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 19, + /// LongMnemonic = "MR2", + /// ShortMnemonic = "MR2", + /// Description = "Resis 2 reading", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MR2")] + public float? Mr2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 20, + /// LongMnemonic = "MR2C", + /// ShortMnemonic = "MR2C", + /// Description = "Resis 2 (borehole corr)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MR2C")] + public float? Mr2c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 21, + /// LongMnemonic = "DEPTGR1M", + /// ShortMnemonic = "DG1M", + /// Description = "Depth G.Ray 1 sensor(meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTGR1M")] + public float? Deptgr1m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 22, + /// LongMnemonic = "DEPTGR1V", + /// ShortMnemonic = "DG1V", + /// Description = "Depth G.Ray 1 sensor(vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTGR1V")] + public float? Deptgr1v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 23, + /// LongMnemonic = "MG1", + /// ShortMnemonic = "MG1", + /// Description = "Gamma Ray 1 reading", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MG1")] + public float? Mg1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 24, + /// LongMnemonic = "MG1C", + /// ShortMnemonic = "MG1C", + /// Description = "Gamma Ray 1(borehole corr)", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MG1C")] + public float? Mg1c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 25, + /// LongMnemonic = "DEPTGR2M", + /// ShortMnemonic = "DG2M", + /// Description = "Depth G.Ray 2 sensor(meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTGR2M")] + public float? Deptgr2m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 26, + /// LongMnemonic = "DEPTGR2V", + /// ShortMnemonic = "DG2V", + /// Description = "Depth G.Ray 2 sensor(vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTGR2V")] + public float? Deptgr2v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 27, + /// LongMnemonic = "MG2", + /// ShortMnemonic = "MG2", + /// Description = "Gamma Ray 2 reading", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MG2")] + public float? Mg2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 28, + /// LongMnemonic = "MG2C", + /// ShortMnemonic = "MG2C", + /// Description = "Gamma Ray 2(borehole corr)", + /// Description2 = "", + /// FPSUnits = "API", + /// MetricUnits = "API", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MG2C")] + public float? Mg2c { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 29, + /// LongMnemonic = "DEPTP1M", + /// ShortMnemonic = "DP1M", + /// Description = "Depth Por 1 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTP1M")] + public float? Deptp1m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 30, + /// LongMnemonic = "DEPTP1V", + /// ShortMnemonic = "DP1V", + /// Description = "Depth Por 1 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTP1V")] + public float? Deptp1v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 31, + /// LongMnemonic = "MPO1", + /// ShortMnemonic = "MPO1", + /// Description = "Porosity Tool 1 reading", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MPO1")] + public float? Mpo1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 32, + /// LongMnemonic = "DEPTP2M", + /// ShortMnemonic = "DP2M", + /// Description = "Depth Por 2 sensor (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTP2M")] + public float? Deptp2m { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 33, + /// LongMnemonic = "DEPTP2V", + /// ShortMnemonic = "DP2V", + /// Description = "Depth Por 2 sensor (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTP2V")] + public float? Deptp2v { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 34, + /// LongMnemonic = "MPO2", + /// ShortMnemonic = "MPO2", + /// Description = "Porosity Tool 2 reading", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MPO2")] + public float? Mpo2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 35, + /// LongMnemonic = "MFTANN", + /// ShortMnemonic = "MFTA", + /// Description = "Downhole Fluid Temp (ann)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFTANN")] + public float? Mftann { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 36, + /// LongMnemonic = "MFTPIPE", + /// ShortMnemonic = "MFTP", + /// Description = "Downhole Fluid Temp (pipe)", + /// Description2 = "", + /// FPSUnits = "DEGF", + /// MetricUnits = "DEGC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFTPIPE")] + public float? Mftpipe { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 37, + /// LongMnemonic = "MFRANN", + /// ShortMnemonic = "MFRA", + /// Description = "Downhole Fluid Resis (ann)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFRANN")] + public float? Mfrann { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 38, + /// LongMnemonic = "MFRPIPE", + /// ShortMnemonic = "MFRP", + /// Description = "Downhole Fluid Resis (pipe)", + /// Description2 = "", + /// FPSUnits = "OHMM", + /// MetricUnits = "OHMM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFRPIPE")] + public float? Mfrpipe { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 39, + /// LongMnemonic = "DEPTFDM", + /// ShortMnemonic = "DFDM", + /// Description = "Depth Form Density (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTFDM")] + public float? Deptfdm { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 40, + /// LongMnemonic = "DEPTFDV", + /// ShortMnemonic = "DFDV", + /// Description = "Depth Form Density (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTFDV")] + public float? Deptfdv { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 41, + /// LongMnemonic = "MFD", + /// ShortMnemonic = "MFD", + /// Description = "Formation Density", + /// Description2 = "", + /// FPSUnits = "G/CC", + /// MetricUnits = "G/CC", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFD")] + public float? Mfd { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 42, + /// LongMnemonic = "DEPTCALM", + /// ShortMnemonic = "DCLM", + /// Description = "Depth Caliper (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCALM")] + public float? Deptcalm { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 43, + /// LongMnemonic = "DEPTCALV", + /// ShortMnemonic = "DCLV", + /// Description = "Depth Caliper (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTCALV")] + public float? Deptcalv { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 44, + /// LongMnemonic = "MCLP", + /// ShortMnemonic = "MCLP", + /// Description = "Caliper", + /// Description2 = "", + /// FPSUnits = "IN", + /// MetricUnits = "MM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MCLP")] + public float? Mclp { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 45, + /// LongMnemonic = "MFPP", + /// ShortMnemonic = "MFPP", + /// Description = "Pore Pressure Grad MWD", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFPP")] + public float? Mfpp { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 46, + /// LongMnemonic = "MFFP", + /// ShortMnemonic = "MFFP", + /// Description = "Frac Pressure Grad MWD", + /// Description2 = "", + /// FPSUnits = "PPG", + /// MetricUnits = "KGM3", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MFFP")] + public float? Mffp { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 47, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 48, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 49, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 50, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 51, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 52, + /// LongMnemonic = "SPARE6", + /// ShortMnemonic = "SPR6", + /// Description = "< SPARE 6>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE6")] + public float? Spare6 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 53, + /// LongMnemonic = "SPARE7", + /// ShortMnemonic = "SPR7", + /// Description = "< SPARE 7>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE7")] + public float? Spare7 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 54, + /// LongMnemonic = "SPARE8", + /// ShortMnemonic = "SPR8", + /// Description = "< SPARE 8>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE8")] + public float? Spare8 { get; set; } + + /// + /// RecordId = 8, + /// ItemId = 55, + /// LongMnemonic = "SPARE9", + /// ShortMnemonic = "SPR9", + /// Description = "< SPARE 9>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE9")] + public float? Spare9 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/Record9.cs b/AsbCloudDb/Model/WITS/Record9.cs new file mode 100644 index 00000000..988089e4 --- /dev/null +++ b/AsbCloudDb/Model/WITS/Record9.cs @@ -0,0 +1,345 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// Record name: MWD Mechanical + /// Description: MWD Mechanical data + /// Description2: + /// + [Table("t_telemetry_wits_9")] + public class Record9: RecordBase { + + /// + /// RecordId = 9, + /// ItemId = 8, + /// LongMnemonic = "DEPTMEAS", + /// ShortMnemonic = "DMEA", + /// Description = "Depth Hole (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTMEAS")] + public float? Deptmeas { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 9, + /// LongMnemonic = "DEPTVERT", + /// ShortMnemonic = "DVER", + /// Description = "Depth Hole (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTVERT")] + public float? Deptvert { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 10, + /// LongMnemonic = "DEPTBITM", + /// ShortMnemonic = "DBTM", + /// Description = "Depth Bit (meas)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITM")] + public float? Deptbitm { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 11, + /// LongMnemonic = "DEPTBITV", + /// ShortMnemonic = "DBTV", + /// Description = "Depth Bit (vert)", + /// Description2 = "", + /// FPSUnits = "F", + /// MetricUnits = "M", + /// Length = 4, + /// ValueType = "F" + /// + [Column("DEPTBITV")] + public float? Deptbitv { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 12, + /// LongMnemonic = "PASSNUM", + /// ShortMnemonic = "PASS", + /// Description = "Pass Number", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("PASSNUM")] + public short? Passnum { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 13, + /// LongMnemonic = "MBHPANN", + /// ShortMnemonic = "MBPA", + /// Description = "Bottom-hole annulus press", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MBHPANN")] + public float? Mbhpann { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 14, + /// LongMnemonic = "MBHPINT", + /// ShortMnemonic = "MBPI", + /// Description = "Bottom-hole internal press", + /// Description2 = "", + /// FPSUnits = "PSI", + /// MetricUnits = "KPA", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MBHPINT")] + public float? Mbhpint { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 15, + /// LongMnemonic = "MWOBA", + /// ShortMnemonic = "MWBA", + /// Description = "Downhole Wt-on-Bit (avg)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MWOBA")] + public float? Mwoba { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 16, + /// LongMnemonic = "MWOBX", + /// ShortMnemonic = "MWBX", + /// Description = "Downhole Wt-on-Bit (max)", + /// Description2 = "", + /// FPSUnits = "KLB", + /// MetricUnits = "KDN", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MWOBX")] + public float? Mwobx { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 17, + /// LongMnemonic = "MTORQA", + /// ShortMnemonic = "MTQA", + /// Description = "Downhole Torque (avg)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MTORQA")] + public float? Mtorqa { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 18, + /// LongMnemonic = "MTORQX", + /// ShortMnemonic = "MTQX", + /// Description = "Downhole Torque (max)", + /// Description2 = "", + /// FPSUnits = "KFLB", + /// MetricUnits = "KNM", + /// Length = 4, + /// ValueType = "F" + /// + [Column("MTORQX")] + public float? Mtorqx { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 19, + /// LongMnemonic = "MMMRPM", + /// ShortMnemonic = "MMRP", + /// Description = "Downhole Motor RPM", + /// Description2 = "", + /// FPSUnits = "RPM", + /// MetricUnits = "RPM", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MMMRPM")] + public short? Mmmrpm { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 20, + /// LongMnemonic = "MALTVOLT", + /// ShortMnemonic = "MALT", + /// Description = "MWD Tool Alternator Voltage", + /// Description2 = "", + /// FPSUnits = "V", + /// MetricUnits = "V", + /// Length = 2, + /// ValueType = "S" + /// + [Column("MALTVOLT")] + public short? Maltvolt { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 21, + /// LongMnemonic = "SPARE1", + /// ShortMnemonic = "SPR1", + /// Description = "< SPARE 1>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE1")] + public float? Spare1 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 22, + /// LongMnemonic = "SPARE2", + /// ShortMnemonic = "SPR2", + /// Description = "< SPARE 2>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE2")] + public float? Spare2 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 23, + /// LongMnemonic = "SPARE3", + /// ShortMnemonic = "SPR3", + /// Description = "< SPARE 3>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE3")] + public float? Spare3 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 24, + /// LongMnemonic = "SPARE4", + /// ShortMnemonic = "SPR4", + /// Description = "< SPARE 4>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE4")] + public float? Spare4 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 25, + /// LongMnemonic = "SPARE5", + /// ShortMnemonic = "SPR5", + /// Description = "< SPARE 5>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "---", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE5")] + public float? Spare5 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 26, + /// LongMnemonic = "SPARE6", + /// ShortMnemonic = "SPR6", + /// Description = "< SPARE 6>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE6")] + public float? Spare6 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 27, + /// LongMnemonic = "SPARE7", + /// ShortMnemonic = "SPR7", + /// Description = "< SPARE 7>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE7")] + public float? Spare7 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 28, + /// LongMnemonic = "SPARE8", + /// ShortMnemonic = "SPR8", + /// Description = "< SPARE 8>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE8")] + public float? Spare8 { get; set; } + + /// + /// RecordId = 9, + /// ItemId = 29, + /// LongMnemonic = "SPARE9", + /// ShortMnemonic = "SPR9", + /// Description = "< SPARE 9>", + /// Description2 = "", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "F" + /// + [Column("SPARE9")] + public float? Spare9 { get; set; } + + } +} diff --git a/AsbCloudDb/Model/WITS/RecordBase.cs b/AsbCloudDb/Model/WITS/RecordBase.cs new file mode 100644 index 00000000..1bf5effa --- /dev/null +++ b/AsbCloudDb/Model/WITS/RecordBase.cs @@ -0,0 +1,127 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace AsbCloudDb.Model.WITS +{ + /// + /// This is base class for all WITS-0 records + /// + public abstract class RecordBase: ITelemetryData + { + [Column("id_telemetry")] + public int IdTelemetry { get; set; } + + + [Column("date", TypeName = "timestamp with time zone")] + public DateTimeOffset DateTime { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 1, + /// LongMnemonic = "WELLID", + /// ShortMnemonic = "WID", + /// Description = "Well Identifier", + /// Description2 = "Number/name assigned to the well by the operator for identification purposes. This item is common to all records. This includes a four-character code identifying the SENDER.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 16, + /// ValueType = "A" + /// + [Column("WELLID")] + public string? Wellid { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 2, + /// LongMnemonic = "STKNUM", + /// ShortMnemonic = "SKNO", + /// Description = "Sidetrack/Hole Sect No.", + /// Description2 = "Measured depth of the hole at the time the record is generated.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("STKNUM")] + public short? Stknum { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 3, + /// LongMnemonic = "RECID", + /// ShortMnemonic = "RID", + /// Description = "Record Identifier", + /// Description2 = "Number of the sidetrack being drilled at the time the computer generated the record. Prior to having a sidetrack, this number is always 0. The sidetrack number indexes at the time drilling new formation commences (not while drilling the cement plug). This item is common to all records.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("RECID")] + public short? Recid { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 4, + /// LongMnemonic = "SEQID", + /// ShortMnemonic = "SQID", + /// Description = "Sequence Identifier", + /// Description2 = "Logical data record type identifier. This item is common to all records and, for current Pre-Defined Records, contains a value between 1 and 25, according to the record type. Types 26 through 49 inclusive are reserved for future expansion of the Pre-Defined records. Types 50 through 80 inclusive are open for Custom user definition. NOTE that the Logical Record Type for a record is this number plus 150, thus WITS Record 1 is Logical Record Type 151, WITS Record 2 is Logical Record Type 152, etc.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("SEQID")] + public int? Seqid { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 5, + /// LongMnemonic = "DATE", + /// ShortMnemonic = "DATE", + /// Description = "Date", + /// Description2 = "Indicates the number of times this record has been generated (it is not reset to zero for a sidetrack). The computer should automatically increase the number by one each time it creates a new record. This item is common to all records. The sequence identifier in each individual record type keeps track of the count for that particular record only. Thus there is a sequence identifier for each record type used.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("DATE")] + public int? Date { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 6, + /// LongMnemonic = "TIME", + /// ShortMnemonic = "TIME", + /// Description = "Time", + /// Description2 = "Indicates the date the computer generated this record. The date is reported as a 6 digit integer in a YYMMDD type format. e.g. 910404 would represent April 4, 1991. It is common to all records. Note that, like Time below, Universal Coordinated Time (Greenwich Mean Time) is used as the common reference. Note also that though this number should never decrease, there is no guarantee of this fact.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 4, + /// ValueType = "L" + /// + [Column("TIME")] + public int? Time { get; set; } + + /// + /// RecordId = 1, + /// ItemId = 7, + /// LongMnemonic = "ACTCOD", + /// ShortMnemonic = "ACTC", + /// Description = "Activity Code", + /// Description2 = "Indicates the time of day (24 hour clock), when the computer generated the record, eg. 225015 would represent 10:50:15 pm. This item is common to all records. Note that, like Date above, Universal Coordinated Time (Greenwich Mean Time) is used as the common reference.", + /// FPSUnits = "----", + /// MetricUnits = "----", + /// Length = 2, + /// ValueType = "S" + /// + [Column("ACTCOD")] + public short? Actcod { get; set; } + + [ForeignKey(nameof(IdTelemetry))] + public virtual Telemetry Telemetry { get; set; } + } +} diff --git a/AsbCloudInfrastructure/AsbCloudInfrastructure.csproj b/AsbCloudInfrastructure/AsbCloudInfrastructure.csproj index 377bd348..31f9e8f7 100644 --- a/AsbCloudInfrastructure/AsbCloudInfrastructure.csproj +++ b/AsbCloudInfrastructure/AsbCloudInfrastructure.csproj @@ -41,4 +41,10 @@ + + + CommonLibs\AsbWitsInfo.dll + + + diff --git a/AsbCloudInfrastructure/CommonLibs/AsbWitsInfo.deps.json b/AsbCloudInfrastructure/CommonLibs/AsbWitsInfo.deps.json new file mode 100644 index 00000000..c7274719 --- /dev/null +++ b/AsbCloudInfrastructure/CommonLibs/AsbWitsInfo.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "AsbWitsInfo/1.0.0": { + "runtime": { + "AsbWitsInfo.dll": {} + } + } + } + }, + "libraries": { + "AsbWitsInfo/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/AsbCloudInfrastructure/CommonLibs/AsbWitsInfo.dll b/AsbCloudInfrastructure/CommonLibs/AsbWitsInfo.dll new file mode 100644 index 0000000000000000000000000000000000000000..961a01718d7727bec823ba8d1f3591a2682c6b34 GIT binary patch literal 333312 zcmeFa4{&73ec$&6z+(U0AMWk(j{lCwcYl_LR9Ui}vXiJH=G#4g@avv_zc>4^z@jlk-MxMDy64Tj&;0t=-|qf(ckYuv>Wn*% zGlBoV`Ax_9r}$U=y(EwP;TqU3R-}0s(dg#ov-CO6=j+2dzJHPy6Gk?_kw68f&yAQ->aPt$6 zGugTNeHU@=;`}B2>o{lS`B>+BiwolW%fEM!j_cxY+OPlv*6#Q2Wy4$E zm~J#16fk%ed%b%gUxK_%o|Xky{E6>2=A3Yz z{jlTQ{Gj8+JUKS?u;ZNh$bZuLckDes@&VlJ{Nv+4`8IAj z@sW>quaE05#c%nMC&xa6-$4G0kDU03<2*Vu?tCvk4sU*BZ0cRO^%Ss9ooL*j>CEXJvdIi z7l-#W--o0BejLtBP66=?ANfBzUw>?T;0FQ}!WPGzjDUo{?vMG|89ek9EMRi1 za|#RSox%corziuxQ~cz;Q~czU;4JSeY+U^HjKs%hPENs)CxQ5!IEQVDbJ*Qv=L5%m z7~SNQ{KRn|RyR2%KXP1{-Q<+~%yAzUH8~|ebliubO-_kV#eH0H4oeZ|FqO$E7}MlO zerjy|v&eu_0_#NfiNBisc3c;w0M;o|rceT48KNxwGQKZN`;jILaPs{4XJ991eDO7L zJ}=J2*FS&GdCz;MP};faQzrUaT8k=1_`1!`` zq6muT?w*Rr?w*P#?Vbt%=O6dQ^Pd0ESzkUYeqjLY{KE1C7jVzc1$lxCz}mSWPjCSr z)wv)~;O>M^lH73f4mY3$x0mo)&8tW}|BgtR`l!hFD@_;-_=w`y`)(*Vz0*s3rzmNY zqIBT5?0lX)!38{E=Yl-xeSzubx8eTp;5pCWU7as=X8a@5&5z+e?}%TrfBEHcXmm zxckiy{>7#%obNsT4IJOW`J|JQ*MIipH*o$>=tx5re>6fAtQYQM?kr&RORzeBT9}PvFW~XJh>G$wkyn zC!EjW)%Q8#)d_GGY3@n!>Lkv@t3O4~N&GS&c4GLDe}Pw3yqc0}kI9^mcVGQ0q@8iz z@66)9XPv*o_gciOIcNN-v(6d3chPymxk6q&>3kb`v8S9LJ^gL?5)Y5v9E&+q^7!Ymui?u7D38B6CeD9Rp3jVn^T*|J zW9%04{{r$)PX2r6=GewNUw3Zd_$TuCZ{_iiaqQjsC3zouw{MR5Nd42X*4Sm|cbz|k zdB4~BpI{}w>)aW893hgO%opN@%uf96|ug6eH%fGLj z_;#c{;JnjGJLSjz-PnW94|ZRD4+uZ#e4+d5hmiJ=^PhKL{W#Jda(<@!Y9{vF*u&00 z?7m9C8XtCkvHR*_q`k}e)$XegA?;nxSGuphI{Dn#S?9O9uYP~>EbQv{y089;^W4}Y z&L4JP{RUDVasIUX>fGt)#?Cqaru*vY(`Vsf{$uym|9$GYu}7V6c3+)9+M~`XR4<@( z>PzGQVeH+`+3u@f82?MWdSCa|>>8eP8R;g>l#U+3u^)o{En@<@|j2)t{fdI{vit%iULhdGZtE&p2Q1ypo^r ztn*d*>I?7vy^~Ah&pN-Wr2T<>^?Bzh=g*vHoj)Qu&pZDo$$8%S_uZUloR@)U62cfZ zFYo!Bb56eMl(FZW_sdtGhakQ-{+x66Y|Qz=Q)kbPIVVvo#Nazb4fUg_M8tJ*{E5>d z)fH8X{1aEi^)tBAJO7s_#Cf#i^QhoDpR3+K=x*X0#+=-E_v>^&xA)%8yPlB#UR;Yg z;#?e0JHK->2D=xY=6yJxah}KVEIhC{UX{m1dCbV;EAsf7JeF~sbnf8znDgJ@_yMOX zuY67(zwT7W)37R$2i|hBjNeL}|6AuLPyZl}ADjFU_#biQ3(oJK`rFPUvHxrQr=0i2 ze&^)hN3H+Uv0rkYkNxh6Uv=iCr<|8wb6)=DAH%!;BkuVNr~g0Hdcv=#q+g%Kd(S#q z=hsed#!Ak2pWcprr*nP09oup?CVwDyHFo>-kHi*ZV-u6kmXkX51-wi6trYCG9cv-y zcI=hd>gj(J`?~Yh@vp?nv44L0Yq9T3lzqKM*^Ix-kupa#|igh~p`=zr``@yo_VsS;w*D zl*XPFHQvOu^MLc&@o9LLzmDSvoS((<8RzG5e8Kq>9Os<>fFo)@e;(KW(}}+=-}Oa#{Yy|+ z&rN&@S1wL`Szh@KdF40cm9NVye=M*3vApuX%g=RUPvdiAG4XxIW4D}-PmIUj@BFtD z6X5aG#8dM6qC6&L&Lpm1oG8mH6)JeK8^vOIrB9zTaWT%7o#JpX(0{LAwEYx4MYdAG0Q zU7Himg#6qIk$+-B+}V{^p2B%$;#qm+C3z(!&)<;eTk`zxPl#{z&GX>mL)kH0j& zgY(BG#k)H1{afQAmFEAOry98O(5bh^Meo(PGX_`uX9>SNM#JMPGF_fOuIDa?F zlBjDR!1?3&mNDl&IF7-uybI^=!*LAO`UuWHfa4f^)}uK8AdX|slXzdu`4Eoq_IO_m z9_T$de;V(Lp+vq9=TmrJ41V(iIR6OV7eg8SAkHt~eKF@Ej$_U=-WPK&;W&n}`wY(K zaU63Nobx!pjN?;A8#==ifL}v3%@}SS|KFv7d?kgV-O(PL91WHt~+=3mS92 z5PKfaFa9p0mgqZmyq+8TahXD|eQfL-@+G}CH}>&%_Fc|D zi@omruQA_wW(;rn*vGHF{`$=8GtS4RD=okA@$21J;&NQMEM6_O>yorfjO8T{$S7}xKI!VLL#H(zz*%JS@yq($3+vCngxz_ed?OnV(?qupW{30@Yi`Sd2 zM!C`w*9u;FYrS5(ld8(wmK%4(Roo-)Ym*)=HIIWq_#2duRRncCPO2`1NW<-dnjK zKD~I;Z?u#w>Xq(??NMn?FMD;bf%}QK7rct!*vf3loA+Oc6!C!F>)q4Etu1G9ch{?L zE%}X|a;xQSIUl1>|M6R|zn&;pZlSHeRP|~|rC)b2Rr#ia$-S>Ln9}(|gV)!}JKo^c z&M$mt*O1ixh~BS0_+I%*!O2;#zTLVx_%=diFtPKY&A|lmVTQ{~`Qo*DwPi@jdFWWF zm=mj8ozLmmwAZ*@t#~-U?ceg8#pYg_aWbiDbJuT*@*_<`K$PYnPrCL~XxCd+To;zn z=P7gTy%Jx)1kBFnO|Q|(s_~U?SCGmpNqk~0S#Ekx=c{%VeR-u3qOws`2hYisRV zO}(<%YP29n6Qj)F>oSSeqLkptgda~6Pe0>cje0>vTLa?0Ps?~&@DQ-=-R~;V^^yzTjc$$7sVw$kgRjW13SBAVS25G zd_hR`zHzo%|CCcgO(wcs7wcQenpbY%r;rs)20wCR*RP3k(#f$>u5Y3AI08ZEieQ8< zaocMkue`3l>TyD1ulhx;DSm{mV-c@p9gd@@%6s1|RV{DV{bs9LX-Z68Unmjv&MWO^ z%irm}QXSBAuc+f22#?n67GyjpDp|Zlx$HQorqeTPVRlU?SFJSsrhlV_TWooYD0+9A z)lPn49nHR-G@Z^D=v;-lA#Lv`Prudj>Y`jXdyll2*6a}M*?VJMnnUL^`uv(szZiAg zNGHAL2o?l{hii%!$I z?rfsOws4j~|Mm^XhlcH4N#d2bR&};<^}CTrymsDGaoRX<;nfb_)p9)iiy?#YDw+V| zUgEX$t~T=C!v8*0B;Mt`^x(rk{R7`wPygaie)9Xi{eRA)ZREycr_jL^JAso&9uY4e zmZw+6@q-UP_}IDkjy?8BdF<4wb5EQUFHW7CdidnnW9QPbb5F?Q)Vt2cV&V)UUmhpU zAZhZkb8V61Y)t0urS0XI>g1T3I2k*aL3hu&JNU$NZ$Es-#ckgCT5k#W4~?C|XPT~Q@hu~)zdq6(@KaigQGLOdaB)G|I zI73evzA7O6WBDDQbSBTpY>y8h7GHi0RPgRe@e95(h95%yhL7N*I$yDi!oi0;;!So^ z$0zY6CLeVKo>QkLXJRq@rsHR%fjo>KANQF$b?U$R#OvSt$nTx`=&9fO%%k7@?Tdf- zitN3c5RI7$(JYw|ZKv_c51tsCJTX3b&c**1#wJgVPd@VO#N-FhJs}QLxOn9u`AhY_ z8m@foROianDPe~vqy?S;yK}BMTzFUa%lGU~7|qOSj)&WkBLa13wk6%%Af zA(@yG-y4Su<5SKl{Qods;A5x6UF31`SpI?Si0Hp-)zQ^ zPk?otg_!f+>9uqzDcW4SyBE50;M;Fso}R%C9)5RUWC>|lE8mf#6uqzy&}z?l5M2$> zJf6^y&N++^%uUCqXXa;Sr)RFrh;i4La{}kn7;rryKN?5;yg1?yiQ>zQ;l+D9r>A=2 zd9u1CrGxW83@vQ@i8plfi}Mf1obSISx`0b#4=vVe{+l_p;Hqd#;=<`n9Xc5G$Ck*J z#aMkTljZ1Y1 z7Ps7NR=4ZkmfP~()=kfSQ{3hH9eM8WLf1hlxDdx~wR>kY0Z`StyKM-Trq`TyWl))@ zlU)RtRs0>ajK$5$xKBeiW&3&Rm0BBuz%Ap3?Z(B*O=zYH)C}IW<@G+`4r(*`>BaO~ zDqWZ+&q1nL@fa8JM^bw=v>~bAAQEYdtGjJ3rOiUH(J=p7FgOY~c4SuCA@q z4R{Wah79lI#HJ<_@Z;(H14yCP)cAC2d*?ZIV zZ%B|g#k_}f*1b1HQSP*JWl{C& z(ChA$hy#7|CK||{C+L;Hifq!lyS4WA^Fx($@^c?S1Da(`veAK}GLV zZGmz)8_N3I=t!x#Tj*Box=6Q$PMV$vg!3MTwu>g>1?ieAon`~<$h(NPMOC=-j!`!+ z;AgJ4%GJ8?y0ZBXQ*FKJd3ASI+`x@5TyV=3(c>t8^-d+wbq?Z7;hW&tbmNy{i4DKK zebb%4ifCcD@@Dlm{7M7y!=gjsHa=9;6F1r|xFFYi3*8f;)xfJUD0kg6p*^_ujK+Nm1*2*7=B@b%7}usl`&7 zewJ2;X~|l-K*za9-b_+ub(N`idKAS^;`Kb3sI*W?b$_O=CEhGIVYje^er4rORa*kP za9zUw;O~6*(_X{x{@i^JDm|Acyj{lyH*fmw8eDW69U71_D2TN?!sgI1)$CM_U1tjs zPzV*!D@YX|9l!D^rPZV32~W|kl^eY``WP4y9|(H}SCmCjZ5TgXlvnwD^dnKi z4nPXrQ-i(C7;Gt%;|x|yCMGGQKna#Nw86rEcMPU)TYJ_ieaxPHpkfu7@k2DcU5pM1 zjUaxM%kEZnTNpAr0Jl5VPFsIv>MYt%^X{9{fN>*X_b`RU zUC0i1{(?Ju_3G@jn~~)rK!~sT@;jGX7u;I)mgkBGM#(}m>4J+6SoAJ7VS!0s)(7~? zTb&$J%MFyiH>)TL(3o|3@p*gJ{fMkQwoJM?%HkLcemSUCV-FEDFFD;8)!8gahLicW1)-5Qj!>%t~EsRI&BDQ zHoAx*&)ewS$FH3k`X zQL<>}l9Elq1f0y&4yw542?~-^*2lu2;EH6WEY#qeqR^tOb<7O~uPZcBVRqU(=pPUc z3NApj`QZW@Rai)- z5;*NHR^%8C&f#FTMBR%T4Q}I2(Un8(U;AMxHQF_>L;xuL0yJUYlIkk|lWveN5%81J zEaZn0wG{bD#c&Y!lbU-3uEQE=3sL@bvad$?^nNYYE65%9F05y;a{<2uI*o+?Xte8f zVKtRPk&IxEgDg>mFNK&2p@?WR2B|@87EV=d0R<1-;sq7JpjIn`avv${!3);JYg7a_yz6b@CFJ=fr z1=Kxl=Ephpom^SXlW(D`0xeksh1hG+ik?c|M0EJ`eOlyxbkCAT0%`7`uhBy$KOd zAiAd|ZH^P&xupz`NJ$Ptl&SASMIHe{oZQZ(cq3Ai4TMr+atwxxMG=c`N2|+$E<2xJ zCMEX(4T%%mxs+llx+&K(h6T2R;C^b2R)xNCiNTA}BcP`1Bm6~iog{gRA{%a@DV1IU%%dOC$ zdumr&(gE5PC&6<`-mcW-Fj)ICEDgy0VZ{k?Op%~YLN9|_vc`&b4J2jI`RQ9jMIiXfu(&1Hv7nmpQ6 zxQ-8P>YYwSOV+4_%*;F5RJbmVLz)eC&jH<2ugvvqqz-c`MlhzJVKmy#x;O1pleb}e zHty{-2!2A*Q3b@#=FwvLbw*gSCyI$i)F+ ztxbB+L21bvDC_1#5E6YYJ#D)h=>#4U@#)Vv_>@K;(**9$;fpA zq_4W;oa#>IQ*`E&UdFU!t&AnH3j8H3>WevASj%tHgHu0CE?(D-QujuPO(J| zgi@Iz)lCecUZIPmjP7sGWSrC2saLszrlx9mu>3fdL6s&XCPJp)+Qn*&^;RT85eI3h ztGcTY8l&6h6gEcrX#kP#wvSnakr5B4t$~LI5E=2%44Nrf7GY$Un>h5$U4L>L+Ikc$Jt8hB^`kr5Bg5P-+x2%|YpQ3KCqQt24+ z&r_;FuIZ8=odJ)G8@V0 zMiV8jPSe5{bw#8lYcAWG=tdJ2t}4^I!*nWIvPLCx4_U;XjmVL(CMsM9(8xtMngDS< zKdGd$ES_#QVp?KyUCE-EPG?#oCQ#QqTddnLGtq>J>j45Lx*&Q0CYmJ_Q`pk!!8QHi zb-0=^v5}4=7c6Te#EI(Es71>f32~Y_T}mjTR9pK#Evm9aiDuEtTDn%=75l=7TFp)P zt(L!Yu~@6_Hc62pZwU$fD5mKc0-YMHrYOTe^xO5j?uVIIZlpyn4#?_ssi@SZCR)WT z9n~j~E+QKgTA8}tq&RgAQgp3u-G@uNDwb##j+8X0iyiB-)vh>|oi63+IwnS1`E@!( z#nBRLVKgtU-?(8bDo%PAir45O#yTo3S;JK5Zd=j`487>KccGx7F2tU@L>&+HRZ9o3 z+8S|7{pRf~r^XA#6c0*C4gs}=EqLrk#p!Zw&3@gcv}6s{UUYwCOFG<@>W!Af>G5J| zlZH0vc#5UMvXVgqgav!Wpnhk%h&$ErTehs}Zz9D;J(ga{ab-@dz@AgwmxijlO#MYS zSH=>@*Y@L`R+V-n^-c$}R=p7wC(TQ*u-hL9REc#8GYC}z+jQRY#d?R)%ij@T#ffx` zoQzP!h|!eD#Q{|gJTxF=z(0v4duRsDk}QiDAtd@jfQ^6zo;jifjd*B=06dmNj2Q87 z+8cOiK!_0!%@Bacl86x_9!_rq4-E)0;-MJ=@K_QtLYlPw!o}5MBRFbnLc~^HqdRJA zLPZMTKt(o!qqZhQ%4wTHN|J89}^0e*)!lx+mW>F89V zM91@W*DN9*t&Ru(Tq3&J#zE%jfBX>LH#_U z8#)pueFZ(sN$5OvHhOVW61BpXua%pvYQ^2CHY;K`^*hAhkgOqr5J?(DKzr|%1SJfD z4iERkAck24+{lI#(y!4kr?XKK$pee0WfNS6h+n=5V+FG+GX)rSsVo9W)tR27QH*6)vscewiB+q3awaF}grK8GirrehA*T@|S+@o(( zoYKx`^E7yGkd%^49@}J7=f#>~QENQ9XABie^!mZ+0e0jyvBC)@HC00-mQ-1}v(+fK zYtWK;|4lDqfur_J@hD&I0Qqnl8w9v|PD>6abZHT>Akj+Orn2R>0_p&^mpADqcKw-` zGgRK{rAV7-{hb@*ro&5SGy8#dzML^bfxs9+-=njrv>C1JxxJe;%!9vT&F z#6vR#;ISlZ*ocRd)WAcdf{l1+h5$U#!-k17r*2tWL*w3fX5xhR1{W_pbjFo`PY(>j zj$qWV2@xk0M|dYo6Dm$Ej$qWV2@!Eo0|jn0qlQhC$h84VT3E2|v$bT+V_Oq7ObGOy zH766buwb2vmaI{+CTiG3g;R$k7d31G#OXssG}4|;-E6uMjWmm9IwYcT$167@cDx42 zAUc|Ga2kjch@%$qX|f+aW_Z-LLNyZNx>`pr?%YU-Q_-chYt+N&PN-DK!TQrh+G`d&58Uv zXGDqYs+vIql)(7&ErfU=Rv23_k_wyT3mNvIg`5_$!>Q(HIr*$D$fVnjmP{U5jQ3c) zUK25xelz1+>ot9*-ziq`Dt==tvxT48h>FwJOB?IlC?b-xN(RlUma4VdrR8$9?rvb; zQ!HDE!Jz5r8=vNAFE}lIi3D9N@Ze6i@y8S!uu z8+fR78}ZN#T1o4Tky$bbWW>YiYv7?{JVrb;LjWF227!!tSam&0gFr+C?N#{S8U%Wp zRP-i9Z1Ec1rDIH}xS}?KgFq%kTq|}o2Z2nKh$A0p%xa@NdX=UnYZaO`gFq%KO-UonZpUR0cj9@%|jj7CK+4hZXXi5)wW`@|?Y zG^0{B)LC!0F8VjD*;I#c>C5eqAtGh-0KEj>)mWNETb~#?ak3jAl)-UrR9{QhEJ_=5 z6r3UtTp#YdS0g7*e&5S2VyxOB#zcx8CITtmqLgIbqB^83wkdY88Evy1-A8H38mYZl zk?4DQ1g=!DdH_om7!8RN<9L2fYih~Cc%sh4Kip6nBOXqQgBiCnmj03J?) zkM90LMoZ!(_z3SWWMoAy4v26B%#e1N?y_Y#4N2EZoiUomoIRuke5ipmghyX|$GOh# zr48BxV1h)`!yu*K+MTu(5~sXJI5Nv6y`rVl(35 zI>ARPip_|J6WyZ~#b(6AiSE&gVl(35L^trzl?wElUxtX%44R+r#X#DzlmSsdeObhL zo)KKiz=VkPKBF7OWB&J ztk1k9mTsJ~VMzlMC$2#cPTWGoT~0JhIH%iQqZMt^Ed4#`th9SSC)C7=jcUs;7L~9S zZG2WFv(wV^W$ck+(X@0UAWl_}+?InzLaeARDfw7EK}XG?`5^%(Q?Jyjb+IgJv?=MSG+oD+Iv_RW z-b{-%5@Kca;wP_>{&$1@s2L1|7C&9xX}4~=Q|&sYGB>u6tttxDs}biM%7x5wIvyBnKpSaXE~Wn!&(n zxlz82T^p>�l@>8Yh$B#g%jeq&2_Mx_Pna3pZuS0wct1`i&EQfrB*N;>J+qlyn26 zH1=z}xal=pHX~xA*NUlZh#{#N43JX(wwv{^=Dvp(Nz~m^Qp+nrtr8?r&v|gFfDK+N zZe~|`Rj|3Jvblv|$b-*7j}wOiy~Bxgt%#F3!HYVVO+QpDtt;;i@{sU<~>cv$5< zQcH>$@vvfhq?Qyh;$ao`C=JFEZMdg}zO|$XoiA!a#MWJ-I~Z$1#nodYI2da}#MWga zIT&lA#8qk9Xsg~t(~^l$7ISN@8H_bi;c7B%v{k2~C2Lfy8H_biA(j3>&(O#X#+m?; zYXg8rZfJtYeAff9<>2{qXlu=IaQdYJ)I^CDioD0Mhhx<&1%z~ zb(>zj={M|%nlZBCL^N2@q7=Z2W*Lf=wXU0!(m8f9XEjx$)U%~-2$s423+b9(U&&Fk zrX$r_(!J@xH`)>>szHDos@9SN2u)r08{SP(|BKP;XhZrMj{8H36WXaloc@&NQm16m zXmw;#$ExD?dnjURgPOY#r|u_!70ogfD{DOzC%<#-dg^MbMyY2@wtFacEEWWK52Yjr z5IQa%iXDtiEh_@aRO*&hnWfR{c&O#+LitW#Ls=1cOngzl$s6bNI8agV6M%|l83vWD z{)ru(%`J1=VW_DZq~-F?PTB2P(|&x^Vm?FE7nKHT%E4)-C5wiOx~QIrve!j%${eVu{|P`vvkZgES{KDh^V~AGC5@V@LE3Xs zao2JeMJmAoK@JAIi&Bz<866WB#p&@>K2$}iIW$@w50yvnll|RL>=GjYMZJ&7L8&>0 z0A;Itn&W!MbNO{vLaE6bB^Z*}=&%#F4U^iBlZv=vGL19s?=Ct7e@k@~WHj+Nzk zrS3PHl#)Y(wO96f+Q8l};5oLtJRd3!)Eq;AvbOB8+C0C`Y6CS{qokI-{RxC4QT8}# zo?9v@^X;@brXqQbuEeRaO8IZrWf$;LtzF%6OWuxH2e@93)*FoJI8?9Db_|lJLpr!N z-yEmTfg?}aq`IdP$r)}sr4iR|b=R|)7c0@13cPg{?#8-09iP$7>nIF1%#qr0P_Hi) zc=IaUm3eh}MYpdb0gP4cOR2EY88wIQzPw#b`C9TDJ8lYN$3k#f+pRD^!-PDimQrD= zUCl8BC|i}oJgeH5QmligsTw0;Msgx}&z8uINY;?Cl9~Y*?8~ zE-G2b!^==rS?H4G8tOfZgEi(^rJl@&l{Y}5S$Ig+mNizTC$nsIrzUHFy7m*Pj0Hw# zWT@0V!1Bc_@;pmrNlDhIpzY$h`G(hQwsC^V-&<~OGr(tsIHJ|%z=fvsdAexD0dnHC z_!7@aN!BB|F<2@o;Jyc<7S9 zMm#h_03JKm1UAy)lr-pE4l7$ULjax2_Il<8PD2CFi(zOjVQ_-U~1>OjV z)6Tg>o(+*ntmN4knS|eJ`8yY75EcTj+O>Am-4z2sr1486LD-;=@?~fMR=!AQS+j(~s@7Xxqh7ArO^Z|0xy=M?TAS-iIlfuJ9hPhuZL}*+VT07Gq`VB+6-d$aAxK%WF}slzr@C{cS6G`WtrwIGL8wZ8<5O*{ z92DK6)@T$8^;D}%2e5;^5frDs0g9T;fJq5ZG(#Au=mvEJKoNQaDm<6tgC0dX{i%aM z<@^?A-vs6jsrc0QQFBsLl!{MTExfl=NqmSY5`;%zi1X9o7qhfl8?YuMZ>%d>G)#yB zk$V8Ri#1v83050^tySKRwzmsay_6Qcet@hvO^%*_8qc7!I%WY6MpNPxIq-~7z=IJF zr^kVZ#xoeLhi1^qSub41l7I&z9!`M+4~=Iq;-MJ=@K_S?V8p{oZs4Ku3`RUOLjWE- z0v?QXIGGJPG@ijohh_+%V@be+5f7)WfrrL381c{y0eCD4crfDO6gBW%VH#<&UZ)uX z@K_S?V8lZ%4(Mp$q45kx>!BF}@K_S?Kv!<pib$cod6BN+2w zWWnwk^UfJ8fd10c~XEF>Fdxtbwysu~kE>2ygQ(o%lCkXCYNjMB~4 zv|OWL8auD{rgzG@oztW_Ox_eS)N#lYJI%m2X}z?h;1~dgMMaWI4)W|`9XVSBqq3{5n^D3+~Em>{MGVZ_6!al6iNkTCcXERf4OB8kb~tS)3?O zE*H75h~)a(+VY~3MKi0UU$1+WR@FzzD>wHM7jd3gHkAwXx-u|Jb;Mn*^Jk{S33E`Q zCZiX;E+v{Jgi_?72ukCAP~yZnC~@woONnL)p;W`p?a_+eea6IwM3hjVh^_0!R4Qch zY7UK37F66)qq-{!9Jvw679ynXHyuuy7gK4vmWfWMxU!f{t69i%3lUYkSw_31yDC;B zJlb+aw3um02k4L3{Q#0_y3~@+NKMu7B-^c4wZ7eS19OEKPcFSeTLqMkmUNJGI2oQ~ z+jdCJtS!?Ls1qvRmVjs}Az4E3(05Tb^tu9uev^JRHcTv*u^MAn{!hKinT?uCo>-Ks zBz8)gc2kXNtp+%5`mJ5R?$uk7%GY5ptzrhn32h8Xj!-0)nGYwi!Doa*vCMopRSiCK zq-f|4`j{;~W9Gx@Y4D-3Rz^NFgXWBSv1*nCW10DIN*a7wV%zQWj4L&sB%E*Ui z2;gH&L>4JZd!t9pn#7|Rk!51U7O@eI$TG3wirXkgWSJOoBSpp0jL0%!;u@}6$d&H7 zwPek2+Y^yx!osyzwU8?viOtK?&}PaO5bJF(7?A;@(6@023#yOB)J>fvOCglBHqIDS5M8-?rYWIBgAFVP=&a z+OB%IEH^JsXO}h#w2%#&S0PzCZfKqKb|(s_K&l~ zJMHxYaB91>F~bcL37@58FtM7M?fUjejE;b_Vs-b%3^z_B0nrRbKyk|faS9w3#0?Zl zKs199(46IfH~|ho^Q2@9`XdxEn!yNY-f}>k{stgA5@ZBKGZ+Ca*bRsex7wJYV?jnh zG=mY)Wy=APs?8w0XXxa7BOsc=2dq0nrRbKvygW#Ea}1IvivKL^Bux zU9}t#uc~KfLTWK3g9*^=jOBoMB|RIaq?HUtK$a`%IIpBsIM3`RhfE9p3^q)QvD4-$P#^x;#cNe9uIP>+?t@SLiBK1LX<3TqRcu zG>c|Dowcx%Hyi$rYt@QaCQ@AI2S{x&MNF(322wQ35TvYF7RyA64d(-@0*7j`lvZ=- zq{=PNr6xsgMzS8Y=olj>PG<{)A&;gPJ`r@S<{%F*rko4MeOx#ZcmrBHmoBX^oJ8{C z8m<2{PC2iIFg`@_C1;}rhUS%RYUrW`YKjsW8a>R4u;}aSSx#W{e8TXgdvxOV(&40a zp528gUs%UBe2n$v8~$#`dgkoq!)fYF;#!F*ULu(Vlxg}G6YZ8{lu6Fp3yD+MYdj>8 z%tBi88+}M?Hbdg{b|%j*O(c?eO2U-#ST&_QiVQil5NvpA=)!G|kZGTeb?(2U2n;d~<>PF#Zz9j(`k z)^S@6%*cn+)!;)%>y3P9h5-AqWjNo+hZEG`Lr3e4d}xLMK9&sUlS-=ZemLzjio^LP zM#QWJq|Yc1=bKoOYXhuCaX6pw=$AQG5sl_>z6ld2jI{B3-EnKln%lN#INyYY(?i;F zJ31CES;Jz_aJ~r(Cxb?BINwBw6GEv%iH_Clh9d^43uz^bW;~tY{DRkNH|p4{!iv4E zOpv&KML?p%^Z}4)79NrngZL&$>>z#)gQ`roq8xN3=^7$B1z2O$MfD`_+s#PXuXDQ!Ta zWl6Uq0g0xwkgP6joY)2=TAECdXgUwc=HkYQ?M$M?6*n1N6kOc&&?38w96yYoDA6LN zTay4q(=}@v1Z8uvV~6r#QM6c@K+*JYP!<JeP_$_2 z79~K@bj_j$L0Mh&I0X(+v}lW3SprXagh>B(y0+r1LkkjUCd;#o)*ajECfdE^}3m~V^fr^$d z-Kr!innANF11g&fAiK5?P|@;bL`5?Ufy&|n$gc2{<_lmac$+DJdg!*@1(03r2dHTI z(ydCOq8W6n8boDv0pyfAP|@;bL`5?Ufy(9r$Z7S=%B!pd6%p^j zdSa@H3q=>pqQdJ2+HcB$7*!G=m}6v(KCRuxaiH#FguT8k`k@ebRVT9Yc5Ki z#AJ85o9Dt-fPt1P10|XqLdoVrH_yebfD$cK21+zJjFQbIj+5ltyf>YamaI{-YFZqj zuonZ)NpMU{8Kr4)Mn0VK1|K@>O*ft6HZ9J`hZEf3GfLCqjC?qq4L)?%o6&w~2F>~O zrd8T9EzZb?lh@!wXT2Hu&${!8?l6 z;!KRlwE;#Wx=B4j(sxaqFw*9|>5f}V*4(x|)8b56I6b7zd(*LK$r=`Wrp1}Ca58B0 zrp1{EaYAS$r^T5daea&HK!(PJ}B4Ta#LQt zS#8~MGj(^WR^HxE+|WqM&GR7$ca5vwILoYvc|ee}d0 z2~M2C&Xst3Qj-mwO5V<{*C=DcuD4H{N~M>R#B%5gTu7p}bC5>GN$gySH!3wb1lIlx z>uA6t#d1Jv=aRf-smTUdNx#0;uC%JR_wTN9xs~+*)6$X-(zH0qolEkjr6z~b+MjJ{ zNN7RSk`9s81s zdTYTTIu31|&x*Ac7c7Un#PC*n`g~1wq$}nR< zMoyfz&d!!zBafzY63HB;Y_)aMojn?WW-mu3#3}3SY@V|uB&Q2BgJwrvLbSh`{(7cG8axoXJ?a2Kc*INB$5}4^!t#<77!ra(GE(S z(9X^lKS`c#kWw-8$u!A89-dIzZj`Haw^{wP)z-wx?d+^#EQ6d1>(|!8&8gwH>(<*7 zC%Iuyy!$S$7s6dr({Hq@^=-4=SyAZNAcyR1j_RO6W6CX-l4+*x)>Q;M@bzm)_?HtZoA=bN}l z4sYVd-DA_ljkB6N&Np$99NxqQEX$j?aaM1~`6h0Bh$b#vk@Zd7I4ic}d=oc5L=!je z9)l(>yX0>+&Np%6Lo{*Y?y+d%vg`e3<9ri0K1>rg?jDCGF1y$-?1>fHNDgh{#$EfH zxN~fucbsqH#)oR+#@*x6#GT`HH{ZmKhc|KK?(t~i&XJbgV83^qZ{i|3Y-Awr+T6sQ zV>`Uj_~4qjqHPk^#04Jfo49kV_MYRLxJXtglIB^zzk6>|F|dA^t-IkcF~@2{8zmoi!a z53-oC3;1T|`C>LdL@}GUvzW0<_Gah#Vus}KVm5z_iW#f27x-d^7!@;4Sud?C;aU3Nk(R7U#w8z7TQ!@99p^bgU0hk; zBvq}>Cb^!=YgsftNq=Woj5&HP+Iw%3TakPrBO_YunkK3bt-9w_bt09f3-arj64$b; zY7X-BqT!Kf*KYL|9*e|i`I0hBP8n%QiX^(XqmT2Pz+O&XqmdyxBCK(M3^a#^DA{g_ zppmAF6*3|rq62A^550bXa2D8IF_Md13~5qL*2$D>mFkYyYTR*?;uK|#J`>3uQqbtT z?gt?*P9&LHX9=mv}k_x#rnldo6H+8WYn;X<-b4q91^@z-egk8Ks3WjC@!fJz5K6 z82NAldc+pSF!JHl^Jp!MK|D?0{cz%N6c@%YG2+zWC@+j*V#R62QCt|q#E6xRuViSn z^MGtjtLeIC^gh-0>J_Yry@kmQnD*!$>U2J(DcPGII@IE_CQQVe4+J%6D_`iCv}BEv zJqu%)u#js5ShSTdbSzr3hQ*$RF$jWwMaId*(OVe9M2HoNn`>Nnp6HBTyT-)9h+b%S zt-W*oa2-zc_PhxYrxa7g5`BEVWXV-AGD;S$bV)*)dh2%0E&01>*Y9F!gDFgmX+~Rk zmwp@C_d)xfmA(&}(C_<*?40@4F^VO+K1cv8nq??hRxBlAGOSrnWv7Y>`dgY|DOrMH zCHz*aV_Ftl7ALm>i<(UUEShB~SoT^Lr?)q=Y@kDN1?gO*gLGMP*6fj3p=P+XGmPbr zQ{025hi_g&TbU4nPq2W0Te$aYY&uVv$Bk&IGMhgWoKo96hAF%kCb&Yvy7}b z#lD$kXJ&y_$kePoShmg1GO=RU)_`4wxO9Gc)*dRmW@s5fabkTl%g)e(Q7P#r@hJtB zjWe{2usE^4nPq2a0Tw$&YtN|co26xB#cTCEZMEnP8?eGOEt(_Hw0cvu+>5uX&Fb}< z7b&dk@S_8b$avwN=Nir(WHiSR$V7ikBwjS+gm%Z!>j&5!!>+%vnN?bOCfi~sx$PB1 zyXLtWEs9*kbLon`NJAwJpo*o%3=K&QG^u7wEbg}D^;da~WL5XF6kd+p*T=5Qv6)>` zhJCbkI#CLjve&p7rhC?Pqt^Bt$AuX$SU9)4e$c8%?v1u7CswPOSY72WRds}X^T&vcjF4%R*`*9JM-tTZ=7wyQE zR;Vt}?J1W=`ZYQXZ$c$DH81Y$B1SXkwQiQ{(R9{PK*eczfr3-oE}seHrVwb`aP;hsq-1Eso6WfIp)cY`W(G0|?>%!=!5U*lP=-6g9v+gTA` zKOo;T`8Cd0W%B8@yR)l2f~agZEG{Nyjfb^%m$23@+762o>}eiWdgNenYCW^^Dq9R! z(y!iKFM!dnd6FCezB0I8MH#y+e~-vl?h z6>~UDg!rjc$z|H3VM3HFDp`z(lI14W*%6Dy*=$SvJgVd}jgJc;MYDvHve%|KeVxqb zImd)e^wbO*r=+*z=G!~FZoYx-;jkI1J5|2D9c>ols`5=};9S0#A)fIbh0Ym^A1AL@ zRWom|TBYscl(3>qC#(3WbLSY1F!j+?2wQxz;k7_Fe?<}L-1 zN+^K~2g!<)*A&l<7j|3}Dgo9O{ z_(|PC3A0i%1hEpBXe>9$7t*6m-$fl1y{;5G#i90AQ5k9nLSi)i7RoFqz>}%4LZ@aR zPc0V!l@6+1-IB``N)Hve)U7V(=%@lEmCw^fFcntR%irCi1}0YQ94Rc78dB=i3_Pp- z6}uw=i|gi2CsSO_Cz6ZwN7Y~<-7UAU?ry);Ldr178&dR+1SVFAm%_@Qnt?pJTK-BN z^tez6k;`8yt;AT<@`of^&JMBwa#}oD3M+tW1|HV_3gFS8#VPY-u|x})q2j|_mgTg$ zT=k5r*eY*(R;}w}bnBc(Po*|!2b0c8^g*dP3})5osB8IdY6FY=_%$=s5N8!6&kw8U zvEm#Hg^-8RAqf@5FD24x$_S-Uy0hzDN|albo8*RsX$Yl=@c~NB-P2UVEhu8NC~|R7 zo+p(qO9QOrwVaZLJbtg_CEGjgTDeud?YRZ7)o#?Ak#GfSszicL1vyBU&Z_gw2K^ca zRGAHBfqDa}Ons|*+uiVMvQx_2vXv97)01JGlA)YX1QGXUKPYwzRI(HXsuT*UAN-Ced#%^+eX7ZXpeFRuv> zE)v+?ixDL^N;@AIZHSZQ;4?})9~k*?iX41scbTr7WE3jRpcS!Rl%*|Ex<)?a;(!PT zpHYg^B`EfMG^f15hX&yq?T2OvupdjJbP0(*9!?&O;?4&qMqJ6+yr*{yc>TB)GB*01092J295dP1Zxh`0{OREk})LynTL z+aCx}cJ6*)LdA#drb2f=NM)2P2BR8aWko2ekrgMjQz>O``;mZNAXqKU1*=t#xqb@wD|B)L4X98O zl(9EuG^{sHIn=_9Mr-2qHl9xz71gJw6idiZ3IQa#v^~+IEoP=3X4O|DAJz~28Y)Q6 z2#QtQ#XK7!08shTH5!d=D0anm1Ks}JfcXn59?N0@b$hO;ga1GX>AI`p6>qivCkgJM0gLdT5^PF>AF zN|gw#5H4NF1b@esv+8=~(OSb|C3|8e#IV#1A*_UTMdEZMtcs27O=Xv8O>MBMY~~du zi-A?P`Y93K)Ss^ri50@>>9V6#GbHjfMG*}&LabjGMivcmR1qZ8Cj`s6-SUTZ zQ@7fc$Q?0<8!tzyx_&QAoYm~f;}%s$p8Wv(@moy*l)I?FRZm_c8zAkQc%> zQsQ(v2Fyn(V8_UZTpW<*;4?}AI|Rj^>*nM*_)s^X7qjCQuw&xGM(%>oCLSs)Z&Rlrtj4S`19z;}J<2F1_71yrO{w>Y@U^17RYE-cnbFtNs z>*{&3%dtuNQOH|D26Q9(r065yMp~S@PR*{{l_BIp{q{o)xF6!HV}xNRPlO=sicC6)UZ0b6nRo{8DbQNc|*dSh;eud8s>mx>s|M zcZ8r?T@GAfFPpe@0AnIXH^oWr)NGc9a~a%JHcgkCB+owJr}hDgR;<*O9~L4`ey8F} zK^a7(rUw&>+gsDI;ybQ5T>~E_o#PXfF{GH?eOLGL;0cE!it#6xO2qz_rs#oc33)5Tdq9uKMMkUm^Z7kBNg>Ef&=pHm9T zpeI+;gFX42wKW|dYBQ%eY6Bl7o#PXf@yL55R(sEd)O1K6&U?=ti<*uV-g6-}9nvGP z3VP3xw<}hG&xO=!{o9V^J^LTWms4_DL8*<91HntWarCn)1l_egVW@ArI2O^5X1y!ZTZsOi|X@>265H679;unKz5k+&;W zfzOB3bVwhvrkg(=H66QRUTQw1rbGI0HQl_$HQgMm$rqG@GU&hJ}{ zQ5*Ou=^US+j7Q!hvD$kfq^3jqaNc|2Sk!c^@LmY1>5v|QRnU8myj`&hd?BQ!L;8?4 z-NNyx>E_wsl!cI*4(Y?ybPE>Obn~nxzpNCLK~Jux2Yd3%*4A|MYzO#d#ZephDCr!Z zpo~Y|Bh9ng`*KK4hxFmR_vPbI)6KIHDVIZPI;2Nn74)7XZ&$1WzZ_E2A$`c2?(#9I z={P~YsuVKaORc7}+1HdDnx9(5qCmh`2P-hu~(iGcQ)VJ)7a9-df z_ez$H2VYr-HHAfl%O!=nkk-kU+{4{f-j1Uc;s+M;mS=4=x z0$bqJ_X;0q2}-PU(jeLE!xuOSz7h{HC8Q5+N^zS_i4)%|d?eFKmXBmoOv&b0rUg!Q zugry*64Hk@r8%2Ti4)r^e5k-mmJbzBOv&b8fdx)?ugr&-64Hk@rFol8iPPUJ{8-#d zmLH2#Ov&caxCKsouPlU^64Hk@r3H&k=`yFh^Rr2A4p07CPUN6#d1;a|FZLds#a`jN zHHYI#VawTmuMC9ATCeKMt0}>F#_y)RK@R%#z}+ z<(9;W?)+S+B_T(cCCwcNOX6gAelFCKkR!~J=4`hlPIDJB%iLnsBXLK zyIuoZ%hb2sq~B~^TJhTr;)Tf@LPk!Qbq1a#H#|u9%_;9vLD>^sui;9COunElr9&QF z%ug*fs=IDM>_;$_ssfZ)B<6YYU?h78snz@nc^|FkR+lc(B!v|<^nO)0)H2M*s*cm& zt661OL}#^{$*LL1qYF~2V(E%(weDFvc5;~@8<>Q-nthp$N1Eucqq}=}?4Eu3BB#3n zNikS$`wwA4N`^oa>M&Yrl%ub@Ow}VTZS=ZQ)b6dSe3290t64S}M{r_0bN7tN-hSK{ zIoX|DVSQ0@MIGeT>?nEDzvbEOi(cf^c5;RFMWDmFB7(TC;^cNJxl9Ki^_pL7Q9n8=~toE8ntDmTB8a3SCB7qY8#~JMsWe8XqIqNR%|3kgk!&3=|xU!r}Cj&U*`F( zFQrW(kIlA3unp*K5Tb@+vL!q{&0@4ANyu6oy26R=B|IBxQR;-2^2=%ljgJu5{mtXt z$>*2J*E~SqbcK`L$#p(xsgOmliIPR*C8N7K9VYdbXqfo- zyvIcAOi@rN;~Bk89A__gR-=5oySCV8`ioN*yo%r0%50%!K1+&O-#cC5)HiyN$Skxc4y!w{k!0?+eqDw`ual2Z%|FGsF4=`QffUx5T;+s0_|WQ2FL{y=%|M=Ah=m@XxXpYxF%CYoMlk@nvMhdZ1Ny9#gTj%1&b{Vh>Nz zVR8#mCN)fr!?q1BW`G@Lbyg%F*6#x!rafn5#d)I<+~dp0i1kRXu!FnBw3@Ctq@wq! zHbPAiX0qkgTh$v?uR(rYlKEhiQRH2ljF`Bd0c{g6-EnKluvoLlm(g0d*8a%t@ns~$HSu$W6dgR(4JTJf=amea>Ezm5ZULiiZf7{xiXmJh zBd%o+Ms!Hc$cSbLVPwO=n~~8h*P_poQo%@IUtt-W*oaBHu7D}-h_Wu4n z7ALTC&^_eQ1`A)27e;-v>f*9nD9v&@I|nVqqvFMqj>>NFG|Or2TuNE|ZqTZbPJL%k z85GD;UcDK0&fx0dhEbS{AE&-^OSJkQ?0#H%?5Q=K28clQ_1*>8O`f_%T*nkn$+|2N(=4M=*QL*ZLDMM@K zK~zW|s@kj8Fk}$13p06XZif6`)K6(i2kEC+Wu9DICEsum6Viui8ZQBp*TB?*ThTgu zgI7GeG)KLI!il=izAlJ7m=b4Y`3g0bK}i5iPjOa~uTbG)fJBp7Nco1> zY_=QGY-u&vjTh{sFfi- zR3Db@Zi?0B#dW^cLwX@iU0F~uEc&(TR?|K2PBlDCFla@aBX*wDEwuKd*AK85vKxct zHbeUFkUku%P3VJ$?WkCZz8)f`kUku$^=i#_P^>^NF4CEaE6rB5u{ObZFg z7}6s}-*rEV94pGR%Zg^xR%OUx>XYig$YU#=QCa^@F;VQc3pZscCsvgg*%g{F5VM|5 zE>ce)1ZvNXSIV`Dolcz9bcz&x7is?Z&^L&!fptb z%k!Q|Ne&{F-yzO}WD2pQTsB9mQEEwA(g9i$yBAn4uXIfeNG2tjJh);<`5P9~VFh=N zr=uhX(aG6Nht=DKJUAhJjiRjIqe6NeAhoS#7Ph#SEYpvox?SkQ16{)po>+Ohuto zWNOkuQsR~MBDa_a!Z4NeAV|6LcHL{*jfvOQ>r@#I8dF|L55ko9Tji$Zm{@^b2oczY zm2@dhg=G+_!cEWL@k9@<-5Q(S0ZdsFY0#z+D@Owhf>0q!uHx^wb8cfdnwQdAXVgn+ zNeAeq*e$?vmq{gM1VuB1fVylsC{}sT&d}HfBPumZ2rOi_92YCaYU0 zG@lE{rDh4ih0K=YVx{`!a9nDZ5M0P?IWAVPCklK72GZAt8Z>B#W#;LS8{rz#uA%Ru z6(PNTkhLJI)fcmT)P@(pi4!H=Ru}yEGKIh+|8Dq{)yc$3`@yy9h=8&DJweDpud(3yIC0c&|XPhoFB8Ltjv5k zH4Z+sy=&w{GiXJux73#%!wfR80hS(*88dK-M`N>xVtp&0`B zShAEA2@UMKA98JA^3y0TWkq=O8FAew#Svc0%EXHE)}y$Tm5CASvDKxj20YR+UCPRY ziF4fAk_rg!oqckXv;6?ShQpfi#@9`n6Pl&AfvaGm5C770g_PH7t#$U zQBu=2%SlwR0OO%AJw&ID_osRdwMLAI4mU`dz!vC?j82sJEz$*^R25qfU~rP$hCmGI zVho;DNoOhCqkaw(9Cr1pM2?*-ktiYk8V&Cv4=%bH1)f~F-oAk?P%u|88X|4jk@f{? zNeU+AXT7UUP~t{TeD%qju*m=Y(WL5b^jm6T|P07`NDDRHVAlxW}TU>Sog(F_5U z=Ip1$D(ja^w1?G5iDn3(G;cp8R$;$fqLH;mN=ao!Jp-pCCj24%PdF&s-4pG~9u$(L zB}KPtb4d~^oov8`4<0-=J9WohpTZ z;yWUBP?0+(S7>XA7CR;3Aj=)shm9%kJSL=bQAa&Y1rNOfSkW4>N0CfPfpK3bv0A*K zECV&@oeJwp27_q-U# zuT8JIeY17ZuU`}<79G}Vipl_LS*zItSR=sH7>={jd^7PXDKUel1ynRcII5lUThZ+5 zD4=5XIc9aSs0w){g8@|mnzM1oE$(`7R?&?LA4I+gH7YelDSt)smVOV*P%8|YjEY^3 zDpAN$n;A4Jd`+4mlvHG!QhD4TQUu?iKF@_TW7Kp5C=p948!`Lz>e)*{Hnpr+n_^Q` zy7z4=aRN1n_y$WMWTxf;fY zW(eSOH8LOa;k2(v>m<2Hoohts^gD})#~$de9mUyzCPw7i0HaZ!4M@23?THhMqc|JT z#E2D)qd6PUgo)FQ+H^m?;@6Tjw{6dCKob^DFKXc`rQqu znXqs&ar9;bnh0@1F_lYm!)S;HEFlLSRM(8B6D_&oWB2%}9gGk~3yPrKany`xli~oy z5GNH=8|+LRK?pgRm`O_Lwik6@uKP@goffF|r|RBEOV$kN$aJ;F7cLLeb5Dd$U;KPa zOuJ7Pyo%r0%4}gIG;U%1$uDzSdQ+XUZUl6VDqT%0 zNt3 z)GRBnlk6(BqRb_;Tmx3xRI(yR<@$8aYk=1g zD2V&;RGjAC%(9zvi-M@;FySh;8(162bF=X6t@aUE-DMxJIOUBJNQ;-rw$vOfEKCxx zo)#y_m$KY)K}(smlCGgzs(Q68+eOtZC(QBqdE$h1W5P1+8%hQZ5LRcu?S9n7;7EJt zVy;Mg=Sj{Gr9eI90e9dMpWW{anB`=7I=f0^h)sNy4CJXrW!L4i3T=MJO|+XgG5g(G zPMkVVXP4=ZZ{nn6FmqaN`0e_ZoAqvcHCr*UYjSL+l$l~Wrp-mM+5|Hmu!(uejovB~ z7&1Bf>r9wR9J?MzF`uFUbVSAcwG=;6Tiivcx;?|SMnIebPhKl>;n!NSR?w2|W(#|| zbt<-*S-009J_740MsMWN?x+DN4jx=IwwBD|iXRhPoD>HS8hfo5KP{QXHFr#Kabg@i zXehP;7fohy%^wq7oEir%8kudtMUz=v3&#W(r_Oy(PS3a^DNrw)}7}5)KFUKB+ns;hy_{@=u14_QM zzC>gC^a3c7i)jjxJiO?P5wWW7Cw*+;xqjnD(`y|jCZ%(vH$*ekGBAWlzsrhUtpoE@ zxc1?3o1Sar!%24V;TnX;ZF;Ve52w+=hid^!J~V??%50mSYvjX;a`2&TI^7LPJ~TrB zA6us9lFov@|KaNWQJer~V#HPUqdWo3#EO)`fm(kQV^&R!$h84RSW254Li0KdmDojAwpwx|(G*?w^q>IIs^diloQQ7dCO|RyzcxADb zK%_Q&Dos}*r6DJ3$~~GjXk^4m=)y*lenH)83Yld!gGQ)O-F5>rg!BU4Z`0vabD^Yc z?J|g^hz!hh(?Ye0;E9q~Z(@n}NQQIB>u(zkhttaIOGPCXSX%+O(?Lda7%ZpLH@1(} zZ11-T5o!ZM8Gv3Tzr1cj9Y8b(11R!}+xHs~Cy@b&`d%|2nj;ucs@m`>VmAc>oa7F1 zM5-sgKR%ih&Dq5@T99;5*&H^cP;!t*7oE`}gS%MY7IWVt?=x`}AaN2JkZ55tL!vnt zNRf-%QGmp$Xh5O`$_$C-2!wP2n+4fk<~TK-OBJ}qqeZg1^{GZ`sn)I{G*AeD)*ZKs z^~i-Hh~%CQdyRWisr9=$*htgT;tV$ml*?)vG*mg?Z-||`vQ-S1J%d0&A)BH*sv{tr z*r3zWt6{X%3`5b1?6HmlEl!BTbhr^TX5Y>N}+uq_Hh_wS&kW*CZ=)wV^P z*?>ZaZPCF+11&WJPiyWN*cK<(VLBnS)C@z>vf8#d%?{h51G7fkq8WHv^T)upIPnhK zqA(1!)C@z>vf8#d6%X5@q00tZY6hOx!ZENdPRYZzLTITOhN5M&ZLyK3uq_(rZL}?# zfv0uZe%qSkde3276o!G8nqeqfR@+vHmZw4S23m_VGy_lT#baPwAzGfoFwlDS?rB+V zTOnHh3h7-j&{~|K8F<^eatv%MM9Whc23oJ)JuRzkD@4oF=@tfBi!(F>Z(CQ7fo+9o zc?!co>(#rbWwmYbT7H(Bx+40wlnktGVfKpkeW!E0mRDeyY)i>76fK)=i``%jrW4jL zuVmn99fN*(cB{G4s|pOGZBd*<(X!gMcr8C0($l=CWZ-EXgMRsWUdt;mjJ8E_4n@mq z+hVo+5<5axS}CX*G+L#b4XiwZ@GFcZUT~NEM#Up71Clu;EaV6bjm@(nJ{5*Z%|M=9 zPEk}aSwEW3?o(G3o{owTX$eV{K3)aC3XxxkW9oUGAwcOlk%e zll>OOYV;*`;NxQRb9_ z-rNJGlrnC}V*3BvyPDWGjw?J$Yy&OYv_Mgyr(zJKr~_Dkw5&Qse@u~*C|HyUE+s~- z0%Jw4sEtUju)DOP1OeP2MGrakQ1lq1mjXQ*Mco>0ot}FsD4_Qq8WcITXio+D`)0^p zy&Vo8*EIdJE7KrNao)_n{r0^#-^}j3NxnsqbL%USn^+pCq5{LA`dZR0Y6LTEYLQ~*XDrJRA^_p@ z|BDnQKVw;rwD?dw{ETHe(&9rA@aI{M_#y&rU}gaD!NW8)RLd+-SU~B~f-G5AzBSe~ zI3(*s_3-LQC5_*NmarpY9flt&`kciiP&$mr2y}hp2D*p?7F4+&-SJGZAj7U(zH8PF zX5|LT2CTK^8_o=B5mgv*S4AvHXV=OV)Ge#7C5o4eco!}u=wxk?wWcLE&WqO=Ak<@z2C=k|E zh2qr$wl@W*s(H)uE^)(dwB@FyZ69)J*^PZ4HHxZ?V2)2PmyOQt<|%?*-73;Z6=NY) zG~cpYomP@jqNp{XMERX4j%*{0Y(p@jzBv_PFEU=TT-&LSWk<&Hu<#TuiFh5329G}e zn5W2fbt_M$9udW5{fQ%x5;Y^MbvN|m0I@czWMC4-WMDFmV3)+y1SX1W8&xteiQ+g& zr64d-)Ei)+0+T4F0#o0d(h!&^`fXInz$A)^z|;pR`GJYz-&NRB62)efSytCJ@=*!3 zi?d-*QsdCF>ii;~=PgJaHQx5_*Grg>U}{;6ltel?%+142F4oQ=C|HM60A$Xn>Z*Z> zqYkLm&4`E&sa1H;+XJMoaL=kG7%7s3N4-jiR8&F-RN}oZL$UAd#xfops1S)_x|hqg zt(F+k!J>iW4p8W=Nuyy$g($aKE=MI4E6R0T*Mjkzj7=!QA+Zs|x3MD9WNCMXqTRWu z7wHg+N}y90#5+JJ`L2e7`2h3IgQcL$uc9QjloqyxL=>3v)}g=8YkhNqeWk_h$#?@f z?DM#X!`;~9?B6Kfy;Y=m0Hhv=43aCj2UK9{ryiG-GVhvuiJUUYP@KE4W#Bn3)si4H z`!k0MZ>+DAzE^g{^vQ%=?+GVOM!j1&R3Vc* zmDfr46JU|493b677O0hz(G5K#Ougi5BUCeYn!#gA_&Iu97~uovo5CxNRPV4k)|A zM_`}NLR6=?`gWCcK!A$$KMYl$s3+R{D6$SvQQjw@BAriSl?K*cY^|VNh?R-yp>__Hr0;DL%lSq-C*M}+vzPCUzbYq+Ly=r!w z_PrzXIPCZmKJ7v#Z8ElL*8`wv*V6!%SkI&AIRHg^o&bvWJc(2q9FOAVmGT;npXxN8 zQmoA3Rb0D;<^WOYh}$mD0JS7jGZmJX*U^cos3^tgyv042f@L*PWmK8~R4Bq-HFA`# zR1G6{qlhKYsmrIpEYshIyO}ws)q>l0-dG@wxl{)~(;7ZSFrT^FOMUZhKLyS^VJ4ii zRdd|>S{?MxApZ#`=N2fs4Qu0YQbyH$g3C4%ax^%|Y=IZ>5Ot*B#*5+#QA=&g52kBOQ2R}uj+M-fC5DF%p|Ay~qpW&j{um|}panSmu7Y6bwph3NnYQJ?4B9QZDN3OJmGinEvn=Q<0K ze9q0=4Syea%=ic*10CoSONI6M6+BO;I_!WzdYzVBXfAQU6Lwmlut17|qIfz0l^JDG zQGpZ#Me%hB6gC)*MP*j7K#GB)czd=|nOnrGDpjBc1X2tX#oZ+i)J?qsffNHpad^OC zer|+CMFmm}6vgEwP$MjAehv$y7$|DK-SADngYWjLF={{{6+q!zd?9704C?uP39h{X zuLY7G`}A)-+$`qGMkR}vG^(~2+@sKlrq>GRsbSA(%myV=3>9@_A~YUjeQW(@t42&R z6QU^wj~Wb(#%xd`#ZXbhq0o3%^QD+(HXxZ|=%@kG01j#gFd&d(pr`>-Xk+E<<;yFX zm}aIEPBDPgz)1&%YHT{06vIWb-GHN&OAljj8sQWJNDZsv;HHyFFI;4DuV{Q*c$oO6 z2&Wi8YFr>=mjZ=0z9}*(hAYDD9iHh5)afqOWb>}w zY})MxubaNf8**_OyDKu}HO?(FeVJe^f&BCMnrdYiX$!%q_ zdlORL!n#=b9qM*0kMB7yw|%SSL5tkqw>>zFSR}?x*W$ZERqluaD@-H^n=v#RkP{wM z43vG38AbgP%CQLZNB^^QbZf?IRiZP*Y@;?`~+&v0>U^dnrn zy0vGwg}Hb=tc9rv(06UP47Tg}Am4(^?(FUHUB`z-9^7{ZMP1A9xNT^|=}X1BGKlwR zu1qe}eh8e>`coyLnA_lI!@QpYr%D zU$^~zr|C3^WelNoD9Z(rbS>!Z;JgLqdh3oI2In;$iRf;fn(6LB6oiMEkMxHKI%X_6 zQOz{nMowOrq5Zs2sS2Ck@KBBmqmV%y2-*bD()1dV0doV0JZviG4JRR?a($^utETBM zfC}u{jZP1M;a5?ffd?Hw3=@QTmF))P)Ie1y0Ue%858PMyZP_|>+#zg8cCn$%M6}TK z7fV3UM`>{?GZ8H`-9y=GneGA6S*^I11w+PGtaK+aq7&XpA-EvYdDiNXOhs;GCwS0s zv(X4o1RTvEAxISONM<(6i;g3$b<~4?(R#wRqcta@uO`Y@`4tGWq)boqzs=O%+Qoz+ZdtzH{k3yYtfdULkx=!TSsF{wlmLOrK{L zK6hFMKe5k?5A-SCQQCqJ8jEfoSDPLGl%tEW)!lSD~qgu zpbx&-KMo%wPUC0&S{ra`@>=SX(`>#)4Sb%R^ z%wRX+bD5Rl+ZwyUHsJ3y_*{YS;`QL%-~KDC;sy31d-cU1!le~gm$7flPsYx{|EO8{ zYaTwQpjDH((2mWT%z`%CU~i5re?``+K&c78dQfgMALJbPtM|Hlt^kcrflfY1+3b3-F$o->$;9*FdXlaAl{YF21bS z27Q}IYyB~2SRJH2g zN~4a~!?*OVOGK=hlMj)`YX-U|msk e18f6i16-krWWV@%K!CCLznSdQc&`0;2>c&SmN_#3 literal 0 HcmV?d00001 diff --git a/AsbCloudInfrastructure/ReportDataSourcePgCloud.cs b/AsbCloudInfrastructure/ReportDataSourcePgCloud.cs index b9c75670..ae175266 100644 --- a/AsbCloudInfrastructure/ReportDataSourcePgCloud.cs +++ b/AsbCloudInfrastructure/ReportDataSourcePgCloud.cs @@ -67,13 +67,13 @@ namespace AsbCloudInfrastructure { var messagesStat = (from item in context.TelemetryMessages where item.IdTelemetry == idTelemetry - group item.Date by item.IdTelemetry into g + group item.DateTime by item.IdTelemetry into g select new { min = g.Min(), max = g.Max(), count = g.Count() }) .FirstOrDefault(); var dataStat = (from item in context.TelemetryDataSaub where item.IdTelemetry == idTelemetry - group item.Date by item.IdTelemetry into g + group item.DateTime by item.IdTelemetry into g select new { min = g.Min(), max = g.Max(), count = g.Count() }) .FirstOrDefault(); @@ -94,11 +94,11 @@ namespace AsbCloudInfrastructure var query = context.TelemetryDataSaub .Where(d => d.IdTelemetry == idTelemetry - && d.Date >= beginUtc - && d.Date <= endUtc) - .OrderBy(d => d.Date) + && d.DateTime >= beginUtc + && d.DateTime <= endUtc) + .OrderBy(d => d.DateTime) .Select(d => new DataSaubReport { - Date = d.Date.DateTime.AddHours(timezoneOffset), + Date = d.DateTime.DateTime.AddHours(timezoneOffset), Mode = d.Mode, WellDepth = d.WellDepth, BitDepth = d.BitDepth, @@ -128,13 +128,13 @@ namespace AsbCloudInfrastructure var query = from item in context.TelemetryMessages where item.IdTelemetry == idTelemetry - && item.Date >= beginUtc - && item.Date <= endUtc - orderby item.Date + && item.DateTime >= beginUtc + && item.DateTime <= endUtc + orderby item.DateTime select new MessageReport { Id = item.Id, - Date = item.Date.DateTime, + Date = item.DateTime.DateTime, Category = events.GetValueOrDefault(item.IdEvent) == null ? $"" : categories[events[item.IdEvent].IdCategory], diff --git a/AsbCloudInfrastructure/Services/Analysis/TelemetryAnalyticsService.cs b/AsbCloudInfrastructure/Services/Analysis/TelemetryAnalyticsService.cs index c875656a..5ac22ae0 100644 --- a/AsbCloudInfrastructure/Services/Analysis/TelemetryAnalyticsService.cs +++ b/AsbCloudInfrastructure/Services/Analysis/TelemetryAnalyticsService.cs @@ -45,19 +45,19 @@ namespace AsbCloudInfrastructure.Services.Analysis { d.WellDepth, d.BitDepth, - d.Date + d.DateTime }); var m = (int)Math.Round(1d * depthToTimeData.Count() / 2048); if (m > 1) - depthToTimeData = depthToTimeData.Where((d, i) => (((d.Date.DayOfYear * 24 + d.Date.Hour) * 60 + d.Date.Minute) * 60 + d.Date.Second) % m == 0); + depthToTimeData = depthToTimeData.Where((d, i) => (((d.DateTime.DayOfYear * 24 + d.DateTime.Hour) * 60 + d.DateTime.Minute) * 60 + d.DateTime.Second) % m == 0); return await depthToTimeData.Select(d => new WellDepthToDayDto { WellDepth = d.WellDepth ?? 0.0, BitDepth = d.BitDepth ?? 0.0, - Date = d.Date.ToRemoteDateTime(timezone.Hours), + Date = d.DateTime.ToRemoteDateTime(timezone.Hours), }).AsNoTracking().ToListAsync(token).ConfigureAwait(false); } @@ -75,12 +75,12 @@ namespace AsbCloudInfrastructure.Services.Analysis var drillingPeriodsInfo = await db.TelemetryDataSaub .Where(t => t.IdTelemetry == telemetryId) - .GroupBy(t => Math.Floor((((t.Date.DayOfYear * 24 + t.Date.Hour) * 60 + t.Date.Minute) * 60 + t.Date.Second + timezone.Hours - shiftStartSec) / intervalSeconds)) + .GroupBy(t => Math.Floor((((t.DateTime.DayOfYear * 24 + t.DateTime.Hour) * 60 + t.DateTime.Minute) * 60 + t.DateTime.Second + timezone.Hours - shiftStartSec) / intervalSeconds)) .Select(g => new { WellDepthMin = g.Min(t => t.WellDepth), WellDepthMax = g.Max(t => t.WellDepth), - DateMin = g.Min(t => t.Date), - DateMax = g.Max(t => t.Date), + DateMin = g.Min(t => t.DateTime), + DateMax = g.Max(t => t.DateTime), }) .OrderBy(g=>g.DateMin) .ToListAsync(token); @@ -353,7 +353,7 @@ namespace AsbCloudInfrastructure.Services.Analysis db.TelemetryDataSaub .Where(d => d.IdTelemetry == idTelemetry && - d.Date > analyzeStartDate && + d.DateTime > analyzeStartDate && d.BitDepth != null && d.BlockPosition != null && d.HookWeight != null && @@ -361,11 +361,11 @@ namespace AsbCloudInfrastructure.Services.Analysis d.RotorSpeed != null && d.WellDepth != null ) - .OrderBy(d => d.Date) + .OrderBy(d => d.DateTime) .Take(countOfRecordsForInterpolation) .Select(d => new DataSaubAnalyse { IdTelemetry = d.IdTelemetry, - Date = d.Date, + Date = d.DateTime, BitDepth = d.BitDepth ?? 0, BlockPosition = d.BlockPosition ?? 0, HookWeight = d.HookWeight ?? 0, diff --git a/AsbCloudInfrastructure/Services/MessageService.cs b/AsbCloudInfrastructure/Services/MessageService.cs index fc130abd..1d3c6d6a 100644 --- a/AsbCloudInfrastructure/Services/MessageService.cs +++ b/AsbCloudInfrastructure/Services/MessageService.cs @@ -47,7 +47,7 @@ namespace AsbCloudInfrastructure.Services return null; var query = db.TelemetryMessages.Where(m => m.IdTelemetry == idTelemetry) - .OrderBy(m => m.Date).AsNoTracking(); + .OrderBy(m => m.DateTime).AsNoTracking(); if ((categoryids?.Any() == true) || !string.IsNullOrEmpty(searchString)) { @@ -65,20 +65,20 @@ namespace AsbCloudInfrastructure.Services query = query.Where(m => eventIds.Contains(m.IdEvent)); } - query = query.OrderByDescending(m => m.Date); + query = query.OrderByDescending(m => m.DateTime); var timezone = telemetryService.GetTimezone(idTelemetry??default); if (begin != default) { var beginUtc = begin.ToUtcDateTimeOffset(timezone.Hours); - query = query.Where(m => m.Date >= beginUtc); + query = query.Where(m => m.DateTime >= beginUtc); } if (end != default) { var endUtc = end.ToUtcDateTimeOffset(timezone.Hours); - query = query.Where(m => m.Date <= endUtc); + query = query.Where(m => m.DateTime <= endUtc); } var result = new PaginationContainer @@ -107,7 +107,7 @@ namespace AsbCloudInfrastructure.Services WellDepth = message.WellDepth }; - messageDto.Date = message.Date.ToRemoteDateTime(timezone.Hours); + messageDto.Date = message.DateTime.ToRemoteDateTime(timezone.Hours); if (message.IdTelemetryUser is not null) { @@ -151,7 +151,7 @@ namespace AsbCloudInfrastructure.Services var entity = dto.Adapt(); entity.Id = 0; entity.IdTelemetry = telemetryId; - entity.Date = dto.Date.ToUtcDateTimeOffset(timezone.Hours); + entity.DateTime = dto.Date.ToUtcDateTimeOffset(timezone.Hours); db.TelemetryMessages.Add(entity); } diff --git a/AsbCloudInfrastructure/Services/TelemetryDataBaseService.cs b/AsbCloudInfrastructure/Services/TelemetryDataBaseService.cs index 6445d67c..ebf5d0a6 100644 --- a/AsbCloudInfrastructure/Services/TelemetryDataBaseService.cs +++ b/AsbCloudInfrastructure/Services/TelemetryDataBaseService.cs @@ -64,7 +64,7 @@ namespace AsbCloudInfrastructure.Services return entity; }); - var entityMaxDate = entities.Max(e => e.Date); + var entityMaxDate = entities.Max(e => e.DateTime); telemetryService.SaveRequestDate(uid, entityMaxDate); var dbset = db.Set(); @@ -80,7 +80,7 @@ namespace AsbCloudInfrastructure.Services $"uid: {uid}, " + $"idTelemetry {idTelemetry}, " + $"count: {entities.Count()}, " + - $"dataDate: {entities.FirstOrDefault()?.Date}, " + + $"dataDate: {entities.FirstOrDefault()?.DateTime}, " + $"dbSaveDurationTime:{stopwatch.ElapsedMilliseconds}ms. " + $"Message: {ex.Message}"); return 0; @@ -120,10 +120,10 @@ namespace AsbCloudInfrastructure.Services var query = dbSet .Where(d => d.IdTelemetry == idTelemetry - && d.Date >= dateBeginUtc); + && d.DateTime >= dateBeginUtc); if (filterByDateEnd) - query = query.Where(d => d.Date <= dateEnd); + query = query.Where(d => d.DateTime <= dateEnd); var fullDataCount = await query.CountAsync(token) .ConfigureAwait(false); @@ -140,25 +140,25 @@ namespace AsbCloudInfrastructure.Services //case var i when i <= 1: // тут для полноты, но никогда не сработает из-за условия выше // break; case var i when i < 10: - query = query.Where((d) => d.Date.Second % m == 0); + query = query.Where((d) => d.DateTime.Second % m == 0); break; case var i when i < 30: - query = query.Where((d) => (d.Date.Minute * 60 + d.Date.Second) % m == 0); + query = query.Where((d) => (d.DateTime.Minute * 60 + d.DateTime.Second) % m == 0); break; case var i when i < 600: - query = query.Where((d) => ((d.Date.Hour * 60 + d.Date.Minute) * 60 + d.Date.Second) % m == 0); + query = query.Where((d) => ((d.DateTime.Hour * 60 + d.DateTime.Minute) * 60 + d.DateTime.Second) % m == 0); break; default: - query = query.Where((d) => (((d.Date.DayOfYear * 24 + d.Date.Hour) * 60 + d.Date.Minute) * 60 + d.Date.Second) % m == 0); + query = query.Where((d) => (((d.DateTime.DayOfYear * 24 + d.DateTime.Hour) * 60 + d.DateTime.Minute) * 60 + d.DateTime.Second) % m == 0); break; } if (m > 1) - query = query.Where((d) => (((d.Date.DayOfYear*24 + d.Date.Hour)*60 + d.Date.Minute)*60 + d.Date.Second) % m == 0); + query = query.Where((d) => (((d.DateTime.DayOfYear*24 + d.DateTime.Hour)*60 + d.DateTime.Minute)*60 + d.DateTime.Second) % m == 0); } var entities = await query - .OrderBy(d=>d.Date) + .OrderBy(d=>d.DateTime) .AsNoTracking() .ToListAsync(token) .ConfigureAwait(false); diff --git a/AsbCloudInfrastructure/Services/TelemetryDataSaubService.cs b/AsbCloudInfrastructure/Services/TelemetryDataSaubService.cs index 7a3dd68a..18648d93 100644 --- a/AsbCloudInfrastructure/Services/TelemetryDataSaubService.cs +++ b/AsbCloudInfrastructure/Services/TelemetryDataSaubService.cs @@ -21,7 +21,7 @@ namespace AsbCloudInfrastructure.Services var telemetryUser = cacheTelemetryUsers? .FirstOrDefault(u => u.IdTelemetry == src.IdTelemetry && (u.Name == src.User || u.Surname == src.User)); entity.IdUser = telemetryUser?.IdUser; - entity.Date = src.Date.ToUtcDateTimeOffset(timezoneOffset); + entity.DateTime = src.Date.ToUtcDateTimeOffset(timezoneOffset); return entity; } @@ -31,7 +31,7 @@ namespace AsbCloudInfrastructure.Services var telemetryUser = cacheTelemetryUsers? .FirstOrDefault(u => u.IdTelemetry == src.IdTelemetry && u.IdUser == src.IdUser); dto.User = telemetryUser?.MakeDisplayName(); - dto.Date = src.Date.ToRemoteDateTime(timezoneOffset); + dto.Date = src.DateTime.ToRemoteDateTime(timezoneOffset); return dto; } } diff --git a/AsbCloudInfrastructure/Services/TelemetryDataSpinService.cs b/AsbCloudInfrastructure/Services/TelemetryDataSpinService.cs index 11f5b4f9..c6ac634c 100644 --- a/AsbCloudInfrastructure/Services/TelemetryDataSpinService.cs +++ b/AsbCloudInfrastructure/Services/TelemetryDataSpinService.cs @@ -18,14 +18,14 @@ namespace AsbCloudInfrastructure.Services public override TelemetryDataSpin Convert(TelemetryDataSpinDto src, double timezoneOffset) { var entity = src.Adapt(); - entity.Date = src.Date.ToUtcDateTimeOffset(timezoneOffset); + entity.DateTime = src.Date.ToUtcDateTimeOffset(timezoneOffset); return entity; } public override TelemetryDataSpinDto Convert(TelemetryDataSpin src, double timezoneOffset) { var dto = src.Adapt(); - dto.Date = src.Date.ToRemoteDateTime(timezoneOffset); + dto.Date = src.DateTime.ToRemoteDateTime(timezoneOffset); return dto; } } diff --git a/AsbCloudInfrastructure/Services/TelemetryTracker.cs b/AsbCloudInfrastructure/Services/TelemetryTracker.cs index f861b8c6..e158574c 100644 --- a/AsbCloudInfrastructure/Services/TelemetryTracker.cs +++ b/AsbCloudInfrastructure/Services/TelemetryTracker.cs @@ -71,8 +71,8 @@ namespace AsbCloudInfrastructure.Services .Select(g => new { IdTelemetry = g.Key, - DateMax = g.Max(d => d.Date), - DateMin = g.Min(d => d.Date), + DateMax = g.Max(d => d.DateTime), + DateMin = g.Min(d => d.DateTime), }) .AsNoTracking() .ToListAsync() diff --git a/AsbCloudWebApi/Controllers/WitsController.cs b/AsbCloudWebApi/Controllers/WitsController.cs new file mode 100644 index 00000000..4d0e492b --- /dev/null +++ b/AsbCloudWebApi/Controllers/WitsController.cs @@ -0,0 +1,63 @@ +using AsbCloudApp.Services; +using AsbCloudWebApi.SignalR; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.SignalR; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; + +namespace AsbCloudWebApi.Controllers +{ + [Route("api/telemetry/{uid}/wits")] + [ApiController] + public class WitsController : ControllerBase + { + private readonly IWitsRepository witsService; + private readonly ITelemetryService telemetryService; + private readonly IHubContext telemetryHubContext; + + public WitsController( + IWitsRepository witsService, + ITelemetryService telemetryService, + IHubContext telemetryHubContext) + { + this.witsService = witsService; + this.telemetryService = telemetryService; + this.telemetryHubContext = telemetryHubContext; + } + + //[HttpPost("record1")] + //[AllowAnonymous] + //public virtual async Task PostDataAsync(string uid, [FromBody] IEnumerable dtos, + // CancellationToken token = default) + //{ + // await telemetryDataService.UpdateDataAsync(uid, dtos, token).ConfigureAwait(false); + + // var idWell = telemetryService.GetIdWellByTelemetryUid(uid); + // if (idWell != null && dtos.Any()) + // _ = Task.Run(() => telemetryHubContext.Clients.Group($"well_{idWell}") + // .SendAsync(SirnalRMethodGetDataName, dtos), CancellationToken.None); + + // return Ok(); + //} + + + //private async Task PostDataAsync( + // string uid, + // IEnumerable dtos, + // CancellationToken token = default) + //{ + // //await witsService.SaveDataAsync(uid, dtos, token).ConfigureAwait(false); + + // var idWell = telemetryService.GetIdWellByTelemetryUid(uid); + // if (idWell != null && dtos.Any()) + // _ = Task.Run(() => telemetryHubContext.Clients.Group($"well_{idWell}") + // .SendAsync(SirnalRMethodGetDataName, dtos), CancellationToken.None); + + // return Ok(); + //} + } +}