< Summary

Information
Class: ClutterStock.Infrastructure.Migrations.ApplicationContextModelSnapshot
Assembly: Infrastructure
File(s): /home/runner/work/ClutterStock/ClutterStock/backend/src/Infrastructure/Database/Migrations/ApplicationContextModelSnapshot.cs
Tag: 58_25416222083
Line coverage
100%
Covered lines: 132
Uncovered lines: 0
Coverable lines: 132
Total lines: 161
Line coverage: 100%
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%11100%

File(s)

/home/runner/work/ClutterStock/ClutterStock/backend/src/Infrastructure/Database/Migrations/ApplicationContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using ClutterStock.Infrastructure.Database;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 8
 9#nullable disable
 10
 11namespace ClutterStock.Infrastructure.Migrations
 12{
 13    [DbContext(typeof(ApplicationContext))]
 14    partial class ApplicationContextModelSnapshot : ModelSnapshot
 15    {
 16        protected override void BuildModel(ModelBuilder modelBuilder)
 17        {
 18#pragma warning disable 612, 618
 519            modelBuilder
 520                .HasAnnotation("ProductVersion", "10.0.7")
 521                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 22
 523            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 24
 525            modelBuilder.Entity("ClutterStock.Entities.Item", b =>
 526                {
 527                    b.Property<int>("Id")
 528                        .ValueGeneratedOnAdd()
 529                        .HasColumnType("integer");
 530
 531                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 532
 533                    b.Property<string>("Category")
 534                        .HasMaxLength(100)
 535                        .HasColumnType("character varying(100)");
 536
 537                    b.Property<DateTimeOffset>("CreatedAtUtc")
 538                        .HasColumnType("timestamp with time zone");
 539
 540                    b.Property<string>("Description")
 541                        .HasMaxLength(2000)
 542                        .HasColumnType("character varying(2000)");
 543
 544                    b.Property<string>("Name")
 545                        .IsRequired()
 546                        .HasMaxLength(200)
 547                        .HasColumnType("character varying(200)");
 548
 549                    b.Property<string>("Notes")
 550                        .HasMaxLength(2000)
 551                        .HasColumnType("character varying(2000)");
 552
 553                    b.Property<int>("RoomId")
 554                        .HasColumnType("integer");
 555
 556                    b.Property<DateTimeOffset?>("UpdatedAtUtc")
 557                        .HasColumnType("timestamp with time zone");
 558
 559                    b.HasKey("Id");
 560
 561                    b.HasIndex("RoomId");
 562
 563                    b.ToTable("Item", (string)null);
 564                });
 65
 566            modelBuilder.Entity("ClutterStock.Entities.Location", b =>
 567                {
 568                    b.Property<int>("Id")
 569                        .ValueGeneratedOnAdd()
 570                        .HasColumnType("integer");
 571
 572                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 573
 574                    b.Property<DateTimeOffset>("CreatedAtUtc")
 575                        .HasColumnType("timestamp with time zone");
 576
 577                    b.Property<string>("Description")
 578                        .HasMaxLength(2000)
 579                        .HasColumnType("character varying(2000)");
 580
 581                    b.Property<string>("Name")
 582                        .IsRequired()
 583                        .HasMaxLength(200)
 584                        .HasColumnType("character varying(200)");
 585
 586                    b.Property<DateTimeOffset?>("UpdatedAtUtc")
 587                        .HasColumnType("timestamp with time zone");
 588
 589                    b.HasKey("Id");
 590
 591                    b.ToTable("Location", (string)null);
 592                });
 93
 594            modelBuilder.Entity("ClutterStock.Entities.Room", b =>
 595                {
 596                    b.Property<int>("Id")
 597                        .ValueGeneratedOnAdd()
 598                        .HasColumnType("integer");
 599
 5100                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 5101
 5102                    b.Property<DateTimeOffset>("CreatedAtUtc")
 5103                        .HasColumnType("timestamp with time zone");
 5104
 5105                    b.Property<string>("Description")
 5106                        .HasMaxLength(2000)
 5107                        .HasColumnType("character varying(2000)");
 5108
 5109                    b.Property<int>("LocationId")
 5110                        .HasColumnType("integer");
 5111
 5112                    b.Property<string>("Name")
 5113                        .IsRequired()
 5114                        .HasMaxLength(200)
 5115                        .HasColumnType("character varying(200)");
 5116
 5117                    b.Property<DateTimeOffset?>("UpdatedAtUtc")
 5118                        .HasColumnType("timestamp with time zone");
 5119
 5120                    b.HasKey("Id");
 5121
 5122                    b.HasIndex("LocationId");
 5123
 5124                    b.ToTable("Room", (string)null);
 5125                });
 126
 5127            modelBuilder.Entity("ClutterStock.Entities.Item", b =>
 5128                {
 5129                    b.HasOne("ClutterStock.Entities.Room", "Room")
 5130                        .WithMany("Items")
 5131                        .HasForeignKey("RoomId")
 5132                        .OnDelete(DeleteBehavior.Cascade)
 5133                        .IsRequired();
 5134
 5135                    b.Navigation("Room");
 5136                });
 137
 5138            modelBuilder.Entity("ClutterStock.Entities.Room", b =>
 5139                {
 5140                    b.HasOne("ClutterStock.Entities.Location", "Location")
 5141                        .WithMany("Rooms")
 5142                        .HasForeignKey("LocationId")
 5143                        .OnDelete(DeleteBehavior.Cascade)
 5144                        .IsRequired();
 5145
 5146                    b.Navigation("Location");
 5147                });
 148
 5149            modelBuilder.Entity("ClutterStock.Entities.Location", b =>
 5150                {
 5151                    b.Navigation("Rooms");
 5152                });
 153
 5154            modelBuilder.Entity("ClutterStock.Entities.Room", b =>
 5155                {
 5156                    b.Navigation("Items");
 5157                });
 158#pragma warning restore 612, 618
 5159        }
 160    }
 161}