LotteryModel.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace App\Models\Welfare;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Welfare\LotteryModel
  6. *
  7. * @property int $id
  8. * @property string $title 标题
  9. * @property string $cost 价值
  10. * @property int $drawed_at 开奖时间
  11. * @property int $showed_at 显示时间
  12. * @property string $cover_url 封面图
  13. * @property string $share_url 分享图
  14. * @property string $banner_url 横图
  15. * @property int $count 数量
  16. * @property string $lottery_explain 抽奖说明
  17. * @property string $receive_explain 兑换说明
  18. * @property \Illuminate\Support\Carbon $created_at 创建时间
  19. * @property \Illuminate\Support\Carbon $updated_at 修改时间
  20. * @property int $deleted_at 删除时间
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel newModelQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel newQuery()
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel query()
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereBannerUrl($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereCost($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereCount($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereCoverUrl($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereCreatedAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereDeletedAt($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereDrawedAt($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereId($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereLotteryExplain($value)
  33. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereReceiveExplain($value)
  34. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereShareUrl($value)
  35. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereShowedAt($value)
  36. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereTitle($value)
  37. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\LotteryModel whereUpdatedAt($value)
  38. * @mixin \Eloquent
  39. */
  40. class LotteryModel extends Model
  41. {
  42. //
  43. protected $table = "kdgx_fpdx_welfare_lotterys";
  44. protected $dateFormat = 'U';
  45. public $fillable = [
  46. 'title',
  47. 'drawed_at',
  48. 'showed_at',
  49. 'cover_url',
  50. 'share_url',
  51. 'banner_url',
  52. 'cost',
  53. 'price',
  54. 'count',
  55. 'lottery_explain',
  56. 'receive_explain',
  57. 'deleted_at'
  58. ];
  59. }