-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the artist statistics report to the entities and logic
- Loading branch information
1 parent
38e3339
commit 05b648e
Showing
13 changed files
with
373 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
273 changes: 273 additions & 0 deletions
273
src/MusicCatalogue.Data/Migrations/20231113155415_ArtistsReport.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
src/MusicCatalogue.Data/Migrations/20231113155415_ArtistsReport.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
#nullable disable | ||
|
||
namespace MusicCatalogue.Data.Migrations | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
/// <inheritdoc /> | ||
public partial class ArtistsReport : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.CreateTable( | ||
name: "ArtistStatistics", | ||
columns: table => new | ||
{ | ||
Name = table.Column<string>(type: "TEXT", nullable: false), | ||
Albums = table.Column<int>(type: "INTEGER", nullable: true), | ||
Tracks = table.Column<int>(type: "INTEGER", nullable: true), | ||
Spend = table.Column<decimal>(type: "TEXT", nullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
}); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "ArtistStatistics"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.