MexPriceConfig.php 898 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace App\Module\Mex\Models;
  3. use UCore\ModelCore;
  4. /**
  5. * 农贸市场价格配置模型
  6. *
  7. * field start
  8. * @property int $id 配置ID,主键
  9. * @property int $item_id 商品ID,关联物品表
  10. * @property float $min_price 最低价(保底价)
  11. * @property float $max_price 最高价(参考价)
  12. * @property int $protection_threshold 数量保护阈值
  13. * @property bool $is_enabled 是否启用:0禁用,1启用
  14. * @property \Carbon\Carbon $created_at 创建时间
  15. * @property \Carbon\Carbon $updated_at 更新时间
  16. * field end
  17. */
  18. class MexPriceConfig extends ModelCore
  19. {
  20. protected $table = 'mex_price_configs';
  21. protected $casts = [
  22. 'item_id' => 'integer',
  23. 'min_price' => 'decimal:5',
  24. 'max_price' => 'decimal:5',
  25. 'protection_threshold' => 'integer',
  26. 'is_enabled' => 'boolean',
  27. ];
  28. }