techgarage-ir.MTWireGuard/Application/Migrations/DBContextModelSnapshot.cs

147 lines
4.6 KiB
C#
Raw Normal View History

2023-03-03 23:24:18 +03:30
// <auto-generated />
2023-06-23 17:00:49 +03:30
using System;
using MTWireGuard.Application;
2023-03-03 23:24:18 +03:30
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
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))]
partial class DBContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
2023-06-23 17:00:49 +03:30
modelBuilder.HasAnnotation("ProductVersion", "7.0.5");
2023-03-03 23:24:18 +03:30
modelBuilder.Entity("MTWireGuard.Application.Models.DataUsage", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime>("CreationTime")
.HasColumnType("TEXT");
b.Property<int>("RX")
.HasColumnType("INTEGER");
b.Property<string>("ResetNotes")
.HasColumnType("TEXT");
b.Property<int>("TX")
.HasColumnType("INTEGER");
b.Property<int>("UserID")
.HasColumnType("INTEGER");
b.Property<bool>("UserReset")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("DataUsages");
});
modelBuilder.Entity("MTWireGuard.Application.Models.LastKnownTraffic", b =>
{
b.Property<int>("UserID")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime>("CreationTime")
.HasColumnType("TEXT");
b.Property<int>("RX")
.HasColumnType("INTEGER");
b.Property<int>("TX")
.HasColumnType("INTEGER");
b.HasKey("UserID");
b.ToTable("LastKnownTraffic");
});
2023-06-23 17:00:49 +03:30
modelBuilder.Entity("MTWireGuard.Application.Models.Mikrotik.WGPeerDBModel", b =>
2023-03-03 23:24:18 +03:30
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("DNSAddress")
.HasColumnType("TEXT");
2023-06-23 17:00:49 +03:30
b.Property<DateTime?>("Expire")
.HasColumnType("TEXT");
b.Property<int?>("ExpireID")
.HasColumnType("INTEGER");
b.Property<bool>("InheritDNS")
.HasColumnType("INTEGER");
b.Property<bool>("InheritIP")
.HasColumnType("INTEGER");
2023-03-03 23:24:18 +03:30
b.Property<string>("Name")
.HasColumnType("TEXT");
b.Property<string>("PrivateKey")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("PublicKey")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int>("RX")
.HasColumnType("INTEGER");
b.Property<int>("TX")
.HasColumnType("INTEGER");
b.Property<int>("TrafficLimit")
.HasColumnType("INTEGER");
2023-03-03 23:24:18 +03:30
b.HasKey("Id");
b.HasIndex("PrivateKey")
.IsUnique();
b.HasIndex("PublicKey")
.IsUnique();
b.ToTable("Users");
});
modelBuilder.Entity("MTWireGuard.Application.Models.Mikrotik.WGServerDBModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("DNSAddress")
.HasColumnType("TEXT");
b.Property<int?>("IPPoolId")
.HasColumnType("INTEGER");
b.Property<bool>("InheritDNS")
.HasColumnType("INTEGER");
b.Property<bool>("UseIPPool")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("Servers");
});
2023-03-03 23:24:18 +03:30
#pragma warning restore 612, 618
}
}
}