[AZ-1126] Migrate capturedAt to DateTimeOffset
ci/woodpecker/push/01-test Pipeline failed
ci/woodpecker/push/02-build-push unknown status

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-06-26 13:34:35 +03:00
parent b055450e40
commit 50d4a76be3
19 changed files with 242 additions and 43 deletions
@@ -1,10 +1,11 @@
using System.Text.Json.Serialization;
using SatelliteProvider.Common.Json;
namespace SatelliteProvider.Common.DTO;
// AZ-488 / `uav-tile-upload.md` v1.0.0 — per-tile metadata supplied with each
// batch item. `CapturedAt` is normalized to UTC by the upload handler before
// reaching the persistence layer.
// AZ-488 / `uav-tile-upload.md` — per-tile metadata supplied with each batch
// item. `CapturedAt` is UTC-aware (`DateTimeOffset`) and normalized to UTC
// before persistence (AZ-1126 / F-AZ810-2).
//
// AZ-503: `FlightId` is optional. When provided, two UAVs uploading the same
// (z, x, y) cell from different flights coexist as distinct DB rows and write
@@ -27,7 +28,8 @@ public record UavTileMetadata
[JsonRequired]
public double TileSizeMeters { get; init; }
[JsonRequired]
public DateTime CapturedAt { get; init; }
[JsonConverter(typeof(UtcOffsetRequiredDateTimeOffsetConverter))]
public DateTimeOffset CapturedAt { get; init; }
public Guid? FlightId { get; init; }
}