// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using watcher_monitoring.Data; #nullable disable namespace watcher_monitoring.Migrations { [DbContext(typeof(WatcherDbContext))] partial class WatcherDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.6"); modelBuilder.Entity("watcher_monitoring.Models.ApiKey", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("Description") .HasColumnType("TEXT"); b.Property("ExpiresAt") .HasColumnType("TEXT"); b.Property("IsActive") .HasColumnType("INTEGER"); b.Property("Key") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("LastUsedAt") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("ApiKeys"); }); modelBuilder.Entity("watcher_monitoring.Models.Container", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ContainerName") .IsRequired() .HasMaxLength(50) .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Containers"); }); modelBuilder.Entity("watcher_monitoring.Models.Server", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CpuCores") .HasColumnType("INTEGER"); b.Property("CpuType") .HasColumnType("TEXT"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("DiskSpace") .HasColumnType("TEXT"); b.Property("GpuType") .HasColumnType("TEXT"); b.Property("IPAddress") .IsRequired() .HasColumnType("TEXT"); b.Property("IsOnline") .HasColumnType("INTEGER"); b.Property("IsVerified") .HasColumnType("INTEGER"); b.Property("LastSeen") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("RamSize") .HasColumnType("REAL"); b.HasKey("Id"); b.ToTable("Servers"); }); modelBuilder.Entity("watcher_monitoring.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("Email") .IsRequired() .HasColumnType("TEXT"); b.Property("IsActive") .HasColumnType("INTEGER"); b.Property("LastLogin") .HasColumnType("TEXT"); b.Property("Password") .IsRequired() .HasColumnType("TEXT"); b.Property("Username") .IsRequired() .HasMaxLength(50) .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Users"); }); modelBuilder.Entity("watcher_monitoring.Models.ApiKey", b => { b.HasOne("watcher_monitoring.Models.User", "User") .WithMany("ApiKeys") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("watcher_monitoring.Models.User", b => { b.Navigation("ApiKeys"); }); #pragma warning restore 612, 618 } } }