Created Order, Refund, Shipping

This commit is contained in:
Khwezi Mngoma
2026-05-26 08:24:38 +02:00
parent 20b747e89c
commit 70860efcfb
19 changed files with 320 additions and 11 deletions
@@ -0,0 +1,17 @@
namespace LiteCharms.Features.MidrandBooks.Orders.Entities;
public class ShippingProviderConfiguration : IEntityTypeConfiguration<ShippingProvider>
{
public void Configure(EntityTypeBuilder<ShippingProvider> builder)
{
builder.ToTable("ShippingProviders");
builder.HasKey(f => f.Id);
builder.Property(f => f.CreatedAt).IsRequired().ValueGeneratedOnAdd().HasDefaultValueSql("now()");
builder.Property(f => f.UpdatedAt).HasDefaultValueSql("now()");
builder.Property(f => f.Type).IsRequired();
builder.Property(f => f.Name).IsRequired().HasMaxLength(100);
builder.Property(f => f.Price).IsRequired().HasPrecision(18, 2);
builder.Property(f => f.Enabled).HasDefaultValue(true);
}
}