QuestionModel.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Models;
  3. /**
  4. * App\Models\QuestionModel
  5. *
  6. * @property int $id 主键
  7. * @property \Illuminate\Support\Carbon $created_at 创建时间
  8. * @property \Illuminate\Support\Carbon|null $updated_at 更新时间
  9. * @property int|null $deleted_at 删除时间
  10. * @property string $title 标题
  11. * @property string|null $content 内容
  12. * @property string $type 类别
  13. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel newModelQuery()
  14. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel newQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel query()
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel whereContent($value)
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel whereCreatedAt($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel whereDeletedAt($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel whereId($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel whereTitle($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel whereType($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\QuestionModel whereUpdatedAt($value)
  23. * @mixin \Eloquent
  24. */
  25. class QuestionModel extends Model
  26. {
  27. protected $table = 'questions';
  28. public $dateFormat = 'U';
  29. protected $fillable = ['id', 'created_at', 'updated_at', 'deleted_at', 'title', 'content', 'type'];
  30. }