Update migrations
This commit is contained in:
@@ -42,4 +42,8 @@
|
|||||||
<ProjectReference Include="..\Domain\Domain.csproj" />
|
<ProjectReference Include="..\Domain\Domain.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Persistence\Migrations\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
+31
-101
@@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace Musify.Infrastructure.Persistence.Migrations
|
namespace Musify.Infrastructure.Persistence.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(Database))]
|
[DbContext(typeof(Database))]
|
||||||
[Migration("20260328141805_FirstMigration")]
|
[Migration("20260513230601_FirstMigration")]
|
||||||
partial class FirstMigration
|
partial class FirstMigration
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -109,86 +109,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.ToTable("PlayListHasTrack");
|
b.ToTable("PlayListHasTrack");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessExecution", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ConversationId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CorrelationId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<string>("ErrorMessage")
|
|
||||||
.HasMaxLength(2048)
|
|
||||||
.HasColumnType("character varying(2048)");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("FinishedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MessageId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<string>("ProcessName")
|
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(256)
|
|
||||||
.HasColumnType("character varying(256)");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<int>("Status")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("CorrelationId", "ProcessName");
|
|
||||||
|
|
||||||
b.ToTable("ProcessExecution");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessStepExecution", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<int>("Attempt")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.Property<int>("ComponentType")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.Property<string>("ErrorMessage")
|
|
||||||
.HasMaxLength(2048)
|
|
||||||
.HasColumnType("character varying(2048)");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("FinishedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<Guid>("ProcessExecutionId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<int>("Status")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.Property<string>("StepName")
|
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(256)
|
|
||||||
.HasColumnType("character varying(256)");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("ProcessExecutionId", "StepName");
|
|
||||||
|
|
||||||
b.ToTable("ProcessStepExecution");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -196,20 +116,23 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
.HasColumnType("uuid");
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
b.Property<string>("AudioFolderName")
|
b.Property<string>("AudioFolderName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
|
b.Property<int>("AudioTranscodeProcessingStatus")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.Property<DateTime>("CreatedDate")
|
b.Property<DateTime>("CreatedDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
b.Property<string>("LargePictureName")
|
b.Property<string>("LargePictureName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastRetryAt")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
b.Property<string>("MediumPictureName")
|
b.Property<string>("MediumPictureName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
@@ -228,8 +151,13 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
|
b.Property<int>("PicturesProcessingStatus")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.Property<int>("RetryCount")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.Property<string>("SmallPictureName")
|
b.Property<string>("SmallPictureName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
@@ -284,6 +212,24 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.Property<DateTime>("CreatedAt")
|
b.Property<DateTime>("CreatedAt")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("FirstName")
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
|
b.Property<string>("SecondName")
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
b.Property<DateTime>("UpdatedAt")
|
b.Property<DateTime>("UpdatedAt")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
@@ -343,17 +289,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.Navigation("Track");
|
b.Navigation("Track");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessStepExecution", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Musify.Domain.Entities.ProcessExecution", "ProcessExecution")
|
|
||||||
.WithMany("Steps")
|
|
||||||
.HasForeignKey("ProcessExecutionId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("ProcessExecution");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.UserHasTrack", b =>
|
modelBuilder.Entity("Musify.Domain.Entities.UserHasTrack", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Musify.Domain.Entities.Track", "Track")
|
b.HasOne("Musify.Domain.Entities.Track", "Track")
|
||||||
@@ -378,11 +313,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.Navigation("PlayListTracks");
|
b.Navigation("PlayListTracks");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessExecution", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Steps");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("PlayListTracks");
|
b.Navigation("PlayListTracks");
|
||||||
+14
-65
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
@@ -10,25 +11,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "ProcessExecution",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
CorrelationId = table.Column<Guid>(type: "uuid", nullable: true),
|
|
||||||
ConversationId = table.Column<Guid>(type: "uuid", nullable: true),
|
|
||||||
MessageId = table.Column<Guid>(type: "uuid", nullable: true),
|
|
||||||
ProcessName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
|
|
||||||
Status = table.Column<int>(type: "integer", nullable: false),
|
|
||||||
StartedDateTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
FinishedDateTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
|
|
||||||
ErrorMessage = table.Column<string>(type: "character varying(2048)", maxLength: 2048, nullable: true)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_ProcessExecution", x => x.Id);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "Tracks",
|
name: "Tracks",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
@@ -37,11 +19,15 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
Title = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
Title = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
||||||
NormalizedTitle = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
NormalizedTitle = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
||||||
OriginalPictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
OriginalPictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
||||||
SmallPictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
SmallPictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
|
||||||
MediumPictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
MediumPictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
|
||||||
LargePictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
LargePictureName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
|
||||||
OriginalAudioName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
OriginalAudioName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
||||||
AudioFolderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
AudioFolderName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
|
||||||
|
PicturesProcessingStatus = table.Column<int>(type: "integer", nullable: false),
|
||||||
|
AudioTranscodeProcessingStatus = table.Column<int>(type: "integer", nullable: false),
|
||||||
|
RetryCount = table.Column<int>(type: "integer", nullable: false),
|
||||||
|
LastRetryAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
|
||||||
CreatedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
CreatedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||||
UpdatedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
UpdatedDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
||||||
},
|
},
|
||||||
@@ -71,6 +57,10 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||||
|
Name = table.Column<string>(type: "character varying(48)", maxLength: 48, nullable: false),
|
||||||
|
NormalizedName = table.Column<string>(type: "character varying(48)", maxLength: 48, nullable: false),
|
||||||
|
FirstName = table.Column<string>(type: "character varying(48)", maxLength: 48, nullable: true),
|
||||||
|
SecondName = table.Column<string>(type: "character varying(48)", maxLength: 48, nullable: true),
|
||||||
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||||
UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
||||||
},
|
},
|
||||||
@@ -79,31 +69,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
table.PrimaryKey("PK_User", x => x.Id);
|
table.PrimaryKey("PK_User", x => x.Id);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "ProcessStepExecution",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
ProcessExecutionId = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
StepName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
|
|
||||||
ComponentType = table.Column<int>(type: "integer", nullable: false),
|
|
||||||
Status = table.Column<int>(type: "integer", nullable: false),
|
|
||||||
Attempt = table.Column<int>(type: "integer", nullable: false),
|
|
||||||
StartedDateTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
FinishedDateTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
|
|
||||||
ErrorMessage = table.Column<string>(type: "character varying(2048)", maxLength: 2048, nullable: true)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_ProcessStepExecution", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_ProcessStepExecution_ProcessExecution_ProcessExecutionId",
|
|
||||||
column: x => x.ProcessExecutionId,
|
|
||||||
principalTable: "ProcessExecution",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "PlayLists",
|
name: "PlayLists",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
@@ -198,16 +163,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
table: "PlayLists",
|
table: "PlayLists",
|
||||||
column: "UserId");
|
column: "UserId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_ProcessExecution_CorrelationId_ProcessName",
|
|
||||||
table: "ProcessExecution",
|
|
||||||
columns: new[] { "CorrelationId", "ProcessName" });
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_ProcessStepExecution_ProcessExecutionId_StepName",
|
|
||||||
table: "ProcessStepExecution",
|
|
||||||
columns: new[] { "ProcessExecutionId", "StepName" });
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_UserHasTrack_TrackId",
|
name: "IX_UserHasTrack_TrackId",
|
||||||
table: "UserHasTrack",
|
table: "UserHasTrack",
|
||||||
@@ -225,9 +180,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "PlayListHasTrack");
|
name: "PlayListHasTrack");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "ProcessStepExecution");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Upload");
|
name: "Upload");
|
||||||
|
|
||||||
@@ -237,9 +189,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "PlayLists");
|
name: "PlayLists");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "ProcessExecution");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Tracks");
|
name: "Tracks");
|
||||||
|
|
||||||
@@ -106,86 +106,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.ToTable("PlayListHasTrack");
|
b.ToTable("PlayListHasTrack");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessExecution", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<Guid?>("ConversationId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<Guid?>("CorrelationId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<string>("ErrorMessage")
|
|
||||||
.HasMaxLength(2048)
|
|
||||||
.HasColumnType("character varying(2048)");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("FinishedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<Guid?>("MessageId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<string>("ProcessName")
|
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(256)
|
|
||||||
.HasColumnType("character varying(256)");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<int>("Status")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("CorrelationId", "ProcessName");
|
|
||||||
|
|
||||||
b.ToTable("ProcessExecution");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessStepExecution", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<int>("Attempt")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.Property<int>("ComponentType")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.Property<string>("ErrorMessage")
|
|
||||||
.HasMaxLength(2048)
|
|
||||||
.HasColumnType("character varying(2048)");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("FinishedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<Guid>("ProcessExecutionId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<DateTime>("StartedDateTime")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<int>("Status")
|
|
||||||
.HasColumnType("integer");
|
|
||||||
|
|
||||||
b.Property<string>("StepName")
|
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(256)
|
|
||||||
.HasColumnType("character varying(256)");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("ProcessExecutionId", "StepName");
|
|
||||||
|
|
||||||
b.ToTable("ProcessStepExecution");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -193,20 +113,23 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
.HasColumnType("uuid");
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
b.Property<string>("AudioFolderName")
|
b.Property<string>("AudioFolderName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
|
b.Property<int>("AudioTranscodeProcessingStatus")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.Property<DateTime>("CreatedDate")
|
b.Property<DateTime>("CreatedDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
b.Property<string>("LargePictureName")
|
b.Property<string>("LargePictureName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastRetryAt")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
b.Property<string>("MediumPictureName")
|
b.Property<string>("MediumPictureName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
@@ -225,8 +148,13 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
|
b.Property<int>("PicturesProcessingStatus")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.Property<int>("RetryCount")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.Property<string>("SmallPictureName")
|
b.Property<string>("SmallPictureName")
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(64)
|
.HasMaxLength(64)
|
||||||
.HasColumnType("character varying(64)");
|
.HasColumnType("character varying(64)");
|
||||||
|
|
||||||
@@ -281,6 +209,24 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.Property<DateTime>("CreatedAt")
|
b.Property<DateTime>("CreatedAt")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("FirstName")
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
|
b.Property<string>("SecondName")
|
||||||
|
.HasMaxLength(48)
|
||||||
|
.HasColumnType("character varying(48)");
|
||||||
|
|
||||||
b.Property<DateTime>("UpdatedAt")
|
b.Property<DateTime>("UpdatedAt")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
@@ -340,17 +286,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.Navigation("Track");
|
b.Navigation("Track");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessStepExecution", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Musify.Domain.Entities.ProcessExecution", "ProcessExecution")
|
|
||||||
.WithMany("Steps")
|
|
||||||
.HasForeignKey("ProcessExecutionId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("ProcessExecution");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.UserHasTrack", b =>
|
modelBuilder.Entity("Musify.Domain.Entities.UserHasTrack", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Musify.Domain.Entities.Track", "Track")
|
b.HasOne("Musify.Domain.Entities.Track", "Track")
|
||||||
@@ -375,11 +310,6 @@ namespace Musify.Infrastructure.Persistence.Migrations
|
|||||||
b.Navigation("PlayListTracks");
|
b.Navigation("PlayListTracks");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.ProcessExecution", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Steps");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
modelBuilder.Entity("Musify.Domain.Entities.Track", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("PlayListTracks");
|
b.Navigation("PlayListTracks");
|
||||||
|
|||||||
Reference in New Issue
Block a user