summaryrefslogtreecommitdiff
path: root/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs')
-rw-r--r--backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs73
1 files changed, 44 insertions, 29 deletions
diff --git a/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs b/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs
index 7b88425..779ed10 100644
--- a/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/backend/Elements.Data/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -4,6 +4,7 @@ using Elements.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
@@ -15,30 +16,36 @@ namespace Elements.Data.Migrations
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
- modelBuilder.HasAnnotation("ProductVersion", "7.0.12");
+ modelBuilder
+ .HasAnnotation("ProductVersion", "7.0.12")
+ .HasAnnotation("Relational:MaxIdentifierLength", 63);
+
+ NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Elements.Data.Models.Element", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime>("CreationDate")
- .HasColumnType("TEXT");
+ .HasColumnType("timestamp with time zone");
b.Property<byte[]>("IconPng")
.IsRequired()
- .HasColumnType("BLOB");
+ .HasColumnType("bytea");
b.Property<string>("Name")
.IsRequired()
- .HasColumnType("TEXT");
+ .HasColumnType("text");
b.Property<int>("State")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.Property<int>("UserId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.HasKey("Id");
@@ -50,7 +57,7 @@ namespace Elements.Data.Migrations
new
{
Id = 1,
- CreationDate = new DateTime(2023, 10, 24, 19, 28, 3, 290, DateTimeKind.Utc).AddTicks(1750),
+ CreationDate = new DateTime(2023, 10, 28, 17, 53, 52, 688, DateTimeKind.Utc).AddTicks(9070),
IconPng = new byte[] { 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 6, 0, 0, 0, 31, 243, 255, 97, 0, 0, 0, 9, 112, 72, 89, 115, 0, 0, 14, 196, 0, 0, 14, 196, 1, 149, 43, 14, 27, 0, 0, 0, 29, 73, 68, 65, 84, 120, 156, 99, 249, 95, 224, 252, 159, 129, 2, 192, 194, 64, 33, 24, 53, 96, 212, 128, 81, 3, 6, 139, 1, 0, 119, 65, 2, 242, 233, 108, 215, 141, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130 },
Name = "Fire",
State = 1,
@@ -59,7 +66,7 @@ namespace Elements.Data.Migrations
new
{
Id = 2,
- CreationDate = new DateTime(2023, 10, 24, 19, 28, 3, 290, DateTimeKind.Utc).AddTicks(2880),
+ CreationDate = new DateTime(2023, 10, 28, 17, 53, 52, 689, DateTimeKind.Utc).AddTicks(230),
IconPng = new byte[] { 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 6, 0, 0, 0, 31, 243, 255, 97, 0, 0, 0, 9, 112, 72, 89, 115, 0, 0, 14, 196, 0, 0, 14, 196, 1, 149, 43, 14, 27, 0, 0, 0, 29, 73, 68, 65, 84, 120, 156, 99, 81, 156, 246, 249, 63, 3, 5, 128, 133, 129, 66, 48, 106, 192, 168, 1, 163, 6, 12, 22, 3, 0, 85, 67, 2, 234, 36, 203, 134, 16, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130 },
Name = "Water",
State = 1,
@@ -68,7 +75,7 @@ namespace Elements.Data.Migrations
new
{
Id = 3,
- CreationDate = new DateTime(2023, 10, 24, 19, 28, 3, 290, DateTimeKind.Utc).AddTicks(3350),
+ CreationDate = new DateTime(2023, 10, 28, 17, 53, 52, 689, DateTimeKind.Utc).AddTicks(720),
IconPng = new byte[] { 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 6, 0, 0, 0, 31, 243, 255, 97, 0, 0, 0, 9, 112, 72, 89, 115, 0, 0, 14, 196, 0, 0, 14, 196, 1, 149, 43, 14, 27, 0, 0, 0, 30, 73, 68, 65, 84, 120, 156, 99, 217, 125, 239, 247, 127, 6, 10, 0, 11, 3, 133, 96, 212, 128, 81, 3, 70, 13, 24, 44, 6, 0, 0, 10, 221, 3, 212, 197, 89, 182, 174, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130 },
Name = "Air",
State = 1,
@@ -77,7 +84,7 @@ namespace Elements.Data.Migrations
new
{
Id = 4,
- CreationDate = new DateTime(2023, 10, 24, 19, 28, 3, 290, DateTimeKind.Utc).AddTicks(3790),
+ CreationDate = new DateTime(2023, 10, 28, 17, 53, 52, 689, DateTimeKind.Utc).AddTicks(1160),
IconPng = new byte[] { 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 6, 0, 0, 0, 31, 243, 255, 97, 0, 0, 0, 9, 112, 72, 89, 115, 0, 0, 14, 196, 0, 0, 14, 196, 1, 149, 43, 14, 27, 0, 0, 0, 29, 73, 68, 65, 84, 120, 156, 99, 137, 117, 48, 255, 207, 64, 1, 96, 97, 160, 16, 140, 26, 48, 106, 192, 168, 1, 131, 197, 0, 0, 242, 75, 2, 20, 1, 55, 196, 168, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130 },
Name = "Ground",
State = 1,
@@ -89,16 +96,18 @@ namespace Elements.Data.Migrations
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int>("FirstElementId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.Property<int>("ResultElementId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.Property<int>("SecondElementId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.HasKey("Id");
@@ -115,30 +124,32 @@ namespace Elements.Data.Migrations
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime>("CreationDate")
- .HasColumnType("TEXT");
+ .HasColumnType("timestamp with time zone");
b.Property<int>("FirstElementId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.Property<byte[]>("Icon")
.IsRequired()
- .HasColumnType("BLOB");
+ .HasColumnType("bytea");
b.Property<string>("Name")
.IsRequired()
- .HasColumnType("TEXT");
+ .HasColumnType("text");
b.Property<int>("SecondElementId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.Property<int>("UserId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.Property<DateTime>("VotingEnd")
- .HasColumnType("TEXT");
+ .HasColumnType("timestamp with time zone");
b.HasKey("Id");
@@ -155,15 +166,17 @@ namespace Elements.Data.Migrations
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("GoogleId")
.IsRequired()
- .HasColumnType("TEXT");
+ .HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
- .HasColumnType("TEXT");
+ .HasColumnType("text");
b.HasKey("Id");
@@ -182,13 +195,15 @@ namespace Elements.Data.Migrations
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int>("SuggestionId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.Property<int>("UserId")
- .HasColumnType("INTEGER");
+ .HasColumnType("integer");
b.HasKey("Id");