From 79f5eaf40b93d64be74d8b4f1ef80d19fadbfbe1 Mon Sep 17 00:00:00 2001 From: Paweł Bernaciak Date: Fri, 29 Dec 2023 09:41:56 +0100 Subject: Cywilizowany tailwind --- .../Migrations/20231224183732_Initial.Designer.cs | 111 +++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 CoreWiki/Migrations/20231224183732_Initial.Designer.cs (limited to 'CoreWiki/Migrations/20231224183732_Initial.Designer.cs') diff --git a/CoreWiki/Migrations/20231224183732_Initial.Designer.cs b/CoreWiki/Migrations/20231224183732_Initial.Designer.cs new file mode 100644 index 0000000..bdb4b35 --- /dev/null +++ b/CoreWiki/Migrations/20231224183732_Initial.Designer.cs @@ -0,0 +1,111 @@ +// +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("20231224183732_Initial")] + partial class Initial + { + /// + 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("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Content") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property("PublishedDateTime") + .HasColumnType("TEXT") + .HasColumnName("Published"); + + b.Property("Slug") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property("Topic") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.ToTable("Articles"); + + b.HasData( + new + { + Id = 1, + Content = "Welcome to your new CoreWiki installation", + PublishedDateTime = new DateTime(2023, 12, 24, 18, 37, 32, 413, DateTimeKind.Utc).AddTicks(8400), + Slug = "home-page", + Topic = "Home Page" + }); + }); + + modelBuilder.Entity("CoreWiki.Models.Comment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("ArticleId") + .HasColumnType("INTEGER"); + + b.Property("Content") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property("DisplayName") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property("EMail") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property("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 + } + } +} -- cgit v1.2.3