Add statistics for remote.

This commit is contained in:
2019-12-04 18:29:58 +00:00
parent 9dacf48f5a
commit 13c3060737
7 changed files with 2583 additions and 30 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,52 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace DiscImageChef.Server.Migrations
{
public partial class RemoteStatistics : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable("RemoteApplications", table => new
{
Id = table.Column<int>().
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(nullable: true), Version = table.Column<string>(nullable: true),
Count = table.Column<long>()
}, constraints: table =>
{
table.PrimaryKey("PK_RemoteApplications", x => x.Id);
});
migrationBuilder.CreateTable("RemoteArchitectures", table => new
{
Id = table.Column<int>().
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(nullable: true), Count = table.Column<long>()
}, constraints: table =>
{
table.PrimaryKey("PK_RemoteArchitectures", x => x.Id);
});
migrationBuilder.CreateTable("RemoteOperatingSystems", table => new
{
Id = table.Column<int>().
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(nullable: true), Version = table.Column<string>(nullable: true),
Count = table.Column<long>()
}, constraints: table =>
{
table.PrimaryKey("PK_RemoteOperatingSystems", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable("RemoteApplications");
migrationBuilder.DropTable("RemoteArchitectures");
migrationBuilder.DropTable("RemoteOperatingSystems");
}
}
}

View File

@@ -1173,6 +1173,49 @@ namespace DiscImageChef.Server.Migrations
b.ToTable("Partitions");
});
modelBuilder.Entity("DiscImageChef.Server.Models.RemoteApplication", b =>
{
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnType("int");
b.Property<long>("Count").HasColumnType("bigint");
b.Property<string>("Name").HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Version").HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("RemoteApplications");
});
modelBuilder.Entity("DiscImageChef.Server.Models.RemoteArchitecture", b =>
{
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnType("int");
b.Property<long>("Count").HasColumnType("bigint");
b.Property<string>("Name").HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("RemoteArchitectures");
});
modelBuilder.Entity("DiscImageChef.Server.Models.RemoteOperatingSystem", b =>
{
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnType("int");
b.Property<long>("Count").HasColumnType("bigint");
b.Property<string>("Name").HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<string>("Version").HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("RemoteOperatingSystems");
});
modelBuilder.Entity("DiscImageChef.Server.Models.UploadedReport", b =>
{
b.Property<int>("Id").ValueGeneratedOnAdd().HasColumnType("int");