//
using System;
using CoreWiki.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace CoreWiki.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
modelBuilder.Entity("CoreWiki.Models.Article", b =>
{
b.Property("Slug")
.HasColumnType("TEXT");
b.Property("Content")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PublishedDateTime")
.HasColumnType("TEXT")
.HasColumnName("Published");
b.Property("Topic")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
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
}
}
}