InvitationCardModel.php 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. namespace App\Models\Deed;
  3. use App\Models\Model;
  4. /**
  5. * App\Models\Deed\InvitationCardModel
  6. *
  7. * @property int $id
  8. * @property \Illuminate\Support\Carbon $created_at 创建时间
  9. * @property \Illuminate\Support\Carbon $updated_at 修改时间
  10. * @property int $uid 用户
  11. * @property int $invite_uid 邀请用户
  12. * @property int $type 活动类型0:聊天|1:72h|2:王者开黑|3:吃鸡开黑|4:晚安
  13. * @property int $read 邀请函状态:0未读|1已读|2忽略
  14. * @property int $send_read 发送者阅读状态
  15. * @property int $state 状态-1拒绝|0未处理|1同意
  16. * @property int $notice_type 0=开关为关不发送
  17. * 1=公众号客服消息
  18. * 2=公众号模板消息
  19. * 3=短信
  20. * -1=尝试发送但不满足条件或发送失败
  21. * @property int $expired_at 过期时间
  22. * @property int $expired_notice 过期通知时间
  23. * @property int $receive_at 接受时间
  24. * @property string|null $task_photo_answer 爆照任务答案
  25. * @property object|null $task_question_answer 心动考验问题[{问题:{问题形式,问题,答案形式,答案},模版id}]
  26. * @property int $question_type 问题类型:
  27. * 0=无;
  28. * 1=心动爆照;
  29. * 2=问答;
  30. * 3=接唱;
  31. * @property string|null $question_answer 问题回答
  32. * @property int $question_id 问题id
  33. * @property string|null $say_hello 打招呼
  34. * @property string|null $kk
  35. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel newModelQuery()
  36. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel newQuery()
  37. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel query()
  38. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereCreatedAt($value)
  39. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereExpiredAt($value)
  40. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereExpiredNotice($value)
  41. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereId($value)
  42. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereInviteUid($value)
  43. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereKk($value)
  44. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereNoticeType($value)
  45. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereQuestionAnswer($value)
  46. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereQuestionId($value)
  47. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereQuestionType($value)
  48. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereRead($value)
  49. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereReceiveAt($value)
  50. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereSayHello($value)
  51. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereSendRead($value)
  52. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereState($value)
  53. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereTaskPhotoAnswer($value)
  54. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereTaskQuestionAnswer($value)
  55. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereType($value)
  56. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereUid($value)
  57. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Deed\InvitationCardModel whereUpdatedAt($value)
  58. * @mixin \Eloquent
  59. */
  60. class InvitationCardModel extends Model
  61. {
  62. protected $table = 'kdgx_fpdx_invitation_card';
  63. public $dateFormat = 'U';
  64. protected $casts = [
  65. 'task_question_answer' => 'object',
  66. ];
  67. protected $fillable = [
  68. 'id',
  69. 'uid',
  70. 'invite_uid',
  71. 'type',
  72. 'read',
  73. 'send_read',
  74. 'state',
  75. 'notice_type',
  76. 'expired_notice',
  77. 'expired_at',
  78. 'receive_at',
  79. 'question_type',
  80. 'question_answer',
  81. 'question_id',
  82. 'say_hello',
  83. 'kk',
  84. 'paint_id',
  85. 'request_content',
  86. 'response_content'
  87. ];
  88. protected $hidden = ['task_photo_answer', 'task_question_answer'];
  89. }