mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
119 lines
3.7 KiB
C#
119 lines
3.7 KiB
C#
|
// <auto-generated />
|
|||
|
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("20231010194742_AddLastKnownTraffic")]
|
|||
|
partial class AddLastKnownTraffic
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
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<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("INTEGER");
|
|||
|
|
|||
|
b.Property<DateTime>("CreationTime")
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.Property<int>("RX")
|
|||
|
.HasColumnType("INTEGER");
|
|||
|
|
|||
|
b.Property<string>("ResetNotes")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.Property<bool>("SystemReset")
|
|||
|
.HasColumnType("INTEGER");
|
|||
|
|
|||
|
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");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("MTWireGuard.Application.Models.Mikrotik.WGPeerDBModel", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("INTEGER");
|
|||
|
|
|||
|
b.Property<DateTime?>("Expire")
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.Property<int?>("ExpireID")
|
|||
|
.HasColumnType("INTEGER");
|
|||
|
|
|||
|
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.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("PrivateKey")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.HasIndex("PublicKey")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("Users");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|