ActivityModel.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Models\Goodnight;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Goodnight\ActivityModel
  6. *
  7. * @property int $id
  8. * @property int $opened_at 报名开启时间
  9. * @property int $closed_at 报名关闭时间
  10. * @property int $showed_at 显示时间
  11. * @property int $end_at 活动结束时间
  12. * @property int $created_at
  13. * @property int $updated_at
  14. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel newModelQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel newQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel query()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereClosedAt($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereCreatedAt($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereEndAt($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereOpenedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereShowedAt($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereUpdatedAt($value)
  24. * @mixin \Eloquent
  25. */
  26. class ActivityModel extends Model
  27. {
  28. //
  29. protected $table = 'kdgx_goodnight_activitys';
  30. protected $fillable = ['opened_at', 'closed_at', 'showed_at', 'end_at'];
  31. protected $dateFormat = 'U';
  32. protected $casts = [
  33. 'created_at' => 'timestamp',
  34. 'updated_at' => 'timestamp',
  35. 'showed_at' => 'timestamp',
  36. 'opened_at' => 'timestamp',
  37. 'closed_at' => 'timestamp',
  38. ];
  39. }