FormQuestionModel.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Models\Fpdx;
  3. use App\Models\Model;
  4. /**
  5. * App\Models\Fpdx\FormQuestionModel
  6. *
  7. * @property int $id
  8. * @property int $form_id 表单ID
  9. * @property int $sort 排序(从小到大)
  10. * @property string $question 问题
  11. * @property string $type
  12. * @property int $required 是否必填
  13. * @property string|null $options 选项
  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\Fpdx\FormQuestionModel newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel newQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel query()
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereDeletedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereFormId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereOptions($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereQuestion($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereRequired($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereSort($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereType($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormQuestionModel whereUpdatedAt($value)
  30. * @mixin \Eloquent
  31. */
  32. class FormQuestionModel extends Model
  33. {
  34. protected $table = "fpdx_pair_form_questions";
  35. protected $dateFormat = 'U';
  36. public $fillable = ['form_id', 'title', 'question', 'type', 'required', 'options', 'sort', 'deleted_at'];
  37. }