summaryrefslogtreecommitdiff
path: root/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-22 16:02:41 +0100
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-22 16:02:41 +0100
commit1a96616699ab41bf6343bc1acc45a836c3e6caf3 (patch)
treeaff3d8bb8418355d3a8279024afaa13f196a0506 /CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs
parent7fefe217c8462444ecb9806599e70afe2a7102ea (diff)
Backup
Diffstat (limited to 'CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs')
-rw-r--r--CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs21
1 files changed, 18 insertions, 3 deletions
diff --git a/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs b/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs
index fb063f5..4808c70 100644
--- a/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -19,19 +19,34 @@ namespace CoreWiki.Migrations
modelBuilder.Entity("CoreWiki.Models.Article", b =>
{
- b.Property<string>("Topic")
+ b.Property<string>("Slug")
.HasColumnType("TEXT");
b.Property<string>("Content")
.IsRequired()
.HasColumnType("TEXT");
- b.Property<DateTime>("Published")
+ b.Property<DateTime>("PublishedDateTime")
+ .HasColumnType("TEXT")
+ .HasColumnName("Published");
+
+ b.Property<string>("Topic")
+ .IsRequired()
+ .HasMaxLength(100)
.HasColumnType("TEXT");
- b.HasKey("Topic");
+ b.HasKey("Slug");
b.ToTable("Articles");
+
+ b.HasData(
+ new
+ {
+ Slug = "home-page",
+ Content = "Welcome to your new CoreWiki installation",
+ PublishedDateTime = new DateTime(2023, 12, 22, 13, 41, 24, 978, DateTimeKind.Utc).AddTicks(110),
+ Topic = "Home Page"
+ });
});
#pragma warning restore 612, 618
}