59 lines
1.9 KiB
C#
Raw Normal View History

2023-08-18 17:14:41 -04:00
// <auto-generated />
2023-09-27 17:18:48 -04:00
using System;
using DamageAssesment.Api.Answers.Db;
2023-08-18 17:14:41 -04:00
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
2023-09-27 17:18:48 -04:00
namespace DamageAssesment.Api.Answers.Migrations
2023-08-18 17:14:41 -04:00
{
2023-09-27 17:18:48 -04:00
[DbContext(typeof(AnswerDbContext))]
[Migration("20230927173358_InitialAnswercreate")]
partial class InitialAnswercreate
2023-08-18 17:14:41 -04:00
{
/// <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);
2023-09-27 17:18:48 -04:00
modelBuilder.Entity("DamageAssesment.Api.Answers.Db.Answer", b =>
2023-08-18 17:14:41 -04:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2023-09-27 17:18:48 -04:00
b.Property<string>("AnswerText")
2023-08-18 17:14:41 -04:00
.IsRequired()
2023-09-27 17:18:48 -04:00
.HasMaxLength(250)
.HasColumnType("nvarchar(250)");
2023-08-18 17:14:41 -04:00
2023-09-27 17:18:48 -04:00
b.Property<string>("Comment")
2023-08-18 17:14:41 -04:00
.IsRequired()
2023-09-27 17:18:48 -04:00
.HasColumnType("nvarchar(max)");
2023-08-18 17:14:41 -04:00
2023-09-27 17:18:48 -04:00
b.Property<int>("QuestionId")
.HasColumnType("int");
b.Property<int?>("SurveyResponseId")
2023-08-18 17:14:41 -04:00
.HasColumnType("int");
b.HasKey("Id");
2023-09-27 17:18:48 -04:00
b.ToTable("Answers");
2023-08-18 17:14:41 -04:00
});
#pragma warning restore 612, 618
}
}
}