Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
154 lines
4.9 KiB
C#
154 lines
4.9 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using OTSSignsOrchestrator.Core.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace OTSSignsOrchestrator.Core.Migrations
|
|
{
|
|
[DbContext(typeof(XiboContext))]
|
|
[Migration("20260219121529_RemoveCmsInstancesAndSecretMetadata")]
|
|
partial class RemoveCmsInstancesAndSecretMetadata
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.2");
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.AppSetting", b =>
|
|
{
|
|
b.Property<string>("Key")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Category")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsSensitive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Value")
|
|
.HasMaxLength(4000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Key");
|
|
|
|
b.HasIndex("Category");
|
|
|
|
b.ToTable("AppSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.OperationLog", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("DurationMs")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Message")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Operation")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("StackName")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Timestamp")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Host")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KeyPassphrase")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Label")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool?>("LastTestSuccess")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("LastTestedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Password")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Port")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("PrivateKeyPath")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("UseKeyAuth")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Label")
|
|
.IsUnique();
|
|
|
|
b.ToTable("SshHosts");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|