This commit is contained in:
2023-11-26 18:56:40 +08:00
parent be14f5fdb1
commit 64431e7a73
144 changed files with 497072 additions and 3730 deletions

View File

@@ -0,0 +1,50 @@
<?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);
}
}