Add project files.

This commit is contained in:
2026-02-03 23:02:37 +01:00
parent 94bae0de01
commit 263a4d54f6
92 changed files with 85145 additions and 0 deletions

View File

@ -0,0 +1,84 @@
// <auto-generated />
using System;
using DiaryApp.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace DiaryApp.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20260202153708_AddedSeedingDataDiaryEntries")]
partial class AddedSeedingDataDiaryEntries
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("DiaryApp.Models.DiaryEntry", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Content")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("DateCreated")
.HasColumnType("datetime2");
b.Property<string>("Title")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("DiaryEntries");
b.HasData(
new
{
Id = 1,
Content = "Went hiking with Joe!",
DateCreated = new DateTime(2026, 1, 1, 10, 32, 0, 0, DateTimeKind.Unspecified),
Title = "Went Hiking"
},
new
{
Id = 2,
Content = "Went Shoping with Joe!",
DateCreated = new DateTime(2026, 1, 10, 8, 32, 0, 0, DateTimeKind.Unspecified),
Title = "Went Shoping"
},
new
{
Id = 3,
Content = "Went Swimming with Joe!",
DateCreated = new DateTime(2026, 1, 15, 15, 42, 0, 0, DateTimeKind.Unspecified),
Title = "Went Swimming"
},
new
{
Id = 4,
Content = "Went Biking with Joe!",
DateCreated = new DateTime(2026, 1, 17, 12, 0, 0, 0, DateTimeKind.Unspecified),
Title = "Went Biking"
});
});
#pragma warning restore 612, 618
}
}
}