// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Robust.Benchmarks.Exporters;

#nullable disable

namespace Robust.Benchmarks.Migrations
{
    [DbContext(typeof(BenchmarkContext))]
    [Migration("20220328231938_InitialCreate")]
    partial class InitialCreate
    {
        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "6.0.0")
                .HasAnnotation("Relational:MaxIdentifierLength", 63);

            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);

            modelBuilder.Entity("Robust.Benchmarks.Exporters.BenchmarkRun", b =>
                {
                    b.Property<decimal>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("numeric(20,0)");

                    b.Property<string>("GitHash")
                        .IsRequired()
                        .HasColumnType("text");

                    b.Property<string>("Name")
                        .IsRequired()
                        .HasColumnType("text");

                    b.Property<BenchmarkRunReport[]>("Reports")
                        .IsRequired()
                        .HasColumnType("jsonb");

                    b.Property<DateTime>("RunDate")
                        .HasColumnType("Date");

                    b.HasKey("Id");

                    b.ToTable("BenchmarkRuns");
                });
#pragma warning restore 612, 618
        }
    }
}
