initial import

This commit is contained in:
2025-07-30 09:47:03 +02:00
commit b0a186a324
292 changed files with 32323 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ApiProvider extends Model
{
use HasFactory;
protected $fillable = [
'name',
'api_url',
'username',
'password',
'token',
'plugin',
'enabled',
];
protected $casts = [
'enabled' => 'boolean',
];
public function styles()
{
return $this->hasMany(Style::class);
}
public function aiModels()
{
return $this->belongsToMany(AiModel::class, 'ai_model_api_provider');
}
}