| | | 1 | | // <auto-generated /> |
| | | 2 | | using System; |
| | | 3 | | using Microsoft.EntityFrameworkCore; |
| | | 4 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 7 | | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
| | | 8 | | using TicTacToeApp.API.Data; |
| | | 9 | | |
| | | 10 | | #nullable disable |
| | | 11 | | |
| | | 12 | | namespace TicTacToeApp.API.Migrations |
| | | 13 | | { |
| | | 14 | | [DbContext(typeof(TicTacToeContext))] |
| | | 15 | | [Migration("20250717182135_InitSurname")] |
| | | 16 | | partial class InitSurname |
| | | 17 | | { |
| | | 18 | | /// <inheritdoc /> |
| | | 19 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 20 | | { |
| | | 21 | | #pragma warning disable 612, 618 |
| | 0 | 22 | | modelBuilder |
| | 0 | 23 | | .HasAnnotation("ProductVersion", "9.0.7") |
| | 0 | 24 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | | 25 | | |
| | 0 | 26 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | | 27 | | |
| | 0 | 28 | | modelBuilder.Entity("TicTacToeApp.API.Entity.Game", b => |
| | 0 | 29 | | { |
| | 0 | 30 | | b.Property<Guid>("Id") |
| | 0 | 31 | | .ValueGeneratedOnAdd() |
| | 0 | 32 | | .HasColumnType("uuid"); |
| | 0 | 33 | | |
| | 0 | 34 | | b.Property<int>("Age") |
| | 0 | 35 | | .HasColumnType("integer"); |
| | 0 | 36 | | |
| | 0 | 37 | | b.Property<string>("Board") |
| | 0 | 38 | | .IsRequired() |
| | 0 | 39 | | .HasColumnType("text"); |
| | 0 | 40 | | |
| | 0 | 41 | | b.Property<DateTime>("CreatedAt") |
| | 0 | 42 | | .HasColumnType("timestamp with time zone"); |
| | 0 | 43 | | |
| | 0 | 44 | | b.Property<string>("CurrentMove") |
| | 0 | 45 | | .IsRequired() |
| | 0 | 46 | | .HasColumnType("text"); |
| | 0 | 47 | | |
| | 0 | 48 | | b.Property<long>("CurrentStep") |
| | 0 | 49 | | .HasColumnType("bigint"); |
| | 0 | 50 | | |
| | 0 | 51 | | b.Property<string>("Result") |
| | 0 | 52 | | .IsRequired() |
| | 0 | 53 | | .HasColumnType("text"); |
| | 0 | 54 | | |
| | 0 | 55 | | b.Property<string>("Status") |
| | 0 | 56 | | .IsRequired() |
| | 0 | 57 | | .HasColumnType("text"); |
| | 0 | 58 | | |
| | 0 | 59 | | b.Property<string>("Surname") |
| | 0 | 60 | | .IsRequired() |
| | 0 | 61 | | .HasColumnType("text"); |
| | 0 | 62 | | |
| | 0 | 63 | | b.HasKey("Id"); |
| | 0 | 64 | | |
| | 0 | 65 | | b.ToTable("Games", (string)null); |
| | 0 | 66 | | |
| | 0 | 67 | | b.HasData( |
| | 0 | 68 | | new |
| | 0 | 69 | | { |
| | 0 | 70 | | Id = new Guid("b8aa36a5-9094-4dbd-80a5-444fcb92d3a4"), |
| | 0 | 71 | | Age = 0, |
| | 0 | 72 | | Board = "[[\"X\",\"O\",null],[null,\"X\",\"O\"],[\"O\",null,\"X\"]]", |
| | 0 | 73 | | CreatedAt = new DateTime(2023, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc), |
| | 0 | 74 | | CurrentMove = "X", |
| | 0 | 75 | | CurrentStep = 0L, |
| | 0 | 76 | | Result = "None", |
| | 0 | 77 | | Status = "Active", |
| | 0 | 78 | | Surname = "" |
| | 0 | 79 | | }); |
| | 0 | 80 | | }); |
| | | 81 | | #pragma warning restore 612, 618 |
| | 0 | 82 | | } |
| | | 83 | | } |
| | | 84 | | } |