//
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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AcknowledgedAt")
.HasColumnType("TEXT");
b.Property("AcknowledgedBy")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("AlertName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("ClusterId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("Description")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("TEXT");
b.Property("EndsAt")
.HasColumnType("TEXT");
b.Property("Fingerprint")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property("LabelsJson")
.IsRequired()
.HasColumnType("TEXT");
b.Property("ResolvedAt")
.HasColumnType("TEXT");
b.Property("Severity")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("StartsAt")
.HasColumnType("TEXT");
b.Property("Status")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("Summary")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("CustomerId")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("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("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("GitAutoSync")
.HasColumnType("INTEGER");
b.Property("GitLastSyncedAt")
.HasColumnType("TEXT");
b.Property("GitLastSyncedCommit")
.HasMaxLength(40)
.HasColumnType("TEXT");
b.Property("GitPath")
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("GitRepositoryId")
.HasColumnType("TEXT");
b.Property("GitRevision")
.HasMaxLength(200)
.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("ParentDeploymentId")
.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("GitRepositoryId");
b.HasIndex("ParentDeploymentId");
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.AppNetworkPolicy", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AllowFromNamespace")
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("AppId")
.HasColumnType("TEXT");
b.Property("CustomYaml")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(63)
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AppId")
.HasColumnType("TEXT");
b.Property("CpuLimit")
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("CpuRequest")
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("MaxPods")
.HasColumnType("INTEGER");
b.Property("MaxPvcs")
.HasColumnType("INTEGER");
b.Property("MemoryLimit")
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("MemoryRequest")
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("UpdatedAt")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("AppId")
.IsUnique();
b.ToTable("AppQuotas");
});
modelBuilder.Entity("EntKube.Web.Data.AppRbacPolicy", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AppId")
.HasColumnType("TEXT");
b.Property("AutoMountToken")
.HasColumnType("INTEGER");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("ApiGroups")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("AppRbacPolicyId")
.HasColumnType("TEXT");
b.Property("Resources")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("Verbs")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("AppRbacPolicyId");
b.ToTable("AppRbacRules");
});
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.CacheBinding", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AppDeploymentId")
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("KubernetesSecretName")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("LastSyncedAt")
.HasColumnType("TEXT");
b.Property("RedisClusterId")
.HasColumnType("TEXT");
b.Property("SyncEnabled")
.HasColumnType("INTEGER");
b.Property("TenantId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("AppDeploymentId");
b.HasIndex("RedisClusterId");
b.ToTable("CacheBindings");
});
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("IsExternal")
.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.CustomerGitCredential", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("AuthType")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("CustomerId")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("CustomerId")
.HasColumnType("TEXT");
b.Property("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("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.DeploymentHealthSnapshot", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("DeploymentId")
.HasColumnType("TEXT");
b.Property("HealthStatus")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("ReadyReplicas")
.HasColumnType("INTEGER");
b.Property("SnapshotAt")
.HasColumnType("TEXT");
b.Property("SyncStatus")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property("TotalReplicas")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("DeploymentId", "SnapshotAt");
b.ToTable("DeploymentHealthSnapshots");
});
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("SourceFile")
.HasColumnType("TEXT");
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.ExternalRouteHealthHistory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CheckedAt")
.HasColumnType("TEXT");
b.Property("IsReachable")
.HasColumnType("INTEGER");
b.Property("ResponseMs")
.HasColumnType("INTEGER");
b.Property("RouteId")
.HasColumnType("TEXT");
b.Property("StatusCode")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("RouteId", "CheckedAt");
b.ToTable("ExternalRouteHealthHistories");
});
modelBuilder.Entity("EntKube.Web.Data.GitKnownHost", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("Fingerprint")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("GitRepositoryId")
.HasColumnType("TEXT");
b.Property("Hostname")
.IsRequired()
.HasMaxLength(253)
.HasColumnType("TEXT");
b.Property("KeyType")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("TEXT");
b.Property("TenantId")
.HasColumnType("TEXT");
b.Property("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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property