diff options
Diffstat (limited to 'ShareGuard.Web/Migrations/DatabaseModelSnapshot.cs')
| -rw-r--r-- | ShareGuard.Web/Migrations/DatabaseModelSnapshot.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ShareGuard.Web/Migrations/DatabaseModelSnapshot.cs b/ShareGuard.Web/Migrations/DatabaseModelSnapshot.cs new file mode 100644 index 0000000..6f3c5df --- /dev/null +++ b/ShareGuard.Web/Migrations/DatabaseModelSnapshot.cs @@ -0,0 +1,47 @@ +// <auto-generated /> +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using ShareGuard.Web; + +#nullable disable + +namespace ShareGuard.Web.Migrations +{ + [DbContext(typeof(Database))] + partial class DatabaseModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder.HasAnnotation("ProductVersion", "10.0.1"); + + modelBuilder.Entity("ShareGuard.Web.DbModels.Link", b => + { + b.Property<int>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property<string>("IpAddress") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<string>("Name") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<string>("PeerPublicKey") + .HasColumnType("TEXT"); + + b.Property<string>("Token") + .IsRequired() + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.ToTable("Links"); + }); +#pragma warning restore 612, 618 + } + } +} |
