123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace App\Models\User;
- use Illuminate\Database\Eloquent\Model;
- /**
- * App\Models\User\InviteConfigModel
- *
- * @property int $uid
- * @property bool $task_photo 爆照任务[-1不设置为任务|0不设置为任务(默认)|设置为任务]
- * @property bool $task_question 心动考验任务[-1不设置为任务|0不设置为任务(默认)|设置为任务]
- * @property bool $task_sing 心动接唱任务[-1不设置为任务|0不设置为任务(默认)|设置为任务]
- * @property bool $task_paint 走心一画任务
- * 1开启
- * 0默认
- * -1未开启
- * @property array|null $task_question_data 心动考验问题[{问题:{问题形式,问题},模版id}]
- * @property array|null $task_sing_data 心动考验接唱
- * @property \Illuminate\Support\Carbon $created_at
- * @property \Illuminate\Support\Carbon $updated_at
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel query()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskPaint($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskPhoto($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskQuestion($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskQuestionData($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskSing($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereTaskSingData($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereUid($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\InviteConfigModel whereUpdatedAt($value)
- * @mixin \Eloquent
- */
- class InviteConfigModel extends Model
- {
- protected $table = "fpdx_user_invite_config";
- protected $primaryKey = 'uid';
- public $incrementing = false;
- protected $dateFormat = "U";
- protected $fillable = [
- 'uid',
- 'task_photo',
- 'task_question',
- 'task_sing',
- 'task_paint',
- 'task_question_data',
- 'task_sing_data'
- ];
- protected $casts = [
- 'task_photo' => 'boolean',
- 'task_question' => 'boolean',
- 'task_sing' => 'boolean',
- 'task_paint' => 'boolean',
- 'task_question_data' => 'array',
- 'task_sing_data' => 'array'
- ];
- }
|