summaryrefslogtreecommitdiff
path: root/CoreWiki/Migrations/20231222134125_Initial.Designer.cs
blob: 8c6556e0bff440b7392d740898e7959422bacefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// <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("20231222134125_Initial")]
    partial class Initial
    {
        /// <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<string>("Slug")
                        .HasColumnType("TEXT");

                    b.Property<string>("Content")
                        .IsRequired()
                        .HasColumnType("TEXT");

                    b.Property<DateTime>("PublishedDateTime")
                        .HasColumnType("TEXT")
                        .HasColumnName("Published");

                    b.Property<string>("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
        }
    }
}