Restore local changes after Git corruption

This commit is contained in:
root
2026-01-10 07:00:36 +00:00
parent 395bfa5e75
commit 915b4fe95d
20 changed files with 1453 additions and 75 deletions

View File

@@ -10,20 +10,20 @@ class PcBuild extends Model
use HasFactory;
protected $fillable = [
'user_id',
'name',
'description',
'user_id',
'is_ai_generated',
'ai_prompt',
];
protected $casts = [
'is_ai_generated' => 'boolean',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
// 👇 Связь "многие-ко-многим" с компонентами
public function components()
{
return $this->belongsToMany(Component::class, 'pc_build_components');
}
// Связь с пользователем
// Если хотите, можно добавить обратную связь (опционально)
public function user()
{
return $this->belongsTo(User::class);