Files
aibuddytool/app/Models/AiToolKeyword.php
2023-11-26 18:56:40 +08:00

51 lines
930 B
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class AiToolKeyword
*
* @property int $id
* @property int $category_id
* @property int $ai_tool_id
* @property string $value
* @property string $value_lowercased
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Category $category
* @property AiTool $ai_tool
*/
class AiToolKeyword extends Model
{
protected $table = 'ai_tool_keywords';
protected $casts = [
'category_id' => 'int',
'ai_tool_id' => 'int',
];
protected $fillable = [
'category_id',
'ai_tool_id',
'value',
'value_lowercased',
];
public function category()
{
return $this->belongsTo(Category::class);
}
public function ai_tool()
{
return $this->belongsTo(AiTool::class);
}
}