TicketModel.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Models\Welfare;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Welfare\TicketModel
  6. *
  7. * @property int $id
  8. * @property int $uid
  9. * @property string $type 获取的类型
  10. * @property int $value 邀请人/被邀请人的uid
  11. * @property int $lottery_id 抽奖活动ID
  12. * @property string $ticket_code 兑换码
  13. * @property int $lucky 是否中奖
  14. * @property \Illuminate\Support\Carbon $created_at 创建时间
  15. * @property \Illuminate\Support\Carbon $updated_at 修改时间
  16. * @property int $deleted_at 删除时间
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel newQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel query()
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereDeletedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereLotteryId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereLucky($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereTicketCode($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereType($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereUid($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereUpdatedAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Welfare\TicketModel whereValue($value)
  30. * @mixin \Eloquent
  31. */
  32. class TicketModel extends Model
  33. {
  34. protected $table = "kdgx_fpdx_welfare_lottery_tickets";
  35. protected $dateFormat = 'U';
  36. public $fillable = ['uid', 'lottery_id', 'type', 'value', 'ticket_code', 'lucky', 'deleted_at'];
  37. }