mirror of
https://github.com/Wessel/nhl-setgame.git
synced 2026-07-25 17:51:35 +02:00
55 lines
1.7 KiB
C#
Executable File
55 lines
1.7 KiB
C#
Executable File
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using backend.Models;
|
|
|
|
#nullable disable
|
|
|
|
namespace backend.Migrations
|
|
{
|
|
[DbContext(typeof(GameContext))]
|
|
[Migration("20250226132916_initial")]
|
|
partial class initial
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.2")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("backend.Models.Game", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
b.PrimitiveCollection<int[]>("Deck")
|
|
.HasColumnType("integer[]");
|
|
|
|
b.PrimitiveCollection<int[]>("Hand")
|
|
.HasColumnType("integer[]");
|
|
|
|
b.Property<DateTime>("StartedAt")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Games");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|