FormAnswerModel.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Models\Fpdx;
  3. use App\Models\Model;
  4. /**
  5. * App\Models\Fpdx\FormAnswerModel
  6. *
  7. * @property int $id
  8. * @property int $uid 用户ID
  9. * @property int $form_id 表单ID
  10. * @property int $question_id 问题ID
  11. * @property string $type 答案类型
  12. * @property string $answer 答案
  13. * @property \Illuminate\Support\Carbon $created_at 创建时间
  14. * @property \Illuminate\Support\Carbon $updated_at 修改时间
  15. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel newModelQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel newQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel query()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereAnswer($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereCreatedAt($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereFormId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereId($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereQuestionId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereType($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereUid($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fpdx\FormAnswerModel whereUpdatedAt($value)
  26. * @mixin \Eloquent
  27. */
  28. class FormAnswerModel extends Model
  29. {
  30. //
  31. protected $table = "fpdx_pair_form_answers";
  32. protected $dateFormat = 'U';
  33. public $fillable = ['uid', 'form_id', 'question_id', 'type', 'answer'];
  34. }