techgarage-ir.MTWireGuard/Application/Migrations/20230108171012_Initialize.Designer.cs

54 lines
1.6 KiB
C#
Raw Normal View History

2023-03-03 23:24:18 +03:30
// <auto-generated />
using MTWireGuard;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
2023-06-02 15:26:29 +03:30
namespace MTWireGuard.Application.Migrations
2023-03-03 23:24:18 +03:30
{
[DbContext(typeof(DBContext))]
[Migration("20230108171012_Initialize")]
partial class Initialize
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.1");
modelBuilder.Entity("MTWireGuard.Models.Mikrotik.WGPeerDBModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("PrivateKey")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("PublicKey")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("PrivateKey")
.IsUnique();
b.HasIndex("PublicKey")
.IsUnique();
b.ToTable("Users");
});
#pragma warning restore 612, 618
}
}
}