< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 114
Coverable lines: 114
Total lines: 158
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
File 1: Up(...)100%210%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%210%

File(s)

/home/runner/work/lifechart/lifechart/src/LifeChart.Infrastructure/Migrations/20260603152209_AddIsHypomanic.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace LifeChart.Infrastructure.Migrations
 6{
 7    /// <inheritdoc />
 8    public partial class AddIsHypomanic : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 013            migrationBuilder.AddColumn<bool>(
 014                name: "IsHypomanic",
 015                table: "DailyEntries",
 016                type: "INTEGER",
 017                nullable: false,
 018                defaultValue: false);
 019        }
 20
 21        /// <inheritdoc />
 22        protected override void Down(MigrationBuilder migrationBuilder)
 23        {
 024            migrationBuilder.DropColumn(
 025                name: "IsHypomanic",
 026                table: "DailyEntries");
 027        }
 28    }
 29}

/home/runner/work/lifechart/lifechart/src/LifeChart.Infrastructure/Migrations/20260603152209_AddIsHypomanic.Designer.cs

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