feature: Ward Gateway Service (Local-First Clinical Path)

This commit is contained in:
voltsrage
2026-06-23 16:45:38 +08:00
parent d8e142fffe
commit 1bf8359097
100 changed files with 5474 additions and 4 deletions
@@ -0,0 +1,16 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
public class GatewaySyncStateConfiguration : IEntityTypeConfiguration<GatewaySyncState>
{
public void Configure(EntityTypeBuilder<GatewaySyncState> builder)
{
builder.ToTable("gateway_sync_state");
builder.HasKey(s => s.Id);
builder.Property(s => s.Id).HasColumnName("id").HasDefaultValueSql("gen_random_uuid()");
builder.Property(s => s.LastEncounterSyncAt).HasColumnName("last_encounter_sync_at");
builder.Property(s => s.InitialSyncCompleted)
.HasColumnName("initial_sync_completed")
.HasDefaultValue(false);
}
}