Files
romrepomgr/RomRepoMgr.Database/Migrations/ContextModelSnapshot.cs

50 lines
1.5 KiB
C#
Raw Normal View History

2020-08-21 23:21:01 +01:00
// <auto-generated />
2020-08-21 23:32:44 +01:00
using System;
2020-08-21 23:21:01 +01:00
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
namespace RomRepoMgr.Database.Migrations
{
[DbContext(typeof(Context))]
internal class ContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "3.1.7");
2020-08-21 23:32:44 +01:00
modelBuilder.Entity("RomRepoMgr.Database.Models.DbFile", b =>
{
b.Property<ulong>("Id").ValueGeneratedOnAdd().HasColumnType("INTEGER");
b.Property<string>("Crc32").HasColumnType("TEXT").HasMaxLength(8);
b.Property<DateTime>("CreatedOn").ValueGeneratedOnAdd().HasColumnType("TEXT");
b.Property<string>("Md5").HasColumnType("TEXT").HasMaxLength(32);
b.Property<string>("Sha1").HasColumnType("TEXT").HasMaxLength(40);
b.Property<string>("Sha256").HasColumnType("TEXT").HasMaxLength(64);
b.Property<ulong>("Size").HasColumnType("INTEGER");
b.Property<DateTime>("UpdatedOn").ValueGeneratedOnAddOrUpdate().HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("Crc32");
b.HasIndex("Sha1");
b.HasIndex("Sha256");
b.HasIndex("Size");
b.ToTable("Files");
});
2020-08-21 23:21:01 +01:00
#pragma warning restore 612, 618
}
}
}