Completed initial database design
continuous-integration/drone/pr Build is passing

Sealed qualifying public classes
Migrated database changes
This commit is contained in:
Khwezi Mngoma
2026-05-27 09:12:04 +02:00
parent 70860efcfb
commit 902942eee6
86 changed files with 2883 additions and 140 deletions
@@ -1,6 +1,6 @@
namespace LiteCharms.Features.MidrandBooks.Products.Entities;
public class ProductConfiguration : IEntityTypeConfiguration<Product>
public sealed class ProductConfiguration : IEntityTypeConfiguration<Product>
{
public void Configure(EntityTypeBuilder<Product> builder)
{
@@ -1,6 +1,6 @@
namespace LiteCharms.Features.MidrandBooks.Products.Entities;
public class ProductPriceConfiguration : IEntityTypeConfiguration<ProductPrice>
public sealed class ProductPriceConfiguration : IEntityTypeConfiguration<ProductPrice>
{
public void Configure(EntityTypeBuilder<ProductPrice> builder)
{
@@ -1,6 +1,6 @@
namespace LiteCharms.Features.MidrandBooks.Products.Models;
public class CreateProductPrice
public sealed class CreateProductPrice
{
public long ProductId { get; set; }
@@ -2,7 +2,7 @@
namespace LiteCharms.Features.MidrandBooks.Products.Models;
public record CreateProduct
public sealed record CreateProduct
{
public required ProductTypes Type { get; set; }
@@ -6,7 +6,7 @@ using LiteCharms.Features.Models;
namespace LiteCharms.Features.MidrandBooks.Products;
public class ProductService(IDbContextFactory<MidrandBooksDbContext> contextFactory) : IService
public sealed class ProductService(IDbContextFactory<MidrandBooksDbContext> contextFactory) : IService
{
public async ValueTask<Result> UpdateProductPriceStatusAsync(long productPriceId, bool isEnabled, CancellationToken cancellationToken = default)
{