//
using System;
using InventoryService.Api.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace InventoryService.Api.Migrations
{
[DbContext(typeof(InventoryContext))]
[Migration("20181102180834_AddModifiedColumn")]
partial class AddModifiedColumn
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.1.4-rtm-31024")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("InventoryService.Api.Models.InventoryItem", b =>
{
b.Property("Sku")
.ValueGeneratedOnAdd();
b.Property("Modified");
b.Property("Quantity");
b.HasKey("Sku");
b.ToTable("Inventory");
});
modelBuilder.Entity("InventoryService.Api.Models.SecretUser", b =>
{
b.Property("Username")
.ValueGeneratedOnAdd();
b.Property("Password");
b.HasKey("Username");
b.ToTable("SecretUsers");
});
#pragma warning restore 612, 618
}
}
}