Files
CleanArchitecture/CleanArchitecture/CleanArchitecture.Data/Migrations/20240221215002_Initial-Migration.Designer.cs
Alejandro Sarmiento 81a3e91d6e Video 76
Se hizo toda la parte del Unit Of Work y estoy a punto de terminar la de tests unitarios
2024-02-28 22:40:34 +01:00

107 lines
3.6 KiB
C#

// <auto-generated />
using System;
using CleanArchitecture.Infrastructure.Persistence;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace CleanArchitecture.Infrastructure.Migrations
{
[DbContext(typeof(StreamerDbContext))]
[Migration("20240221215002_Initial-Migration")]
partial class InitialMigration
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("CleanArchitecture.Domain.Streamer", b =>
{
b.Property<byte[]>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("binary(16)")
.HasColumnName("Id");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("LastModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("LastModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Nombre")
.HasColumnType("longtext");
b.Property<string>("Url")
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("Streamers");
});
modelBuilder.Entity("CleanArchitecture.Domain.Video", b =>
{
b.Property<byte[]>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("binary(16)")
.HasColumnName("Id");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("LastModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("LastModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Nombre")
.HasColumnType("longtext");
b.Property<byte[]>("StreamerId")
.IsRequired()
.HasColumnType("binary(16)");
b.HasKey("Id");
b.HasIndex("StreamerId");
b.ToTable("Videos");
});
modelBuilder.Entity("CleanArchitecture.Domain.Video", b =>
{
b.HasOne("CleanArchitecture.Domain.Streamer", "Streamer")
.WithMany("Videos")
.HasForeignKey("StreamerId")
.OnDelete(DeleteBehavior.NoAction)
.IsRequired();
b.Navigation("Streamer");
});
modelBuilder.Entity("CleanArchitecture.Domain.Streamer", b =>
{
b.Navigation("Videos");
});
#pragma warning restore 612, 618
}
}
}