|
|
|
@ -0,0 +1,41 @@ |
|
|
|
|
// <auto-generated /> |
|
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
|
using MinimumWebAPIWithEF.DB; |
|
|
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
|
|
namespace MinimumWebAPIWithEF.Migrations |
|
|
|
|
{ |
|
|
|
|
[DbContext(typeof(PizzaDb))] |
|
|
|
|
[Migration("20240611055656_InitialCreate")] |
|
|
|
|
partial class InitialCreate |
|
|
|
|
{ |
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|
|
|
|
{ |
|
|
|
|
#pragma warning disable 612, 618 |
|
|
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.6"); |
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("MinimumWebAPIWithEF.Models.Pizza", b => |
|
|
|
|
{ |
|
|
|
|
b.Property<int>("Id") |
|
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
|
.HasColumnType("INTEGER"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("Description") |
|
|
|
|
.HasColumnType("TEXT"); |
|
|
|
|
|
|
|
|
|
b.Property<string>("Name") |
|
|
|
|
.HasColumnType("TEXT"); |
|
|
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
|
|
b.ToTable("Pizzas"); |
|
|
|
|
}); |
|
|
|
|
#pragma warning restore 612, 618 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |