diff --git a/src/MusicCatalogue.Data/Migrations/20231029075631_BackgroundJobs.Designer.cs b/src/MusicCatalogue.Data/Migrations/20231029075631_BackgroundJobs.Designer.cs deleted file mode 100644 index ba42ae3..0000000 --- a/src/MusicCatalogue.Data/Migrations/20231029075631_BackgroundJobs.Designer.cs +++ /dev/null @@ -1,193 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using MusicCatalogue.Data; - -#nullable disable - -namespace MusicCatalogue.Data.Migrations -{ - [DbContext(typeof(MusicCatalogueDbContext))] - [Migration("20231029075631_BackgroundJobs")] - partial class BackgroundJobs - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder.HasAnnotation("ProductVersion", "7.0.11"); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.Album", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("INTEGER") - .HasColumnName("Id"); - - b.Property("ArtistId") - .HasColumnType("INTEGER") - .HasColumnName("ArtistId"); - - b.Property("CoverUrl") - .HasColumnType("TEXT") - .HasColumnName("CoverUrl"); - - b.Property("Genre") - .HasColumnType("TEXT") - .HasColumnName("Genre"); - - b.Property("Released") - .HasColumnType("INTEGER") - .HasColumnName("Released"); - - b.Property("Title") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("Title"); - - b.HasKey("Id"); - - b.HasIndex("ArtistId"); - - b.ToTable("ALBUMS", (string)null); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.Artist", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("INTEGER") - .HasColumnName("Id"); - - b.Property("Name") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("Name"); - - b.HasKey("Id"); - - b.ToTable("ARTISTS", (string)null); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.JobStatus", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("INTEGER") - .HasColumnName("id"); - - b.Property("End") - .HasColumnType("DATETIME") - .HasColumnName("end"); - - b.Property("Error") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("error"); - - b.Property("Name") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("name"); - - b.Property("Parameters") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("parameters"); - - b.Property("Start") - .HasColumnType("DATETIME") - .HasColumnName("start"); - - b.HasKey("Id"); - - b.ToTable("JOB_STATUS", (string)null); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.Track", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("INTEGER") - .HasColumnName("Id"); - - b.Property("AlbumId") - .HasColumnType("INTEGER") - .HasColumnName("AlbumId"); - - b.Property("Duration") - .HasColumnType("INTEGER") - .HasColumnName("Duration"); - - b.Property("Number") - .HasColumnType("INTEGER") - .HasColumnName("Number"); - - b.Property("Title") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("Title"); - - b.HasKey("Id"); - - b.HasIndex("AlbumId"); - - b.ToTable("TRACKS", (string)null); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("INTEGER") - .HasColumnName("id"); - - b.Property("Password") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("Password"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("TEXT") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.ToTable("USER", (string)null); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.Album", b => - { - b.HasOne("MusicCatalogue.Entities.Database.Artist", null) - .WithMany("Albums") - .HasForeignKey("ArtistId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.Track", b => - { - b.HasOne("MusicCatalogue.Entities.Database.Album", null) - .WithMany("Tracks") - .HasForeignKey("AlbumId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.Album", b => - { - b.Navigation("Tracks"); - }); - - modelBuilder.Entity("MusicCatalogue.Entities.Database.Artist", b => - { - b.Navigation("Albums"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/MusicCatalogue.Data/Migrations/20231029075631_BackgroundJobs.cs b/src/MusicCatalogue.Data/Migrations/20231029075631_BackgroundJobs.cs deleted file mode 100644 index 45c560d..0000000 --- a/src/MusicCatalogue.Data/Migrations/20231029075631_BackgroundJobs.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Diagnostics.CodeAnalysis; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace MusicCatalogue.Data.Migrations -{ - [ExcludeFromCodeCoverage] - /// - public partial class BackgroundJobs : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "JOB_STATUS", - columns: table => new - { - id = table.Column(type: "INTEGER", nullable: false) - .Annotation("Sqlite:Autoincrement", true), - name = table.Column(type: "TEXT", nullable: false), - parameters = table.Column(type: "TEXT", nullable: false), - start = table.Column(type: "DATETIME", nullable: false), - end = table.Column(type: "DATETIME", nullable: true), - error = table.Column(type: "TEXT", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_JOB_STATUS", x => x.id); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "JOB_STATUS"); - } - } -}