InviteConfigModel.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. namespace App\Models\User;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\User\InviteConfigModel
  6. *
  7. * @property int $uid
  8. * @property bool $task_photo 爆照任务[-1不设置为任务|0不设置为任务(默认)|设置为任务]
  9. * @property bool $task_question 心动考验任务[-1不设置为任务|0不设置为任务(默认)|设置为任务]
  10. * @property bool $task_sing 心动接唱任务[-1不设置为任务|0不设置为任务(默认)|设置为任务]
  11. * @property bool $task_paint 走心一画任务
  12. * 1开启
  13. * 0默认
  14. * -1未开启
  15. * @property array|null $task_question_data 心动考验问题[{问题:{问题形式,问题},模版id}]
  16. * @property array|null $task_sing_data 心动考验接唱
  17. * @property \Illuminate\Support\Carbon $created_at
  18. * @property \Illuminate\Support\Carbon $updated_at
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel newModelQuery()
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel newQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel query()
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereCreatedAt($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskPaint($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskPhoto($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskQuestion($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskQuestionData($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskSing($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskSingData($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereUid($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereUpdatedAt($value)
  31. * @mixin \Eloquent
  32. */
  33. class InviteConfigModel extends Model
  34. {
  35. protected $table = "fpdx_user_invite_config";
  36. protected $primaryKey = 'uid';
  37. public $incrementing = false;
  38. protected $dateFormat = "U";
  39. protected $fillable = [
  40. 'uid',
  41. 'task_photo',
  42. 'task_question',
  43. 'task_sing',
  44. 'task_paint',
  45. 'task_question_data',
  46. 'task_sing_data'
  47. ];
  48. protected $casts = [
  49. 'task_photo' => 'boolean',
  50. 'task_question' => 'boolean',
  51. 'task_sing' => 'boolean',
  52. 'task_paint' => 'boolean',
  53. 'task_question_data' => 'array',
  54. 'task_sing_data' => 'array'
  55. ];
  56. }