-
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 logic and entities for the Genres report
- Loading branch information
1 parent
842d55c
commit 65ed8a5
Showing
20 changed files
with
604 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM mcr.microsoft.com/dotnet/core/aspnet:latest | ||
COPY musiccatalogue.api-1.10.0.0 /opt/musiccatalogue.api-1.10.0.0 | ||
WORKDIR /opt/musiccatalogue.api-1.10.0.0/bin | ||
COPY musiccatalogue.api-1.11.0.0 /opt/musiccatalogue.api-1.11.0.0 | ||
WORKDIR /opt/musiccatalogue.api-1.11.0.0/bin | ||
ENTRYPOINT [ "./MusicCatalogue.Api" ] |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM node:20-alpine | ||
COPY musiccatalogue.ui-1.10.0.0 /opt/musiccatalogue.ui-1.10.0.0 | ||
WORKDIR /opt/musiccatalogue.ui-1.10.0.0 | ||
COPY musiccatalogue.ui-1.11.0.0 /opt/musiccatalogue.ui-1.11.0.0 | ||
WORKDIR /opt/musiccatalogue.ui-1.11.0.0 | ||
RUN npm install | ||
RUN npm run build | ||
ENTRYPOINT [ "npm", "start" ] |
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
255 changes: 255 additions & 0 deletions
255
src/MusicCatalogue.Data/Migrations/20231113072705_GenresReport.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
src/MusicCatalogue.Data/Migrations/20231113072705_GenresReport.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,37 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
#nullable disable | ||
|
||
namespace MusicCatalogue.Data.Migrations | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
/// <inheritdoc /> | ||
public partial class GenresReport : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.CreateTable( | ||
name: "GenreStatistics", | ||
columns: table => new | ||
{ | ||
Genre = table.Column<string>(type: "TEXT", nullable: false), | ||
Artists = table.Column<int>(type: "INTEGER", nullable: true), | ||
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: "GenreStatistics"); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace MusicCatalogue.Entities.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] | ||
public class ExportAttribute : Attribute | ||
{ | ||
public string Name { get; set; } | ||
public int Order { get; set; } | ||
|
||
public ExportAttribute(string name, int order) : base() | ||
{ | ||
Name = name; | ||
Order = order; | ||
} | ||
} | ||
} |
Oops, something went wrong.