//
using System;
using DotnetToLambda.Core.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace DotnetToLambda.Core.Infrastructure.Migrations
{
[DbContext(typeof(BookingContext))]
[Migration("20220131202551_InitialCreate")]
partial class InitialCreate
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "3.1.22")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("DotnetToLambda.Core.Booking", b =>
{
b.Property("BookingId")
.HasColumnType("varchar(767)");
b.Property("CancellationReason")
.HasColumnType("text");
b.Property("ChargeId")
.HasColumnType("text");
b.Property("ConfirmedOn")
.HasColumnType("datetime");
b.Property("CustomerId")
.HasColumnType("varchar(767)");
b.Property("OutboundFlightId")
.HasColumnType("text");
b.Property("Status")
.HasColumnType("int");
b.HasKey("BookingId")
.HasName("PK_BookingId");
b.HasIndex("CustomerId")
.HasName("UX_Booking_CustomerId");
b.ToTable("Bookings");
});
#pragma warning restore 612, 618
}
}
}