subscription.go
10.5 KB
-
feat(subscription): validate price amount and migrate database column type · a7caff9b
- Add validation to ensure subscription plan price amount is non-negative and does not exceed 9999. - Migrate the price_amount column from float/double to decimal(10,6) in the database for improved precision. - Update SubscriptionPlan model to reflect the new decimal type for price_amount.
CaIon committed