Created Author, Book, AuthorBook, Page and Product with Price

This commit is contained in:
Khwezi Mngoma
2026-05-25 22:18:53 +02:00
parent 87da491ed6
commit d55bf4f82f
39 changed files with 1383 additions and 23 deletions
@@ -0,0 +1,10 @@
namespace LiteCharms.Features.MidrandBooks.Products.Models;
public class CreateProductPrice
{
public long ProductId { get; set; }
public decimal Amount { get; set; }
public decimal Discount { get; set; }
}
@@ -0,0 +1,30 @@
using LiteCharms.Features.Models;
namespace LiteCharms.Features.MidrandBooks.Products.Models;
public class Product
{
public long Id { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
public ProductTypes Type { get; set; }
public string? Name { get; set; }
public string? Summary { get; set; }
public string? Description { get; set; }
public string? ImageUrl { get; set; }
public string[]? ThumbnailUrls { get; set; }
public string[]? Categories { get; set; }
public ProductMetadata? Metadata { get; set; }
public bool Enabled { get; set; }
}
@@ -0,0 +1,18 @@
namespace LiteCharms.Features.MidrandBooks.Products.Models;
public class ProductPrice
{
public long Id { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
public long ProductId { get; set; }
public decimal Amount { get; set; }
public decimal Discount { get; set; }
public bool Enabled { get; set; }
}
@@ -0,0 +1,22 @@
using LiteCharms.Features.Models;
namespace LiteCharms.Features.MidrandBooks.Products.Models;
public record CreateProduct
{
public required ProductTypes Type { get; set; }
public required string Name { get; set; }
public required string Summary { get; set; }
public required string Description { get; set; }
public required string ImageUrl { get; set; }
public string[]? ThumbnailUrls { get; set; }
public string[]? Categories { get; set; }
public ProductMetadata? Metadata { get; set; }
}