Habia un bug en la inyeccion de dependencias de infrastructure, se estaba intentado hacer un servicio usando interfaz + interfaz en vez de intefaz + clase...
231 lines
7.8 KiB
C#
231 lines
7.8 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.Data.Migrations
|
|
{
|
|
[DbContext(typeof(StreamerDbContext))]
|
|
[Migration("20240218123327_cleanArchitectureFromApi")]
|
|
partial class cleanArchitectureFromApi
|
|
{
|
|
/// <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.Actor", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Apellido")
|
|
.HasColumnType("longtext");
|
|
|
|
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.HasKey("Id");
|
|
|
|
b.ToTable("Actor");
|
|
});
|
|
|
|
modelBuilder.Entity("CleanArchitecture.Domain.Director", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Apellido")
|
|
.HasColumnType("longtext");
|
|
|
|
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<int>("VideoId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Director");
|
|
});
|
|
|
|
modelBuilder.Entity("CleanArchitecture.Domain.Streamer", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
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<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime?>("CreatedDate")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int?>("DirectorId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("LastModifiedBy")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime?>("LastModifiedDate")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Nombre")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("StreamerId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DirectorId")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("StreamerId");
|
|
|
|
b.ToTable("Videos");
|
|
});
|
|
|
|
modelBuilder.Entity("CleanArchitecture.Domain.VideoActor", b =>
|
|
{
|
|
b.Property<int>("VideoId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ActorId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime?>("CreatedDate")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("LastModifiedBy")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime?>("LastModifiedDate")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("VideoId", "ActorId");
|
|
|
|
b.HasIndex("ActorId");
|
|
|
|
b.ToTable("VideoActor");
|
|
});
|
|
|
|
modelBuilder.Entity("CleanArchitecture.Domain.Video", b =>
|
|
{
|
|
b.HasOne("CleanArchitecture.Domain.Director", "Director")
|
|
.WithOne("Video")
|
|
.HasForeignKey("CleanArchitecture.Domain.Video", "DirectorId");
|
|
|
|
b.HasOne("CleanArchitecture.Domain.Streamer", "Streamer")
|
|
.WithMany("Videos")
|
|
.HasForeignKey("StreamerId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Director");
|
|
|
|
b.Navigation("Streamer");
|
|
});
|
|
|
|
modelBuilder.Entity("CleanArchitecture.Domain.VideoActor", b =>
|
|
{
|
|
b.HasOne("CleanArchitecture.Domain.Actor", "Actor")
|
|
.WithMany()
|
|
.HasForeignKey("ActorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("CleanArchitecture.Domain.Video", "Video")
|
|
.WithMany()
|
|
.HasForeignKey("VideoId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Actor");
|
|
|
|
b.Navigation("Video");
|
|
});
|
|
|
|
modelBuilder.Entity("CleanArchitecture.Domain.Director", b =>
|
|
{
|
|
b.Navigation("Video");
|
|
});
|
|
|
|
modelBuilder.Entity("CleanArchitecture.Domain.Streamer", b =>
|
|
{
|
|
b.Navigation("Videos");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|