< Summary

Information
Class: LifeChart.Infrastructure.Migrations.LifeChartDbContextModelSnapshot
Assembly: LifeChart.Infrastructure
File(s): /home/runner/work/lifechart/lifechart/src/LifeChart.Infrastructure/Migrations/LifeChartDbContextModelSnapshot.cs
Tag: 113_29159449707
Line coverage
0%
Covered lines: 0
Uncovered lines: 103
Coverable lines: 103
Total lines: 126
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/lifechart/lifechart/src/LifeChart.Infrastructure/Migrations/LifeChartDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using LifeChart.Infrastructure.Persistence;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7
 8#nullable disable
 9
 10namespace LifeChart.Infrastructure.Migrations
 11{
 12    [DbContext(typeof(LifeChartDbContext))]
 13    partial class LifeChartDbContextModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 018            modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
 19
 020            modelBuilder.Entity("LifeChart.Domain.Entries.DailyEntry", b =>
 021                {
 022                    b.Property<int>("Id")
 023                        .ValueGeneratedOnAdd()
 024                        .HasColumnType("INTEGER");
 025
 026                    b.Property<DateTime>("Date")
 027                        .HasColumnType("TEXT");
 028
 029                    b.Property<int>("Functionality")
 030                        .HasColumnType("INTEGER");
 031
 032                    b.Property<bool>("IsHypomanic")
 033                        .HasColumnType("INTEGER");
 034
 035                    b.Property<bool>("MedicationTaken")
 036                        .HasColumnType("INTEGER");
 037
 038                    b.Property<bool>("MenstrualCycle")
 039                        .HasColumnType("INTEGER");
 040
 041                    b.Property<int>("Mood")
 042                        .HasColumnType("INTEGER");
 043
 044                    b.Property<string>("Notes")
 045                        .HasMaxLength(2000)
 046                        .HasColumnType("TEXT");
 047
 048                    b.Property<int>("SleepHours")
 049                        .HasColumnType("INTEGER");
 050
 051                    b.Property<string>("Symptoms")
 052                        .HasMaxLength(1000)
 053                        .HasColumnType("TEXT");
 054
 055                    b.HasKey("Id");
 056
 057                    b.HasIndex("Date")
 058                        .IsUnique();
 059
 060                    b.ToTable("DailyEntries");
 061                });
 62
 063            modelBuilder.Entity("LifeChart.Domain.Medications.Medication", b =>
 064                {
 065                    b.Property<int>("Id")
 066                        .ValueGeneratedOnAdd()
 067                        .HasColumnType("INTEGER");
 068
 069                    b.Property<bool>("Active")
 070                        .HasColumnType("INTEGER");
 071
 072                    b.Property<int>("CurrentStock")
 073                        .HasColumnType("INTEGER");
 074
 075                    b.Property<string>("Dosage")
 076                        .IsRequired()
 077                        .HasMaxLength(100)
 078                        .HasColumnType("TEXT");
 079
 080                    b.Property<int>("MinStock")
 081                        .HasColumnType("INTEGER");
 082
 083                    b.Property<string>("Name")
 084                        .IsRequired()
 085                        .HasMaxLength(200)
 086                        .HasColumnType("TEXT");
 087
 088                    b.HasKey("Id");
 089
 090                    b.ToTable("Medications");
 091                });
 92
 093            modelBuilder.Entity("LifeChart.Domain.Medications.Medication", b =>
 094                {
 095                    b.OwnsMany("LifeChart.Domain.Medications.IntakeTime", "IntakeTimes", b1 =>
 096                        {
 097                            b1.Property<int>("Id")
 098                                .ValueGeneratedOnAdd()
 099                                .HasColumnType("INTEGER");
 0100
 0101                            b1.Property<int>("DoseCount")
 0102                                .HasColumnType("INTEGER");
 0103
 0104                            b1.Property<int>("MedicationId")
 0105                                .HasColumnType("INTEGER");
 0106
 0107                            b1.Property<string>("Time")
 0108                                .IsRequired()
 0109                                .HasColumnType("TEXT");
 0110
 0111                            b1.HasKey("Id");
 0112
 0113                            b1.HasIndex("MedicationId");
 0114
 0115                            b1.ToTable("IntakeTime");
 0116
 0117                            b1.WithOwner()
 0118                                .HasForeignKey("MedicationId");
 0119                        });
 0120
 0121                    b.Navigation("IntakeTimes");
 0122                });
 123#pragma warning restore 612, 618
 0124        }
 125    }
 126}