feat(dal, api): в таблицу Units добавлено поле LastLogon. Переделана авторизация для хостов (ЭК), теперь берется ip из связанных Units. Переделаны запросы авторизации в кеш. Переделан запрос и модель в influxdb. Обновлена статистика по юнитам и полям.
This commit is contained in:
3840
PARR.DAL/Migrations/20250826040029_tblUnitsAddLastLogon.Designer.cs
generated
Normal file
3840
PARR.DAL/Migrations/20250826040029_tblUnitsAddLastLogon.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
31
PARR.DAL/Migrations/20250826040029_tblUnitsAddLastLogon.cs
Normal file
31
PARR.DAL/Migrations/20250826040029_tblUnitsAddLastLogon.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblUnitsAddLastLogon : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "LastLogon",
|
||||
schema: "unit",
|
||||
table: "Units",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LastLogon",
|
||||
schema: "unit",
|
||||
table: "Units");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2756,6 +2756,9 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<DateTimeOffset?>("DateModified")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTimeOffset?>("LastLogon")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
Reference in New Issue
Block a user