//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using OTSSignsOrchestrator.Core.Data;
#nullable disable
namespace OTSSignsOrchestrator.Core.Migrations
{
[DbContext(typeof(XiboContext))]
partial class XiboContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "9.0.2");
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.OperationLog", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("DurationMs")
.HasColumnType("INTEGER");
b.Property("Message")
.HasMaxLength(2000)
.HasColumnType("TEXT");
b.Property("Operation")
.HasColumnType("INTEGER");
b.Property("StackName")
.HasMaxLength(150)
.HasColumnType("TEXT");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("Timestamp")
.HasColumnType("TEXT");
b.Property("UserId")
.HasMaxLength(200)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("Operation");
b.HasIndex("StackName");
b.HasIndex("Timestamp");
b.ToTable("OperationLogs");
});
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.SshHost", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Host")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("KeyPassphrase")
.HasMaxLength(2000)
.HasColumnType("TEXT");
b.Property("Label")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("LastTestSuccess")
.HasColumnType("INTEGER");
b.Property("LastTestedAt")
.HasColumnType("TEXT");
b.Property("Password")
.HasMaxLength(2000)
.HasColumnType("TEXT");
b.Property("Port")
.HasColumnType("INTEGER");
b.Property("PrivateKeyPath")
.HasMaxLength(1000)
.HasColumnType("TEXT");
b.Property("UpdatedAt")
.HasColumnType("TEXT");
b.Property("UseKeyAuth")
.HasColumnType("INTEGER");
b.Property("Username")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("Label")
.IsUnique();
b.ToTable("SshHosts");
});
#pragma warning restore 612, 618
}
}
}