47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
|
|
// <auto-generated />
|
||
|
|
using System;
|
||
|
|
using Microsoft.EntityFrameworkCore;
|
||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||
|
|
using TournamentOrganizer;
|
||
|
|
|
||
|
|
#nullable disable
|
||
|
|
|
||
|
|
namespace TournamentOrganizer.Migrations
|
||
|
|
{
|
||
|
|
[DbContext(typeof(TournamentContext))]
|
||
|
|
[Migration("20260409072947_InitialEvent")]
|
||
|
|
partial class InitialEvent
|
||
|
|
{
|
||
|
|
/// <inheritdoc />
|
||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||
|
|
{
|
||
|
|
#pragma warning disable 612, 618
|
||
|
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.5");
|
||
|
|
|
||
|
|
modelBuilder.Entity("TournamentOrganizer.Models.Event", b =>
|
||
|
|
{
|
||
|
|
b.Property<int>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("INTEGER");
|
||
|
|
|
||
|
|
b.Property<DateTime>("EventEnd")
|
||
|
|
.HasColumnType("TEXT");
|
||
|
|
|
||
|
|
b.Property<DateTime>("EventStart")
|
||
|
|
.HasColumnType("TEXT");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.IsRequired()
|
||
|
|
.HasColumnType("TEXT");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("Events");
|
||
|
|
});
|
||
|
|
#pragma warning restore 612, 618
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|