Upload ruck

This commit is contained in:
2024-05-16 22:30:18 -06:00
commit 50dd696a1b
24 changed files with 858 additions and 0 deletions

View File

@ -0,0 +1,46 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using RecordMyRuck.Models;
#nullable disable
namespace RecordMyRuck.Migrations
{
[DbContext(typeof(RecordMyRuckDbContext))]
[Migration("20240517025819_CreateRuck")]
partial class CreateRuck
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.4");
modelBuilder.Entity("RecordMyRuck.Models.Ruck", b =>
{
b.Property<DateTime>("DateTime")
.HasColumnType("TEXT");
b.Property<string>("Notes")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Route")
.IsRequired()
.HasColumnType("TEXT");
b.Property<float>("WeightPounds")
.HasColumnType("REAL");
b.HasKey("DateTime");
b.ToTable("Rucks");
});
#pragma warning restore 612, 618
}
}
}

View File

@ -0,0 +1,36 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RecordMyRuck.Migrations
{
/// <inheritdoc />
public partial class CreateRuck : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Rucks",
columns: table => new
{
DateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
Route = table.Column<string>(type: "TEXT", nullable: false),
WeightPounds = table.Column<float>(type: "REAL", nullable: false),
Notes = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Rucks", x => x.DateTime);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Rucks");
}
}
}

View File

@ -0,0 +1,43 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using RecordMyRuck.Models;
#nullable disable
namespace RecordMyRuck.Migrations
{
[DbContext(typeof(RecordMyRuckDbContext))]
partial class RecordMyRuckDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.4");
modelBuilder.Entity("RecordMyRuck.Models.Ruck", b =>
{
b.Property<DateTime>("DateTime")
.HasColumnType("TEXT");
b.Property<string>("Notes")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Route")
.IsRequired()
.HasColumnType("TEXT");
b.Property<float>("WeightPounds")
.HasColumnType("REAL");
b.HasKey("DateTime");
b.ToTable("Rucks");
});
#pragma warning restore 612, 618
}
}
}