Store CompactDisc read offsets in database.

This commit is contained in:
2018-12-25 03:04:57 +00:00
parent b1287f8e2c
commit f6c2b087a2
18 changed files with 1791 additions and 14 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace DiscImageChef.Database.Migrations
{
public partial class AddCdOffsets : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable("CdOffsets",
table => new
{
Manufacturer = table.Column<string>(nullable: true),
Model = table.Column<string>(nullable: true),
Offset = table.Column<short>(nullable: false),
Submissions = table.Column<int>(nullable: false),
Agreement = table.Column<float>(nullable: false),
Id = table.Column<int>(nullable: false)
.Annotation("Sqlite:Autoincrement", true),
AddedWhen = table.Column<DateTime>(nullable: false),
ModifiedWhen = table.Column<DateTime>(nullable: false)
}, constraints: table => { table.PrimaryKey("PK_CdOffsets", x => x.Id); });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable("CdOffsets");
}
}
}

View File

@@ -886,6 +886,29 @@ namespace DiscImageChef.Database.Migrations
b.ToTable("Usb");
});
modelBuilder.Entity("DiscImageChef.Database.Models.CdOffset", b =>
{
b.Property<int>("Id").ValueGeneratedOnAdd();
b.Property<DateTime>("AddedWhen");
b.Property<float>("Agreement");
b.Property<string>("Manufacturer");
b.Property<string>("Model");
b.Property<DateTime>("ModifiedWhen");
b.Property<short>("Offset");
b.Property<int>("Submissions");
b.HasKey("Id");
b.ToTable("CdOffsets");
});
modelBuilder.Entity("DiscImageChef.Database.Models.Command", b =>
{
b.Property<int>("Id").ValueGeneratedOnAdd();