59 lines
1.7 KiB
PHP
59 lines
1.7 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class IQContentFileTag
|
|
*
|
|
* @property int $id
|
|
* @property int $file_id
|
|
* @property int $tag_id
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* //* @property IQContentFile $i_q_content_file
|
|
* @property IQContentTag $i_q_content_tag
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag whereFileId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag whereTagId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\IQContentFileTag whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class IQContentFileTag extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'i_q_content_file_tags';
|
|
|
|
protected $casts = [
|
|
'file_id' => 'int',
|
|
'tag_id' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'file_id',
|
|
'tag_id'
|
|
];
|
|
|
|
/*public function i_q_content_file()
|
|
{
|
|
return $this->belongsTo(IQContentFile::class, 'file_id');
|
|
}*/
|
|
|
|
public function i_q_content_tag()
|
|
{
|
|
return $this->belongsTo(IQContentTag::class, 'tag_id');
|
|
}
|
|
}
|