113 lines
3.8 KiB
C#
113 lines
3.8 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using TwilioSMSReceiver.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace TwilioSMSReceiver.Data.Migrations
|
|
{
|
|
[DbContext(typeof(SMSDbCtx))]
|
|
[Migration("20211231074942_InitialMigration")]
|
|
partial class InitialMigration
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "6.0.1")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.MMSModel", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("OriginalMMSData")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("SMSModelId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SMSModelId");
|
|
|
|
b.ToTable("MMSMessages");
|
|
});
|
|
|
|
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.MSTeamsWebHook", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<string>("WebHookUri")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("MSTeamsWebHooks");
|
|
});
|
|
|
|
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.SMSModel", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<bool>("IsForwardedYet")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("MessageContents")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ReceivedNumber")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SenderNumber")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("TimeReceived")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SMSMessages");
|
|
});
|
|
|
|
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.MMSModel", b =>
|
|
{
|
|
b.HasOne("TwilioSMSReceiver.Data.Models.SMSModel", "ParentSMSMessage")
|
|
.WithMany("MMSContent")
|
|
.HasForeignKey("SMSModelId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ParentSMSMessage");
|
|
});
|
|
|
|
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.SMSModel", b =>
|
|
{
|
|
b.Navigation("MMSContent");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|