summaryrefslogtreecommitdiff
path: root/CoreWiki/Migrations/20231225202905_ViewCount.Designer.cs
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-29 09:41:56 +0100
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-29 09:41:56 +0100
commit79f5eaf40b93d64be74d8b4f1ef80d19fadbfbe1 (patch)
treeddf121e78bdd50673379b223abfdb448c4f81291 /CoreWiki/Migrations/20231225202905_ViewCount.Designer.cs
parent1a96616699ab41bf6343bc1acc45a836c3e6caf3 (diff)
Cywilizowany tailwindHEADmaster
Diffstat (limited to 'CoreWiki/Migrations/20231225202905_ViewCount.Designer.cs')
-rw-r--r--CoreWiki/Migrations/20231225202905_ViewCount.Designer.cs115
1 files changed, 115 insertions, 0 deletions
diff --git a/CoreWiki/Migrations/20231225202905_ViewCount.Designer.cs b/CoreWiki/Migrations/20231225202905_ViewCount.Designer.cs
new file mode 100644
index 0000000..65e1d31
--- /dev/null
+++ b/CoreWiki/Migrations/20231225202905_ViewCount.Designer.cs
@@ -0,0 +1,115 @@
+// <auto-generated />
+using System;
+using CoreWiki.Models;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace CoreWiki.Migrations
+{
+ [DbContext(typeof(ApplicationDbContext))]
+ [Migration("20231225202905_ViewCount")]
+ partial class ViewCount
+ {
+ /// <inheritdoc />
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
+
+ modelBuilder.Entity("CoreWiki.Models.Article", b =>
+ {
+ b.Property<int>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property<string>("Content")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property<DateTime>("PublishedDateTime")
+ .HasColumnType("TEXT")
+ .HasColumnName("Published");
+
+ b.Property<string>("Slug")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Topic")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("TEXT");
+
+ b.Property<int>("ViewCount")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("Articles");
+
+ b.HasData(
+ new
+ {
+ Id = 1,
+ Content = "Welcome to your new CoreWiki installation",
+ PublishedDateTime = new DateTime(2023, 12, 25, 20, 29, 5, 642, DateTimeKind.Utc).AddTicks(7240),
+ Slug = "home-page",
+ Topic = "Home Page",
+ ViewCount = 0
+ });
+ });
+
+ modelBuilder.Entity("CoreWiki.Models.Comment", b =>
+ {
+ b.Property<int>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property<int>("ArticleId")
+ .HasColumnType("INTEGER");
+
+ b.Property<string>("Content")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property<string>("DisplayName")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property<string>("EMail")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property<DateTime>("SubmittedDateTime")
+ .HasColumnType("TEXT")
+ .HasColumnName("Submitted");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ArticleId");
+
+ b.ToTable("Comment");
+ });
+
+ modelBuilder.Entity("CoreWiki.Models.Comment", b =>
+ {
+ b.HasOne("CoreWiki.Models.Article", "Article")
+ .WithMany("Comments")
+ .HasForeignKey("ArticleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Article");
+ });
+
+ modelBuilder.Entity("CoreWiki.Models.Article", b =>
+ {
+ b.Navigation("Comments");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}