Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
348 lines
12 KiB
C#
348 lines
12 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("20260218202617_AddCifsShareFolder")]
|
|
partial class AddCifsShareFolder
|
|
{
|
|
/// <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.CmsInstance", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CifsExtraOptions")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CifsPassword")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CifsServer")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CifsShareFolder")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CifsShareName")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CifsUsername")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CmsServerName")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Constraints")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CustomerAbbrev")
|
|
.IsRequired()
|
|
.HasMaxLength(3)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CustomerName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DeletedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("HostHttpPort")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("LibraryHostPath")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SmtpServer")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SmtpUsername")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("SshHostId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StackName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TemplateCacheKey")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("TemplateLastFetch")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TemplateRepoPat")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TemplateRepoUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ThemeHostPath")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("XiboApiTestStatus")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("XiboApiTestedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("XiboPassword")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("XiboUsername")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CustomerName");
|
|
|
|
b.HasIndex("SshHostId");
|
|
|
|
b.HasIndex("StackName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CmsInstances");
|
|
});
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.OperationLog", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("DurationMs")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid?>("InstanceId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Message")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Operation")
|
|
.HasColumnType("INTEGER");
|
|
|
|
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("InstanceId");
|
|
|
|
b.HasIndex("Operation");
|
|
|
|
b.HasIndex("Timestamp");
|
|
|
|
b.ToTable("OperationLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.SecretMetadata", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CustomerName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsGlobal")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("LastRotatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("SecretMetadata");
|
|
});
|
|
|
|
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");
|
|
});
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.CmsInstance", b =>
|
|
{
|
|
b.HasOne("OTSSignsOrchestrator.Core.Models.Entities.SshHost", "SshHost")
|
|
.WithMany("Instances")
|
|
.HasForeignKey("SshHostId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.Navigation("SshHost");
|
|
});
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.OperationLog", b =>
|
|
{
|
|
b.HasOne("OTSSignsOrchestrator.Core.Models.Entities.CmsInstance", "Instance")
|
|
.WithMany("OperationLogs")
|
|
.HasForeignKey("InstanceId");
|
|
|
|
b.Navigation("Instance");
|
|
});
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.CmsInstance", b =>
|
|
{
|
|
b.Navigation("OperationLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("OTSSignsOrchestrator.Core.Models.Entities.SshHost", b =>
|
|
{
|
|
b.Navigation("Instances");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|