Upload ruck
This commit is contained in:
46
RecordMyRuck/Migrations/20240517025819_CreateRuck.Designer.cs
generated
Normal file
46
RecordMyRuck/Migrations/20240517025819_CreateRuck.Designer.cs
generated
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
36
RecordMyRuck/Migrations/20240517025819_CreateRuck.cs
Normal file
36
RecordMyRuck/Migrations/20240517025819_CreateRuck.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user