feat: [상품관리] 카테고리별 최저 개발비/최저 구독료 설정 기능 추가

- 카테고리 관리에서 최저 개발비, 최저 구독료 설정 가능
- 상품 추가/수정 시 최저가 이하 입력 차단 (서버 검증)
- 상품 목록에 최저가 안내 배너 표시 (경고 아이콘)
- 상품 모달에서 실시간 최저가 미달 경고 표시 (빨간 테두리)
This commit is contained in:
김보곤
2026-03-14 11:52:52 +09:00
parent fa2f023ee3
commit bd81eebf07
3 changed files with 237 additions and 10 deletions

View File

@@ -14,6 +14,8 @@
* @property string $name
* @property string|null $description
* @property string $base_storage
* @property float $min_development_fee
* @property float $min_subscription_fee
* @property int $display_order
* @property bool $is_active
*/
@@ -22,6 +24,7 @@ class SalesProductCategory extends Model
use SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'sales_product_categories';
protected $fillable = [
@@ -29,11 +32,15 @@ class SalesProductCategory extends Model
'name',
'description',
'base_storage',
'min_development_fee',
'min_subscription_fee',
'display_order',
'is_active',
];
protected $casts = [
'min_development_fee' => 'decimal:2',
'min_subscription_fee' => 'decimal:2',
'display_order' => 'integer',
'is_active' => 'boolean',
];