4437 lines
152 KiB
C#
4437 lines
152 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using EntKube.Web.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace EntKube.Web.Data.Migrations.Sqlite
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AlertIncident", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("AcknowledgedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AcknowledgedBy")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AlertName")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("ClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("EndsAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Fingerprint")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LabelsJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("ResolvedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Severity")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("StartsAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Summary")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("StartsAt");
|
|
|
|
b.HasIndex("Status");
|
|
|
|
b.HasIndex("ClusterId", "Fingerprint")
|
|
.IsUnique();
|
|
|
|
b.ToTable("AlertIncidents");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.App", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CustomerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CustomerId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Apps");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppDeployment", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("ClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("EnvironmentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("GitAutoSync")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("GitLastSyncedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GitLastSyncedCommit")
|
|
.HasMaxLength(40)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GitPath")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("GitRepositoryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GitRevision")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HealthStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmChartName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmChartVersion")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmRepoUrl")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmValues")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("LastSyncedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ParentDeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StatusMessage")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SyncStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClusterId");
|
|
|
|
b.HasIndex("EnvironmentId");
|
|
|
|
b.HasIndex("GitRepositoryId");
|
|
|
|
b.HasIndex("ParentDeploymentId");
|
|
|
|
b.HasIndex("AppId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("AppDeployments");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppEnvironment", b =>
|
|
{
|
|
b.Property<Guid>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("EnvironmentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("LinkedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("AppId", "EnvironmentId");
|
|
|
|
b.HasIndex("EnvironmentId");
|
|
|
|
b.ToTable("AppEnvironments");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppNetworkPolicy", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AllowFromNamespace")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CustomYaml")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PolicyType")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("AppNetworkPolicies");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppQuota", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CpuLimit")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CpuRequest")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("MaxPods")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("MaxPvcs")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("MemoryLimit")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("MemoryRequest")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("AppQuotas");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppRbacPolicy", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("AutoMountToken")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ServiceAccountName")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("AppRbacPolicies");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppRbacRule", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ApiGroups")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppRbacPolicyId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Resources")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Verbs")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppRbacPolicyId");
|
|
|
|
b.ToTable("AppRbacRules");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ApplicationUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
.HasDatabaseName("EmailIndex");
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
.IsUnique()
|
|
.HasDatabaseName("UserNameIndex");
|
|
|
|
b.ToTable("AspNetUsers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AuditEvent", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Action")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("DeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Details")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("OccurredAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PerformedBy")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ResourceKind")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ResourceName")
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DeploymentId");
|
|
|
|
b.HasIndex("OccurredAt");
|
|
|
|
b.ToTable("AuditEvents");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CacheBinding", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppDeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesSecretName")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("LastSyncedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("RedisClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("SyncEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppDeploymentId");
|
|
|
|
b.HasIndex("RedisClusterId");
|
|
|
|
b.ToTable("CacheBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ClusterComponent", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("ClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ComponentType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Configuration")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmChartName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmChartVersion")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmRepoUrl")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HelmValues")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("InstalledAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ReleaseName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClusterId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ClusterComponents");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgBackup", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CnpgClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("CompletedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("SizeBytes")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("StartedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CnpgClusterId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CnpgBackups");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgCluster", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("BackupSchedule")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Instances")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsExternal")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("KubernetesClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MaxBackups")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(20);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PostgresVersion")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RetentionDays")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid?>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StorageSize")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.HasIndex("KubernetesClusterId", "Name", "Namespace")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CnpgClusters");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgDatabase", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CnpgClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Owner")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CnpgClusterId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CnpgDatabases");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Customer", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Customers");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CustomerAccess", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CustomerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("GrantedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Role")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "CustomerId");
|
|
|
|
b.HasIndex("CustomerId");
|
|
|
|
b.ToTable("CustomerAccesses");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CustomerGitCredential", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AuthType")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CustomerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.HasIndex("CustomerId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CustomerGitCredentials");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CustomerGitRepoPolicy", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CustomerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UrlPattern")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CustomerId", "UrlPattern")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CustomerGitRepoPolicies");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DatabaseBinding", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppDeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CnpgDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesSecretName")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("LastSyncedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("MongoDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("RegisteredPostgresDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("SyncEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppDeploymentId");
|
|
|
|
b.HasIndex("CnpgDatabaseId");
|
|
|
|
b.HasIndex("MongoDatabaseId");
|
|
|
|
b.HasIndex("RegisteredPostgresDatabaseId");
|
|
|
|
b.ToTable("DatabaseBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DeploymentHealthSnapshot", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("DeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HealthStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("ReadyReplicas")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("SnapshotAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SyncStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("TotalReplicas")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DeploymentId", "SnapshotAt");
|
|
|
|
b.ToTable("DeploymentHealthSnapshots");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DeploymentManifest", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("DeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Kind")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SortOrder")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SourceFile")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("YamlContent")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DeploymentId");
|
|
|
|
b.ToTable("DeploymentManifests");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DeploymentResource", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("DeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Group")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HealthStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Kind")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("LastUpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ParentResourceId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StatusMessage")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SyncStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DeploymentId");
|
|
|
|
b.HasIndex("ParentResourceId");
|
|
|
|
b.ToTable("DeploymentResources");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DockerRegistryCredential", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(254)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<byte[]>("EncryptedPassword")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<Guid?>("KubernetesClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesNamespace")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesSecretName")
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<byte[]>("PasswordNonce")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<int>("RegistryType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Server")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("VaultId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppId");
|
|
|
|
b.HasIndex("KubernetesClusterId");
|
|
|
|
b.HasIndex("VaultId");
|
|
|
|
b.ToTable("DockerRegistryCredentials");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Environment", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Environments");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ExternalRoute", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClusterIssuerName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("ComponentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GatewayName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GatewayNamespace")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Hostname")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool?>("IsReachable")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("LastHealthCheckAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("LastStatusCode")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("PathPrefix")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ServiceName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ServicePort")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TlsCertificate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TlsMode")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TlsPrivateKey")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
b.ToTable("ExternalRoutes");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ExternalRouteHealthHistory", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CheckedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsReachable")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("ResponseMs")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("RouteId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("StatusCode")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RouteId", "CheckedAt");
|
|
|
|
b.ToTable("ExternalRouteHealthHistories");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.GitKnownHost", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Fingerprint")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("GitRepositoryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Hostname")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KeyType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("TrustedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("GitRepositoryId");
|
|
|
|
b.HasIndex("TenantId", "Hostname")
|
|
.IsUnique();
|
|
|
|
b.ToTable("GitKnownHosts");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.GitRepository", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AuthType")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CustomerGitCredentialId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DefaultBranch")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("main");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Url")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CustomerGitCredentialId");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("GitRepositories");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Group", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Groups");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.GroupMembership", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("GroupId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("JoinedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "GroupId");
|
|
|
|
b.HasIndex("GroupId");
|
|
|
|
b.ToTable("GroupMemberships");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.HarborComponentConfig", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AdminUsername")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("ClusterComponentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CnpgDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RegistryUrl")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClusterComponentId");
|
|
|
|
b.HasIndex("CnpgDatabaseId");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.ToTable("HarborComponentConfigs");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.HarborProject", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("HarborComponentConfigId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("LinkedAppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProjectName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LinkedAppId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.HasIndex("HarborComponentConfigId", "ProjectName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("HarborProjects");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.IncidentNote", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Author")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Content")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("IncidentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IncidentId");
|
|
|
|
b.ToTable("IncidentNotes");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakBackup", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("CompletedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("KeycloakRealmId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ObjectKey")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RealmName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("SizeBytes")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid?>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("KeycloakRealmId");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.ToTable("KeycloakBackups");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakComponentConfig", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AdminUrl")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AdminUsername")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ClusterComponentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CnpgDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("RegisteredPostgresDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClusterComponentId");
|
|
|
|
b.HasIndex("CnpgDatabaseId");
|
|
|
|
b.HasIndex("RegisteredPostgresDatabaseId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.ToTable("KeycloakComponentConfigs");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakRealm", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AccountTheme")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("KeycloakComponentConfigId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("KeycloakThemeId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("LinkedAppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LoginTheme")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RealmName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("KeycloakThemeId");
|
|
|
|
b.HasIndex("LinkedAppId");
|
|
|
|
b.HasIndex("KeycloakComponentConfigId", "RealmName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("KeycloakRealms");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakTheme", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AccountTheme")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("KeycloakComponentConfigId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LoginTheme")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("KeycloakComponentConfigId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("KeycloakThemes");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KubernetesCluster", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ApiServerUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ContextName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("EnvironmentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Kubeconfig")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("EnvironmentId");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("KubernetesClusters");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MaintenanceWindow", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("EndsAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("StartsAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClusterId");
|
|
|
|
b.HasIndex("StartsAt");
|
|
|
|
b.HasIndex("TenantId", "StartsAt");
|
|
|
|
b.ToTable("MaintenanceWindows");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MessagingBinding", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("AppDeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ExchangeName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesSecretName")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("LastSyncedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("QueueName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("RabbitMQClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("SyncEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Vhost")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppDeploymentId");
|
|
|
|
b.HasIndex("RabbitMQClusterId");
|
|
|
|
b.ToTable("MessagingBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoBackup", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("CompletedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("MongoClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("SizeBytes")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("StartedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MongoClusterId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MongoBackups");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoCluster", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("BackupSchedule")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CpuLimit")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CpuRequest")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ExternalUri")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsExternal")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("KubernetesClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MaxBackups")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(20);
|
|
|
|
b.Property<int>("Members")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("MemoryLimit")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("MemoryRequest")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("MongoVersion")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RetentionDays")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid?>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StorageSize")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.HasIndex("KubernetesClusterId", "Name", "Namespace")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MongoClusters");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoDatabase", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("MongoClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Owner")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MongoClusterId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MongoDatabases");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.NotificationChannel", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ConfigurationJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SeverityFilter")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("NotificationChannels");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.NotificationDelivery", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("ChannelId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Error")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("IncidentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsFiring")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("SentAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Success")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ChannelId");
|
|
|
|
b.HasIndex("IncidentId", "ChannelId", "IsFiring");
|
|
|
|
b.ToTable("NotificationDeliveries");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.OpenStackConnection", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AuthUrl")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProjectDomainName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProjectId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProjectName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Region")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserDomainName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.ToTable("OpenStackConnections");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RabbitMQBackup", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClusterName")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("CompletedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ObjectKey")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("RabbitMQClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("SizeBytes")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid?>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RabbitMQClusterId");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.ToTable("RabbitMQBackups");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RabbitMQCluster", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("BackupSchedule")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("KubernetesClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MaxBackups")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(10);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RabbitMQVersion")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Replicas")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("StorageClass")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StorageSize")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.HasIndex("KubernetesClusterId", "Name", "Namespace")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RabbitMQClusters");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RedisCluster", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ClusterSize")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("KubernetesClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LastError")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("PersistenceEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RedisVersion")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("StorageClass")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StorageSize")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.HasIndex("KubernetesClusterId", "Name", "Namespace")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RedisClusters");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresDatabase", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Owner")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("RegisteredPostgresInstanceId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RegisteredPostgresInstanceId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RegisteredPostgresDatabases");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresDump", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("RegisteredPostgresDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("S3Key")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("SizeBytes")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RegisteredPostgresDatabaseId");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.ToTable("RegisteredPostgresDumps");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresInstance", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AdminPodName")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AdminUsername")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("KubernetesClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Namespace")
|
|
.IsRequired()
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Notes")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Port")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ServiceName")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("KubernetesClusterId");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RegisteredPostgresInstances");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.SecretVault", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<byte[]>("EncryptedDataKey")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<byte[]>("Nonce")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("SecretVaults");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.SlaTarget", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CustomerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MeasurementWindowDays")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<double>("TargetPercent")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppId");
|
|
|
|
b.HasIndex("CustomerId");
|
|
|
|
b.HasIndex("TenantId", "CustomerId", "AppId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("SlaTargets");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.StorageBinding", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("AppDeploymentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ComponentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesSecretName")
|
|
.IsRequired()
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("LastSyncedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("SyncEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppDeploymentId");
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.ToTable("StorageBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.StorageLink", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("BucketName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ComponentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Endpoint")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("EnvironmentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Notes")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("OpenStackConnectionId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Provider")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Region")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
b.HasIndex("EnvironmentId");
|
|
|
|
b.HasIndex("OpenStackConnectionId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.ToTable("StorageLinks");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Tenant", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Slug")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Tenants");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.TenantMembership", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("JoinedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "TenantId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.ToTable("TenantMemberships");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.TenantRole", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("TenantRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VaultSecret", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("AppId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CnpgClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CnpgDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ComponentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CustomerGitCredentialId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<byte[]>("EncryptedValue")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<Guid?>("GitRepositoryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("KubernetesClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesNamespace")
|
|
.HasMaxLength(63)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("KubernetesSecretName")
|
|
.HasMaxLength(253)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("MongoClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("MongoDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<byte[]>("Nonce")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<Guid?>("OpenStackConnectionId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("RabbitMQClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("RedisClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("RegisteredPostgresDatabaseId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("StorageLinkId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("SyncToKubernetes")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("VaultId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("VpnRemoteEndpointId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AppId");
|
|
|
|
b.HasIndex("CnpgClusterId");
|
|
|
|
b.HasIndex("CnpgDatabaseId");
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
b.HasIndex("CustomerGitCredentialId");
|
|
|
|
b.HasIndex("GitRepositoryId");
|
|
|
|
b.HasIndex("KubernetesClusterId");
|
|
|
|
b.HasIndex("MongoClusterId");
|
|
|
|
b.HasIndex("MongoDatabaseId");
|
|
|
|
b.HasIndex("RabbitMQClusterId");
|
|
|
|
b.HasIndex("RedisClusterId");
|
|
|
|
b.HasIndex("RegisteredPostgresDatabaseId");
|
|
|
|
b.HasIndex("StorageLinkId");
|
|
|
|
b.HasIndex("VpnRemoteEndpointId");
|
|
|
|
b.HasIndex("VaultId", "AppId", "Name")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("VaultId", "ComponentId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("VaultSecrets");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnLocalEndpoint", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("ClusterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ComponentId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PublicIp")
|
|
.HasMaxLength(45)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Role")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Subnets")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("VpnTunnelId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClusterId");
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
b.HasIndex("VpnTunnelId");
|
|
|
|
b.ToTable("VpnLocalEndpoints");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnRemoteEndpoint", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AuthMode")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("LastSeenAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LocalId")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PublicIp")
|
|
.IsRequired()
|
|
.HasMaxLength(45)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RemoteId")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Subnets")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("VpnTunnelId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VpnTunnelId");
|
|
|
|
b.ToTable("VpnRemoteEndpoints");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnTunnel", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ChildLifetime")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("DpdDelay")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("DpdTimeout")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("EspProposal")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("IkeLifetime")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("IkeProposal")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("IkeVersion")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("LastStatusCheckAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TunnelType")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("VpnTunnels");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedName")
|
|
.IsUnique()
|
|
.HasDatabaseName("RoleNameIndex");
|
|
|
|
b.ToTable("AspNetRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoleId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetRoleClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserLogins", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoleId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetUserRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("AspNetUserTokens", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AlertIncident", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "Cluster")
|
|
.WithMany()
|
|
.HasForeignKey("ClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Cluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.App", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Customer", "Customer")
|
|
.WithMany("Apps")
|
|
.HasForeignKey("CustomerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Customer");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppDeployment", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithMany("Deployments")
|
|
.HasForeignKey("AppId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "Cluster")
|
|
.WithMany()
|
|
.HasForeignKey("ClusterId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.Environment", "Environment")
|
|
.WithMany()
|
|
.HasForeignKey("EnvironmentId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.GitRepository", "GitRepository")
|
|
.WithMany("Deployments")
|
|
.HasForeignKey("GitRepositoryId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "ParentDeployment")
|
|
.WithMany("ChildDeployments")
|
|
.HasForeignKey("ParentDeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.Navigation("App");
|
|
|
|
b.Navigation("Cluster");
|
|
|
|
b.Navigation("Environment");
|
|
|
|
b.Navigation("GitRepository");
|
|
|
|
b.Navigation("ParentDeployment");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppEnvironment", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithMany("AppEnvironments")
|
|
.HasForeignKey("AppId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.Environment", "Environment")
|
|
.WithMany("AppEnvironments")
|
|
.HasForeignKey("EnvironmentId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("App");
|
|
|
|
b.Navigation("Environment");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppNetworkPolicy", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithMany("NetworkPolicies")
|
|
.HasForeignKey("AppId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("App");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppQuota", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithOne("Quota")
|
|
.HasForeignKey("EntKube.Web.Data.AppQuota", "AppId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("App");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppRbacPolicy", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithOne("RbacPolicy")
|
|
.HasForeignKey("EntKube.Web.Data.AppRbacPolicy", "AppId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("App");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppRbacRule", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppRbacPolicy", "Policy")
|
|
.WithMany("Rules")
|
|
.HasForeignKey("AppRbacPolicyId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Policy");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AuditEvent", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "Deployment")
|
|
.WithMany()
|
|
.HasForeignKey("DeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.Navigation("Deployment");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CacheBinding", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "AppDeployment")
|
|
.WithMany("CacheBindings")
|
|
.HasForeignKey("AppDeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.RedisCluster", "RedisCluster")
|
|
.WithMany()
|
|
.HasForeignKey("RedisClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("AppDeployment");
|
|
|
|
b.Navigation("RedisCluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ClusterComponent", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "Cluster")
|
|
.WithMany("Components")
|
|
.HasForeignKey("ClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Cluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgBackup", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.CnpgCluster", "CnpgCluster")
|
|
.WithMany("Backups")
|
|
.HasForeignKey("CnpgClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("CnpgCluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgCluster", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "KubernetesCluster")
|
|
.WithMany()
|
|
.HasForeignKey("KubernetesClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("KubernetesCluster");
|
|
|
|
b.Navigation("StorageLink");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgDatabase", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.CnpgCluster", "CnpgCluster")
|
|
.WithMany("Databases")
|
|
.HasForeignKey("CnpgClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("CnpgCluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Customer", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("Customers")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CustomerAccess", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Customer", "Customer")
|
|
.WithMany()
|
|
.HasForeignKey("CustomerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.ApplicationUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Customer");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CustomerGitCredential", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Customer", "Customer")
|
|
.WithMany("GitCredentials")
|
|
.HasForeignKey("CustomerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Customer");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CustomerGitRepoPolicy", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Customer", "Customer")
|
|
.WithMany("GitRepoPolicies")
|
|
.HasForeignKey("CustomerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Customer");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DatabaseBinding", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "AppDeployment")
|
|
.WithMany("DatabaseBindings")
|
|
.HasForeignKey("AppDeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.CnpgDatabase", "CnpgDatabase")
|
|
.WithMany("DatabaseBindings")
|
|
.HasForeignKey("CnpgDatabaseId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.MongoDatabase", "MongoDatabase")
|
|
.WithMany("DatabaseBindings")
|
|
.HasForeignKey("MongoDatabaseId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.RegisteredPostgresDatabase", "RegisteredPostgresDatabase")
|
|
.WithMany("DatabaseBindings")
|
|
.HasForeignKey("RegisteredPostgresDatabaseId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.Navigation("AppDeployment");
|
|
|
|
b.Navigation("CnpgDatabase");
|
|
|
|
b.Navigation("MongoDatabase");
|
|
|
|
b.Navigation("RegisteredPostgresDatabase");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DeploymentHealthSnapshot", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "Deployment")
|
|
.WithMany()
|
|
.HasForeignKey("DeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Deployment");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DeploymentManifest", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "Deployment")
|
|
.WithMany("Manifests")
|
|
.HasForeignKey("DeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Deployment");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DeploymentResource", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "Deployment")
|
|
.WithMany("Resources")
|
|
.HasForeignKey("DeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.DeploymentResource", "ParentResource")
|
|
.WithMany("ChildResources")
|
|
.HasForeignKey("ParentResourceId")
|
|
.OnDelete(DeleteBehavior.Restrict);
|
|
|
|
b.Navigation("Deployment");
|
|
|
|
b.Navigation("ParentResource");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DockerRegistryCredential", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithMany()
|
|
.HasForeignKey("AppId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "KubernetesCluster")
|
|
.WithMany()
|
|
.HasForeignKey("KubernetesClusterId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.SecretVault", "Vault")
|
|
.WithMany()
|
|
.HasForeignKey("VaultId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("App");
|
|
|
|
b.Navigation("KubernetesCluster");
|
|
|
|
b.Navigation("Vault");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Environment", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("Environments")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ExternalRoute", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ClusterComponent", "Component")
|
|
.WithMany("ExternalRoutes")
|
|
.HasForeignKey("ComponentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Component");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ExternalRouteHealthHistory", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ExternalRoute", "Route")
|
|
.WithMany()
|
|
.HasForeignKey("RouteId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Route");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.GitKnownHost", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.GitRepository", null)
|
|
.WithMany("KnownHosts")
|
|
.HasForeignKey("GitRepositoryId");
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("GitKnownHosts")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.GitRepository", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.CustomerGitCredential", "CustomerGitCredential")
|
|
.WithMany()
|
|
.HasForeignKey("CustomerGitCredentialId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("GitRepositories")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("CustomerGitCredential");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Group", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("Groups")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.GroupMembership", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Group", "Group")
|
|
.WithMany("Memberships")
|
|
.HasForeignKey("GroupId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.ApplicationUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Group");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.HarborComponentConfig", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ClusterComponent", "ClusterComponent")
|
|
.WithMany()
|
|
.HasForeignKey("ClusterComponentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.CnpgDatabase", "CnpgDatabase")
|
|
.WithMany()
|
|
.HasForeignKey("CnpgDatabaseId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ClusterComponent");
|
|
|
|
b.Navigation("CnpgDatabase");
|
|
|
|
b.Navigation("StorageLink");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.HarborProject", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.HarborComponentConfig", "HarborComponentConfig")
|
|
.WithMany()
|
|
.HasForeignKey("HarborComponentConfigId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.App", "LinkedApp")
|
|
.WithMany()
|
|
.HasForeignKey("LinkedAppId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("HarborComponentConfig");
|
|
|
|
b.Navigation("LinkedApp");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.IncidentNote", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AlertIncident", "Incident")
|
|
.WithMany("Notes")
|
|
.HasForeignKey("IncidentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Incident");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakBackup", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KeycloakRealm", "Realm")
|
|
.WithMany("Backups")
|
|
.HasForeignKey("KeycloakRealmId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.Navigation("Realm");
|
|
|
|
b.Navigation("StorageLink");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakComponentConfig", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ClusterComponent", "ClusterComponent")
|
|
.WithMany()
|
|
.HasForeignKey("ClusterComponentId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.CnpgDatabase", "CnpgDatabase")
|
|
.WithMany()
|
|
.HasForeignKey("CnpgDatabaseId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.RegisteredPostgresDatabase", "RegisteredPostgresDatabase")
|
|
.WithMany()
|
|
.HasForeignKey("RegisteredPostgresDatabaseId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ClusterComponent");
|
|
|
|
b.Navigation("CnpgDatabase");
|
|
|
|
b.Navigation("RegisteredPostgresDatabase");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakRealm", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KeycloakComponentConfig", "ComponentConfig")
|
|
.WithMany("Realms")
|
|
.HasForeignKey("KeycloakComponentConfigId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.KeycloakTheme", "Theme")
|
|
.WithMany("Realms")
|
|
.HasForeignKey("KeycloakThemeId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.App", "LinkedApp")
|
|
.WithMany()
|
|
.HasForeignKey("LinkedAppId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.Navigation("ComponentConfig");
|
|
|
|
b.Navigation("LinkedApp");
|
|
|
|
b.Navigation("Theme");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakTheme", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KeycloakComponentConfig", "ComponentConfig")
|
|
.WithMany()
|
|
.HasForeignKey("KeycloakComponentConfigId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ComponentConfig");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KubernetesCluster", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Environment", "Environment")
|
|
.WithMany("KubernetesClusters")
|
|
.HasForeignKey("EnvironmentId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("KubernetesClusters")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Environment");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MaintenanceWindow", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "Cluster")
|
|
.WithMany()
|
|
.HasForeignKey("ClusterId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Cluster");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MessagingBinding", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "AppDeployment")
|
|
.WithMany()
|
|
.HasForeignKey("AppDeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.RabbitMQCluster", "Cluster")
|
|
.WithMany()
|
|
.HasForeignKey("RabbitMQClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("AppDeployment");
|
|
|
|
b.Navigation("Cluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoBackup", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.MongoCluster", "MongoCluster")
|
|
.WithMany("Backups")
|
|
.HasForeignKey("MongoClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("MongoCluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoCluster", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "KubernetesCluster")
|
|
.WithMany()
|
|
.HasForeignKey("KubernetesClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("KubernetesCluster");
|
|
|
|
b.Navigation("StorageLink");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoDatabase", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.MongoCluster", "MongoCluster")
|
|
.WithMany("Databases")
|
|
.HasForeignKey("MongoClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("MongoCluster");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.NotificationChannel", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.NotificationDelivery", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.NotificationChannel", "Channel")
|
|
.WithMany("Deliveries")
|
|
.HasForeignKey("ChannelId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.AlertIncident", "Incident")
|
|
.WithMany("Deliveries")
|
|
.HasForeignKey("IncidentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Channel");
|
|
|
|
b.Navigation("Incident");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.OpenStackConnection", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RabbitMQBackup", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.RabbitMQCluster", "Cluster")
|
|
.WithMany("Backups")
|
|
.HasForeignKey("RabbitMQClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.Navigation("Cluster");
|
|
|
|
b.Navigation("StorageLink");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RabbitMQCluster", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "KubernetesCluster")
|
|
.WithMany()
|
|
.HasForeignKey("KubernetesClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("KubernetesCluster");
|
|
|
|
b.Navigation("StorageLink");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RedisCluster", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "KubernetesCluster")
|
|
.WithMany()
|
|
.HasForeignKey("KubernetesClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("KubernetesCluster");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresDatabase", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.RegisteredPostgresInstance", "RegisteredPostgresInstance")
|
|
.WithMany("Databases")
|
|
.HasForeignKey("RegisteredPostgresInstanceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("RegisteredPostgresInstance");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresDump", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.RegisteredPostgresDatabase", "RegisteredPostgresDatabase")
|
|
.WithMany()
|
|
.HasForeignKey("RegisteredPostgresDatabaseId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("RegisteredPostgresDatabase");
|
|
|
|
b.Navigation("StorageLink");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresInstance", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "KubernetesCluster")
|
|
.WithMany()
|
|
.HasForeignKey("KubernetesClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("KubernetesCluster");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.SecretVault", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithOne("Vault")
|
|
.HasForeignKey("EntKube.Web.Data.SecretVault", "TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.SlaTarget", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithMany()
|
|
.HasForeignKey("AppId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.Customer", "Customer")
|
|
.WithMany()
|
|
.HasForeignKey("CustomerId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("App");
|
|
|
|
b.Navigation("Customer");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.StorageBinding", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.AppDeployment", "AppDeployment")
|
|
.WithMany("StorageBindings")
|
|
.HasForeignKey("AppDeploymentId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.ClusterComponent", "Component")
|
|
.WithMany("StorageBindings")
|
|
.HasForeignKey("ComponentId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany("StorageBindings")
|
|
.HasForeignKey("StorageLinkId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("AppDeployment");
|
|
|
|
b.Navigation("Component");
|
|
|
|
b.Navigation("StorageLink");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.StorageLink", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ClusterComponent", "Component")
|
|
.WithMany()
|
|
.HasForeignKey("ComponentId");
|
|
|
|
b.HasOne("EntKube.Web.Data.Environment", "Environment")
|
|
.WithMany()
|
|
.HasForeignKey("EnvironmentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.OpenStackConnection", "OpenStackConnection")
|
|
.WithMany("StorageLinks")
|
|
.HasForeignKey("OpenStackConnectionId");
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Component");
|
|
|
|
b.Navigation("Environment");
|
|
|
|
b.Navigation("OpenStackConnection");
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.TenantMembership", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.TenantRole", "Role")
|
|
.WithMany("Memberships")
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("Memberships")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.ApplicationUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Role");
|
|
|
|
b.Navigation("Tenant");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.TenantRole", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany("Roles")
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VaultSecret", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.App", "App")
|
|
.WithMany("Secrets")
|
|
.HasForeignKey("AppId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.CnpgCluster", "CnpgCluster")
|
|
.WithMany()
|
|
.HasForeignKey("CnpgClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.CnpgDatabase", "CnpgDatabase")
|
|
.WithMany()
|
|
.HasForeignKey("CnpgDatabaseId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.ClusterComponent", "Component")
|
|
.WithMany("Secrets")
|
|
.HasForeignKey("ComponentId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.CustomerGitCredential", "CustomerGitCredential")
|
|
.WithMany()
|
|
.HasForeignKey("CustomerGitCredentialId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.GitRepository", "GitRepository")
|
|
.WithMany()
|
|
.HasForeignKey("GitRepositoryId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "KubernetesCluster")
|
|
.WithMany()
|
|
.HasForeignKey("KubernetesClusterId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.MongoCluster", "MongoCluster")
|
|
.WithMany()
|
|
.HasForeignKey("MongoClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.MongoDatabase", "MongoDatabase")
|
|
.WithMany()
|
|
.HasForeignKey("MongoDatabaseId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.RabbitMQCluster", "RabbitMQCluster")
|
|
.WithMany()
|
|
.HasForeignKey("RabbitMQClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.RedisCluster", "RedisCluster")
|
|
.WithMany()
|
|
.HasForeignKey("RedisClusterId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.RegisteredPostgresDatabase", "RegisteredPostgresDatabase")
|
|
.WithMany()
|
|
.HasForeignKey("RegisteredPostgresDatabaseId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("EntKube.Web.Data.StorageLink", "StorageLink")
|
|
.WithMany()
|
|
.HasForeignKey("StorageLinkId");
|
|
|
|
b.HasOne("EntKube.Web.Data.SecretVault", "Vault")
|
|
.WithMany("Secrets")
|
|
.HasForeignKey("VaultId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.VpnRemoteEndpoint", "VpnRemoteEndpoint")
|
|
.WithMany("Secrets")
|
|
.HasForeignKey("VpnRemoteEndpointId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.Navigation("App");
|
|
|
|
b.Navigation("CnpgCluster");
|
|
|
|
b.Navigation("CnpgDatabase");
|
|
|
|
b.Navigation("Component");
|
|
|
|
b.Navigation("CustomerGitCredential");
|
|
|
|
b.Navigation("GitRepository");
|
|
|
|
b.Navigation("KubernetesCluster");
|
|
|
|
b.Navigation("MongoCluster");
|
|
|
|
b.Navigation("MongoDatabase");
|
|
|
|
b.Navigation("RabbitMQCluster");
|
|
|
|
b.Navigation("RedisCluster");
|
|
|
|
b.Navigation("RegisteredPostgresDatabase");
|
|
|
|
b.Navigation("StorageLink");
|
|
|
|
b.Navigation("Vault");
|
|
|
|
b.Navigation("VpnRemoteEndpoint");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnLocalEndpoint", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.KubernetesCluster", "Cluster")
|
|
.WithMany()
|
|
.HasForeignKey("ClusterId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.ClusterComponent", "Component")
|
|
.WithMany()
|
|
.HasForeignKey("ComponentId")
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
b.HasOne("EntKube.Web.Data.VpnTunnel", "Tunnel")
|
|
.WithMany("LocalEndpoints")
|
|
.HasForeignKey("VpnTunnelId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Cluster");
|
|
|
|
b.Navigation("Component");
|
|
|
|
b.Navigation("Tunnel");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnRemoteEndpoint", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.VpnTunnel", "Tunnel")
|
|
.WithMany("RemoteEndpoints")
|
|
.HasForeignKey("VpnTunnelId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tunnel");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnTunnel", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.Tenant", "Tenant")
|
|
.WithMany()
|
|
.HasForeignKey("TenantId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Tenant");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntKube.Web.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.HasOne("EntKube.Web.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AlertIncident", b =>
|
|
{
|
|
b.Navigation("Deliveries");
|
|
|
|
b.Navigation("Notes");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.App", b =>
|
|
{
|
|
b.Navigation("AppEnvironments");
|
|
|
|
b.Navigation("Deployments");
|
|
|
|
b.Navigation("NetworkPolicies");
|
|
|
|
b.Navigation("Quota");
|
|
|
|
b.Navigation("RbacPolicy");
|
|
|
|
b.Navigation("Secrets");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppDeployment", b =>
|
|
{
|
|
b.Navigation("CacheBindings");
|
|
|
|
b.Navigation("ChildDeployments");
|
|
|
|
b.Navigation("DatabaseBindings");
|
|
|
|
b.Navigation("Manifests");
|
|
|
|
b.Navigation("Resources");
|
|
|
|
b.Navigation("StorageBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.AppRbacPolicy", b =>
|
|
{
|
|
b.Navigation("Rules");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.ClusterComponent", b =>
|
|
{
|
|
b.Navigation("ExternalRoutes");
|
|
|
|
b.Navigation("Secrets");
|
|
|
|
b.Navigation("StorageBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgCluster", b =>
|
|
{
|
|
b.Navigation("Backups");
|
|
|
|
b.Navigation("Databases");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.CnpgDatabase", b =>
|
|
{
|
|
b.Navigation("DatabaseBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Customer", b =>
|
|
{
|
|
b.Navigation("Apps");
|
|
|
|
b.Navigation("GitCredentials");
|
|
|
|
b.Navigation("GitRepoPolicies");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.DeploymentResource", b =>
|
|
{
|
|
b.Navigation("ChildResources");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Environment", b =>
|
|
{
|
|
b.Navigation("AppEnvironments");
|
|
|
|
b.Navigation("KubernetesClusters");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.GitRepository", b =>
|
|
{
|
|
b.Navigation("Deployments");
|
|
|
|
b.Navigation("KnownHosts");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Group", b =>
|
|
{
|
|
b.Navigation("Memberships");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakComponentConfig", b =>
|
|
{
|
|
b.Navigation("Realms");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakRealm", b =>
|
|
{
|
|
b.Navigation("Backups");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KeycloakTheme", b =>
|
|
{
|
|
b.Navigation("Realms");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.KubernetesCluster", b =>
|
|
{
|
|
b.Navigation("Components");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoCluster", b =>
|
|
{
|
|
b.Navigation("Backups");
|
|
|
|
b.Navigation("Databases");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.MongoDatabase", b =>
|
|
{
|
|
b.Navigation("DatabaseBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.NotificationChannel", b =>
|
|
{
|
|
b.Navigation("Deliveries");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.OpenStackConnection", b =>
|
|
{
|
|
b.Navigation("StorageLinks");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RabbitMQCluster", b =>
|
|
{
|
|
b.Navigation("Backups");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresDatabase", b =>
|
|
{
|
|
b.Navigation("DatabaseBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.RegisteredPostgresInstance", b =>
|
|
{
|
|
b.Navigation("Databases");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.SecretVault", b =>
|
|
{
|
|
b.Navigation("Secrets");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.StorageLink", b =>
|
|
{
|
|
b.Navigation("StorageBindings");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.Tenant", b =>
|
|
{
|
|
b.Navigation("Customers");
|
|
|
|
b.Navigation("Environments");
|
|
|
|
b.Navigation("GitKnownHosts");
|
|
|
|
b.Navigation("GitRepositories");
|
|
|
|
b.Navigation("Groups");
|
|
|
|
b.Navigation("KubernetesClusters");
|
|
|
|
b.Navigation("Memberships");
|
|
|
|
b.Navigation("Roles");
|
|
|
|
b.Navigation("Vault");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.TenantRole", b =>
|
|
{
|
|
b.Navigation("Memberships");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnRemoteEndpoint", b =>
|
|
{
|
|
b.Navigation("Secrets");
|
|
});
|
|
|
|
modelBuilder.Entity("EntKube.Web.Data.VpnTunnel", b =>
|
|
{
|
|
b.Navigation("LocalEndpoints");
|
|
|
|
b.Navigation("RemoteEndpoints");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|