feat(product): add product list/detail/save/soldout/batch api support
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 47s
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 47s
This commit is contained in:
@@ -737,6 +737,13 @@ public sealed class TakeoutAppDbContext(
|
||||
builder.Property(x => x.Unit).HasMaxLength(16);
|
||||
builder.Property(x => x.Price).HasPrecision(18, 2);
|
||||
builder.Property(x => x.OriginalPrice).HasPrecision(18, 2);
|
||||
builder.Property(x => x.Kind).HasConversion<int>().HasDefaultValue(Domain.Products.Enums.ProductKind.Single);
|
||||
builder.Property(x => x.SalesMonthly).HasDefaultValue(0);
|
||||
builder.Property(x => x.TagsJson).HasColumnType("text").HasDefaultValue("[]");
|
||||
builder.Property(x => x.SoldoutMode).HasConversion<int?>();
|
||||
builder.Property(x => x.SoldoutReason).HasMaxLength(256);
|
||||
builder.Property(x => x.SyncToPlatform).HasDefaultValue(true);
|
||||
builder.Property(x => x.NotifyManager).HasDefaultValue(false);
|
||||
builder.Property(x => x.CoverImage).HasMaxLength(256);
|
||||
builder.Property(x => x.GalleryImages).HasMaxLength(1024);
|
||||
builder.Property(x => x.Description).HasColumnType("text");
|
||||
|
||||
Reference in New Issue
Block a user