StoreModel.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace App\Models\Welfare;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Welfare\StoreModel
  6. *
  7. * @property int $id
  8. * @property string $title
  9. * @property string|null $describe 描述
  10. * @property string $cost 价值:
  11. * @property int $price 兑换所需
  12. * @property int $sort 排序
  13. * @property int $count 商品数量
  14. * @property int $amount 兑换数量
  15. * @property int $state 状态
  16. * @property string $cover_url 封面图
  17. * @property string|null $explain_explain 兑换说明
  18. * @property string|null $receive_explain 领取说明
  19. * @property \Illuminate\Support\Carbon $created_at 创建时间
  20. * @property \Illuminate\Support\Carbon $updated_at 修改时间
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel newModelQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel newQuery()
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel query()
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereAmount($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereCost($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereCount($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereCoverUrl($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereCreatedAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereDescribe($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereExplainExplain($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereId($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel wherePrice($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereReceiveExplain($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereSort($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereState($value)
  36. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereTitle($value)
  37. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\StoreModel whereUpdatedAt($value)
  38. * @mixin \Eloquent
  39. */
  40. class StoreModel extends Model
  41. {
  42. //
  43. protected $table = "kdgx_fpdx_welfare_stores";
  44. protected $dateFormat = 'U';
  45. public $fillable = [
  46. 'title',
  47. 'cost',
  48. 'state',
  49. 'cover_url',
  50. 'sort',
  51. 'price',
  52. 'count',
  53. 'amount',
  54. 'lottery_explain',
  55. 'receive_explain',
  56. 'describe'
  57. ];
  58. }