< Summary

Information
Class: TicTacToeApp.API.Migrations.TicTacToeContextModelSnapshot
Assembly: TicTacToeApp.API
File(s): /home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Migrations/TicTacToeContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 49
Coverable lines: 49
Total lines: 72
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildModel(...)100%210%

File(s)

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Migrations/TicTacToeContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 7using TicTacToeApp.API.Data;
 8
 9#nullable disable
 10
 11namespace TicTacToeApp.API.Migrations
 12{
 13    [DbContext(typeof(TicTacToeContext))]
 14    partial class TicTacToeContextModelSnapshot : ModelSnapshot
 15    {
 16        protected override void BuildModel(ModelBuilder modelBuilder)
 17        {
 18#pragma warning disable 612, 618
 019            modelBuilder
 020                .HasAnnotation("ProductVersion", "9.0.7")
 021                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 22
 023            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 24
 025            modelBuilder.Entity("TicTacToeApp.API.Entity.Game", b =>
 026                {
 027                    b.Property<Guid>("Id")
 028                        .ValueGeneratedOnAdd()
 029                        .HasColumnType("uuid");
 030
 031                    b.Property<string>("Board")
 032                        .IsRequired()
 033                        .HasColumnType("text");
 034
 035                    b.Property<DateTime>("CreatedAt")
 036                        .HasColumnType("timestamp with time zone");
 037
 038                    b.Property<string>("CurrentMove")
 039                        .IsRequired()
 040                        .HasColumnType("text");
 041
 042                    b.Property<long>("CurrentStep")
 043                        .HasColumnType("bigint");
 044
 045                    b.Property<string>("Result")
 046                        .IsRequired()
 047                        .HasColumnType("text");
 048
 049                    b.Property<string>("Status")
 050                        .IsRequired()
 051                        .HasColumnType("text");
 052
 053                    b.HasKey("Id");
 054
 055                    b.ToTable("Games", (string)null);
 056
 057                    b.HasData(
 058                        new
 059                        {
 060                            Id = new Guid("b8aa36a5-9094-4dbd-80a5-444fcb92d3a4"),
 061                            Board = "[[\"X\",\"O\",null],[null,\"X\",\"O\"],[\"O\",null,\"X\"]]",
 062                            CreatedAt = new DateTime(2023, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc),
 063                            CurrentMove = "X",
 064                            CurrentStep = 0L,
 065                            Result = "None",
 066                            Status = "Active"
 067                        });
 068                });
 69#pragma warning restore 612, 618
 070        }
 71    }
 72}