1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace App\Models\User;
- use App\Models\Model;
- use Illuminate\Database\Eloquent\Builder;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * App\Models\User\LikeInviteQuestionModel
- *
- * @method static Builder withTrashed()
- * @property int $id
- * @property int $uid 用户
- * @property int $question_type 问题类型0:心动问答;1:接唱
- * @property int $thumbs 点赞数
- * @property int $template_id 模版id
- * @property int $tag_id 标签ID
- * @property int $sex 男声女声
- * @property string $author 作者
- * @property string $question 问题内容
- * @property string $voice_src 语音地址
- * @property \Illuminate\Support\Carbon $created_at 创建时间
- * @property \Illuminate\Support\Carbon $updated_at 更新时间
- * @property int|null $deleted_at
- * @property int $select 精选
- * @property-read \App\Models\User\UserModel $user
- * @method static bool|null forceDelete()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel newQuery()
- * @method static \Illuminate\Database\Query\Builder|\App\Models\User\LikeInviteQuestionModel onlyTrashed()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel query()
- * @method static bool|null restore()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereAuthor($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereDeletedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereQuestion($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereQuestionType($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereSelect($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereSex($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereTagId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereTemplateId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereThumbs($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereUid($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereUpdatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User\LikeInviteQuestionModel whereVoiceSrc($value)
- * @method static \Illuminate\Database\Query\Builder|\App\Models\User\LikeInviteQuestionModel withoutTrashed()
- * @mixin \Eloquent
- */
- class LikeInviteQuestionModel extends Model
- {
- use SoftDeletes;
- protected $table = "kdgx_fpdx_likeinvite_questions";
- public $dateFormat = 'U';
- public $fillable = [
- 'uid',
- 'question',
- 'voice_src',
- 'thumbs',
- 'template_id',
- 'question_type',
- 'sex',
- 'author',
- 'select'
- ];
- public function user()
- {
- return $this->belongsTo(UserModel::class, 'uid', 'uid')->select('nickname', 'headimgurl');
- }
- }
|