71 lines
2.3 KiB
C#
71 lines
2.3 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using DamageAssesment.Api.SurveyResponses.Db;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace DamageAssesment.Api.Responses.Migrations
|
|
{
|
|
[DbContext(typeof(SurveyResponseDbContext))]
|
|
[Migration("20230927211458_AzureSurveyResponses")]
|
|
partial class AzureSurveyResponses
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.9")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("DamageAssesment.Api.SurveyResponses.Db.SurveyResponse", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ClientDevice")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("CreatedDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("EmployeeId")
|
|
.HasMaxLength(6)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("KeyAnswerResult")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<double?>("Latitude")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("LocationId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double?>("Longitute")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("SurveyId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SurveyResponses");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|