//
using System;
using MTWireGuard.Application;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace MTWireGuard.Application.Migrations
{
[DbContext(typeof(DBContext))]
[Migration("20231124145201_DNS")]
partial class DNS
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.5");
modelBuilder.Entity("MTWireGuard.Application.Models.DataUsage", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("CreationTime")
.HasColumnType("TEXT");
b.Property("RX")
.HasColumnType("INTEGER");
b.Property("ResetNotes")
.HasColumnType("TEXT");
b.Property("TX")
.HasColumnType("INTEGER");
b.Property("UserID")
.HasColumnType("INTEGER");
b.Property("UserReset")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("DataUsages");
});
modelBuilder.Entity("MTWireGuard.Application.Models.LastKnownTraffic", b =>
{
b.Property("UserID")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("CreationTime")
.HasColumnType("TEXT");
b.Property("RX")
.HasColumnType("INTEGER");
b.Property("TX")
.HasColumnType("INTEGER");
b.HasKey("UserID");
b.ToTable("LastKnownTraffic");
});
modelBuilder.Entity("MTWireGuard.Application.Models.Mikrotik.WGPeerDBModel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("DNSAddress")
.HasColumnType("TEXT");
b.Property("Expire")
.HasColumnType("TEXT");
b.Property("ExpireID")
.HasColumnType("INTEGER");
b.Property("InheritDNS")
.HasColumnType("INTEGER");
b.Property("InheritIP")
.HasColumnType("INTEGER");
b.Property("Name")
.HasColumnType("TEXT");
b.Property("PrivateKey")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PublicKey")
.IsRequired()
.HasColumnType("TEXT");
b.Property("RX")
.HasColumnType("INTEGER");
b.Property("TX")
.HasColumnType("INTEGER");
b.Property("TrafficLimit")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("PrivateKey")
.IsUnique();
b.HasIndex("PublicKey")
.IsUnique();
b.ToTable("Users");
});
#pragma warning restore 612, 618
}
}
}