summaryrefslogtreecommitdiff
path: root/Migrations/20220915235413_AddBookPublicationYear.Designer.cs
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-09-15 18:58:24 -0500
committerHombreLaser <sebastian-440@live.com>2022-09-15 18:58:24 -0500
commit3381c633fcd73e5159ae4a607835167ebdbb12ee (patch)
tree25acc262b608563121e45c56e271b49c88f9315a /Migrations/20220915235413_AddBookPublicationYear.Designer.cs
parent8901a18b0e26cf9ad0aa929e2f656a80cd2f4b09 (diff)
Cambiar PublicationDate por PublicationYear
Diffstat (limited to 'Migrations/20220915235413_AddBookPublicationYear.Designer.cs')
-rw-r--r--Migrations/20220915235413_AddBookPublicationYear.Designer.cs60
1 files changed, 60 insertions, 0 deletions
diff --git a/Migrations/20220915235413_AddBookPublicationYear.Designer.cs b/Migrations/20220915235413_AddBookPublicationYear.Designer.cs
new file mode 100644
index 0000000..072bb5c
--- /dev/null
+++ b/Migrations/20220915235413_AddBookPublicationYear.Designer.cs
@@ -0,0 +1,60 @@
+// <auto-generated />
+using System;
+using LibraryAPI.Models;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
+
+#nullable disable
+
+namespace LibraryAPI.Migrations
+{
+ [DbContext(typeof(LibraryContext))]
+ [Migration("20220915235413_AddBookPublicationYear")]
+ partial class AddBookPublicationYear
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "6.0.9")
+ .HasAnnotation("Relational:MaxIdentifierLength", 63);
+
+ NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
+
+ modelBuilder.Entity("LibraryAPI.Models.Book", b =>
+ {
+ b.Property<long>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
+ b.Property<int>("Edition")
+ .HasColumnType("integer");
+
+ b.Property<string[]>("Genres")
+ .IsRequired()
+ .HasColumnType("text[]");
+
+ b.Property<string>("ISBN")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property<int>("PublicationYear")
+ .HasColumnType("integer");
+
+ b.Property<string>("Title")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.HasKey("Id");
+
+ b.ToTable("Books");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}