112 lines
3.5 KiB
C#
112 lines
3.5 KiB
C#
// <auto-generated />
|
|
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.Container", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ContainerName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Containers");
|
|
});
|
|
|
|
modelBuilder.Entity("watcher_monitoring.Models.Server", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CpuCores")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CpuType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DiskSpace")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GpuType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("IPAddress")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsOnline")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsVerified")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("LastSeen")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<double>("RamSize")
|
|
.HasColumnType("REAL");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Servers");
|
|
});
|
|
|
|
modelBuilder.Entity("watcher_monitoring.Models.User", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("LastLogin")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|