mirror of
https://github.com/jjbrunton/Convertarr.git
synced 2026-10-31 17:59:43 +00:00
Initial commit
This commit is contained in:
commit
4933035cd2
70 files changed
+3188
No files matched your search
@@ -0,0 +1,76 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Convertarr.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Convertarr.Data.Migrations
|
||||
{
|
||||
[DbContext(typeof(ConvertarrContext))]
|
||||
[Migration("20230211181606_FileHash")]
|
||||
partial class FileHash
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
|
||||
|
||||
modelBuilder.Entity("Convertarr.Data.MediaFile", b =>
|
||||
{
|
||||
b.Property<int>("MediaFileId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("FileHash")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("FilePath")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("LastScanned")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int?>("MediaInfoId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("MediaFileId");
|
||||
|
||||
b.HasIndex("MediaInfoId");
|
||||
|
||||
b.ToTable("Files");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Convertarr.Data.Models.MediaInfo", b =>
|
||||
{
|
||||
b.Property<int>("MediaInfoId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Codec")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("MediaInfoId");
|
||||
|
||||
b.ToTable("MediaInfo");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Convertarr.Data.MediaFile", b =>
|
||||
{
|
||||
b.HasOne("Convertarr.Data.Models.MediaInfo", "MediaInfo")
|
||||
.WithMany()
|
||||
.HasForeignKey("MediaInfoId");
|
||||
|
||||
b.Navigation("MediaInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user