//
using System;
using EntKube.Web.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace EntKube.Web.Data.Migrations.Sqlite
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20260601160410_AddMongoClusterIsExternal")]
partial class AddMongoClusterIsExternal
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
modelBuilder.Entity("EntKube.Web.Data.App", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("CustomerId")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("CustomerId", "Name")
.IsUnique();
b.ToTable("Apps");
});
modelBuilder.Entity("EntKube.Web.Data.AppDeployment", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AppId")
.HasColumnType("TEXT");
b.Property("ClusterId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("EnvironmentId")
.HasColumnType("TEXT");
b.Property("HealthStatus")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("HelmChartName")
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("HelmChartVersion")
.HasMaxLength(50)
.HasColumnType("TEXT");
b.Property("HelmRepoUrl")
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("HelmValues")
.HasColumnType("TEXT");
b.Property("LastSyncedAt")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("Namespace")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("StatusMessage")
.HasColumnType("TEXT");
b.Property("SyncStatus")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("Type")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("ClusterId");
b.HasIndex("EnvironmentId");
b.HasIndex("AppId", "Name")
.IsUnique();
b.ToTable("AppDeployments");
});
modelBuilder.Entity("EntKube.Web.Data.AppEnvironment", b =>
{
b.Property("AppId")
.HasColumnType("TEXT");
b.Property("EnvironmentId")
.HasColumnType("TEXT");
b.Property("LinkedAt")
.HasColumnType("TEXT");
b.HasKey("AppId", "EnvironmentId");
b.HasIndex("EnvironmentId");
b.ToTable("AppEnvironments");
});
modelBuilder.Entity("EntKube.Web.Data.ApplicationUser", b =>
{
b.Property("Id")
.HasColumnType("TEXT");
b.Property("AccessFailedCount")
.HasColumnType("INTEGER");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("TEXT");
b.Property("Email")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("EmailConfirmed")
.HasColumnType("INTEGER");
b.Property("LockoutEnabled")
.HasColumnType("INTEGER");
b.Property("LockoutEnd")
.HasColumnType("TEXT");
b.Property("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("PasswordHash")
.HasColumnType("TEXT");
b.Property("PhoneNumber")
.HasColumnType("TEXT");
b.Property("PhoneNumberConfirmed")
.HasColumnType("INTEGER");
b.Property("SecurityStamp")
.HasColumnType("TEXT");
b.Property("TwoFactorEnabled")
.HasColumnType("INTEGER");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("Action")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("DeploymentId")
.HasColumnType("TEXT");
b.Property("Details")
.HasMaxLength(1000)
.HasColumnType("TEXT");
b.Property("OccurredAt")
.HasColumnType("TEXT");
b.Property("PerformedBy")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("ResourceKind")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("ResourceName")
.HasMaxLength(253)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("DeploymentId");
b.HasIndex("OccurredAt");
b.ToTable("AuditEvents");
});
modelBuilder.Entity("EntKube.Web.Data.ClusterComponent", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("ClusterId")
.HasColumnType("TEXT");
b.Property("ComponentType")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("TEXT");
b.Property("Configuration")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("HelmChartName")
.HasColumnType("TEXT");
b.Property("HelmChartVersion")
.HasColumnType("TEXT");
b.Property("HelmRepoUrl")
.HasColumnType("TEXT");
b.Property("HelmValues")
.HasColumnType("TEXT");
b.Property("InstalledAt")
.HasColumnType("TEXT");
b.Property("LastError")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("Namespace")
.HasColumnType("TEXT");
b.Property("ReleaseName")
.HasColumnType("TEXT");
b.Property("Status")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("ClusterId", "Name")
.IsUnique();
b.ToTable("ClusterComponents");
});
modelBuilder.Entity("EntKube.Web.Data.CnpgBackup", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CnpgClusterId")
.HasColumnType("TEXT");
b.Property("CompletedAt")
.HasColumnType("TEXT");
b.Property("LastError")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("SizeBytes")
.HasColumnType("INTEGER");
b.Property("StartedAt")
.HasColumnType("TEXT");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("Type")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("CnpgClusterId", "Name")
.IsUnique();
b.ToTable("CnpgBackups");
});
modelBuilder.Entity("EntKube.Web.Data.CnpgCluster", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("BackupSchedule")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Instances")
.HasColumnType("INTEGER");
b.Property("KubernetesClusterId")
.HasColumnType("TEXT");
b.Property("LastError")
.HasColumnType("TEXT");
b.Property("MaxBackups")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(20);
b.Property("Name")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("Namespace")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("PostgresVersion")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("TEXT");
b.Property("RetentionDays")
.HasColumnType("INTEGER");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("StorageLinkId")
.HasColumnType("TEXT");
b.Property("StorageSize")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CnpgClusterId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("Owner")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("Status")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("CnpgClusterId", "Name")
.IsUnique();
b.ToTable("CnpgDatabases");
});
modelBuilder.Entity("EntKube.Web.Data.Customer", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("TenantId", "Name")
.IsUnique();
b.ToTable("Customers");
});
modelBuilder.Entity("EntKube.Web.Data.CustomerAccess", b =>
{
b.Property("UserId")
.HasColumnType("TEXT");
b.Property("CustomerId")
.HasColumnType("TEXT");
b.Property("GrantedAt")
.HasColumnType("TEXT");
b.Property("Role")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.HasKey("UserId", "CustomerId");
b.HasIndex("CustomerId");
b.ToTable("CustomerAccesses");
});
modelBuilder.Entity("EntKube.Web.Data.DatabaseBinding", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AppDeploymentId")
.HasColumnType("TEXT");
b.Property("CnpgDatabaseId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("KubernetesSecretName")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("LastSyncedAt")
.HasColumnType("TEXT");
b.Property("MongoDatabaseId")
.HasColumnType("TEXT");
b.Property("RegisteredPostgresDatabaseId")
.HasColumnType("TEXT");
b.Property("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.DeploymentManifest", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("DeploymentId")
.HasColumnType("TEXT");
b.Property("Kind")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("SortOrder")
.HasColumnType("INTEGER");
b.Property("UpdatedAt")
.HasColumnType("TEXT");
b.Property("YamlContent")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("DeploymentId");
b.ToTable("DeploymentManifests");
});
modelBuilder.Entity("EntKube.Web.Data.DeploymentResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("DeploymentId")
.HasColumnType("TEXT");
b.Property("Group")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("HealthStatus")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("Kind")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("LastUpdatedAt")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("Namespace")
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("ParentResourceId")
.HasColumnType("TEXT");
b.Property("StatusMessage")
.HasColumnType("TEXT");
b.Property("SyncStatus")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AppId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Email")
.HasMaxLength(254)
.HasColumnType("TEXT");
b.Property("EncryptedPassword")
.IsRequired()
.HasColumnType("BLOB");
b.Property("KubernetesClusterId")
.HasColumnType("TEXT");
b.Property("KubernetesNamespace")
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("KubernetesSecretName")
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("PasswordNonce")
.IsRequired()
.HasColumnType("BLOB");
b.Property("RegistryType")
.HasColumnType("INTEGER");
b.Property("Server")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("UpdatedAt")
.HasColumnType("TEXT");
b.Property("Username")
.IsRequired()
.HasMaxLength(300)
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("TenantId", "Name")
.IsUnique();
b.ToTable("Environments");
});
modelBuilder.Entity("EntKube.Web.Data.ExternalRoute", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("ClusterIssuerName")
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("ComponentId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("GatewayName")
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("GatewayNamespace")
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("Hostname")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("IsReachable")
.HasColumnType("INTEGER");
b.Property("LastHealthCheckAt")
.HasColumnType("TEXT");
b.Property("LastStatusCode")
.HasColumnType("INTEGER");
b.Property("PathPrefix")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("ServiceName")
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("ServicePort")
.HasColumnType("INTEGER");
b.Property("TlsCertificate")
.HasColumnType("TEXT");
b.Property("TlsMode")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("TlsPrivateKey")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("ComponentId");
b.ToTable("ExternalRoutes");
});
modelBuilder.Entity("EntKube.Web.Data.Group", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("TenantId", "Name")
.IsUnique();
b.ToTable("Groups");
});
modelBuilder.Entity("EntKube.Web.Data.GroupMembership", b =>
{
b.Property("UserId")
.HasColumnType("TEXT");
b.Property("GroupId")
.HasColumnType("TEXT");
b.Property("JoinedAt")
.HasColumnType("TEXT");
b.HasKey("UserId", "GroupId");
b.HasIndex("GroupId");
b.ToTable("GroupMemberships");
});
modelBuilder.Entity("EntKube.Web.Data.HarborComponentConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AdminUsername")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("ClusterComponentId")
.HasColumnType("TEXT");
b.Property("CnpgDatabaseId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("RegistryUrl")
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("StorageLinkId")
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("HarborComponentConfigId")
.HasColumnType("TEXT");
b.Property("LinkedAppId")
.HasColumnType("TEXT");
b.Property("ProjectName")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("TEXT");
b.Property("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.KeycloakBackup", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CompletedAt")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("KeycloakRealmId")
.HasColumnType("TEXT");
b.Property("LastError")
.HasColumnType("TEXT");
b.Property("ObjectKey")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("TEXT");
b.Property("RealmName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("SizeBytes")
.HasColumnType("INTEGER");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("StorageLinkId")
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("KeycloakRealmId");
b.HasIndex("StorageLinkId");
b.ToTable("KeycloakBackups");
});
modelBuilder.Entity("EntKube.Web.Data.KeycloakComponentConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AdminUrl")
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("AdminUsername")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("ClusterComponentId")
.HasColumnType("TEXT");
b.Property("CnpgDatabaseId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("DisplayName")
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("RegisteredPostgresDatabaseId")
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AccountTheme")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("Enabled")
.HasColumnType("INTEGER");
b.Property("KeycloakComponentConfigId")
.HasColumnType("TEXT");
b.Property("KeycloakThemeId")
.HasColumnType("TEXT");
b.Property("LinkedAppId")
.HasColumnType("TEXT");
b.Property("LoginTheme")
.HasColumnType("TEXT");
b.Property("RealmName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AccountTheme")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("KeycloakComponentConfigId")
.HasColumnType("TEXT");
b.Property("LoginTheme")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("KeycloakComponentConfigId", "Name")
.IsUnique();
b.ToTable("KeycloakThemes");
});
modelBuilder.Entity("EntKube.Web.Data.KubernetesCluster", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("ApiServerUrl")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("ContextName")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("EnvironmentId")
.HasColumnType("TEXT");
b.Property("Kubeconfig")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("EnvironmentId");
b.HasIndex("TenantId", "Name")
.IsUnique();
b.ToTable("KubernetesClusters");
});
modelBuilder.Entity("EntKube.Web.Data.MongoBackup", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CompletedAt")
.HasColumnType("TEXT");
b.Property("MongoClusterId")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("SizeBytes")
.HasColumnType("INTEGER");
b.Property("StartedAt")
.HasColumnType("TEXT");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("Type")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("MongoClusterId", "Name")
.IsUnique();
b.ToTable("MongoBackups");
});
modelBuilder.Entity("EntKube.Web.Data.MongoCluster", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("BackupSchedule")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("IsExternal")
.HasColumnType("INTEGER");
b.Property("KubernetesClusterId")
.HasColumnType("TEXT");
b.Property("LastError")
.HasColumnType("TEXT");
b.Property("MaxBackups")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(20);
b.Property("Members")
.HasColumnType("INTEGER");
b.Property("MongoVersion")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("Namespace")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("RetentionDays")
.HasColumnType("INTEGER");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("StorageLinkId")
.HasColumnType("TEXT");
b.Property("StorageSize")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property