53 lines
1.6 KiB
PHP
53 lines
1.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class IQContentFaq
|
|
*
|
|
* @property int $id
|
|
* @property int $tree_node_id
|
|
* @property int $faq_id
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
* @property AnswerQuestion $answer_question
|
|
* @property IQContentTreeNode $i_q_content_tree_node
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereTreeNodeId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereFaqId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFaq whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class IQContentFaq extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'i_q_content_faqs';
|
|
|
|
protected $fillable = [
|
|
'tree_node_id',
|
|
'faq_id'
|
|
];
|
|
|
|
public function answer_question()
|
|
{
|
|
return $this->belongsTo(AnswerQuestion::class, 'faq_id');
|
|
}
|
|
|
|
public function i_q_content_tree_node()
|
|
{
|
|
return $this->belongsTo(IQContentTreeNode::class, 'tree_node_id');
|
|
}
|
|
}
|