2020-10-25 16:15:06 +01:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using Birdmap.DAL;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
|
|
namespace Birdmap.DAL.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(BirdmapContext))]
|
|
|
|
|
partial class BirdmapContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "3.1.9")
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Birdmap.DAL.Entities.Service", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int")
|
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
2020-10-31 15:57:19 +01:00
|
|
|
|
b.Property<bool>("IsFromConfig")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("bit")
|
|
|
|
|
.HasDefaultValue(false);
|
|
|
|
|
|
2020-10-25 16:15:06 +01:00
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Uri")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2020-10-25 16:52:39 +01:00
|
|
|
|
b.ToTable("Services");
|
2020-10-25 16:15:06 +01:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Birdmap.DAL.Entities.User", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int")
|
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
2020-10-31 15:57:19 +01:00
|
|
|
|
b.Property<bool>("IsFromConfig")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("bit")
|
|
|
|
|
.HasDefaultValue(false);
|
|
|
|
|
|
2020-10-25 16:15:06 +01:00
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("PasswordHash")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("PasswordSalt")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Role")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("Users");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|