- Frontend: Vue 3 + Inertia.js + Pinia + Tailwind CSS with layout and dashboard page - Infrastructure: Docker Compose with nginx, PHP-FPM, PostgreSQL+pgvector, Redis, Python AI service - Database: 22 migrations covering all domain entities (projects, phases, commitments, decisions, documents, handover, audit) - Models: 23 Eloquent models with relationships, casts, and 14 string-backed enums - AI service: FastAPI scaffold with health, chat, summarize, and search endpoints Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
45 lines
888 B
PHP
45 lines
888 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\SpeerpuntStatus;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Speerpunt extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'thema_id',
|
|
'naam',
|
|
'beschrijving',
|
|
'eigenaar_id',
|
|
'status',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'status' => SpeerpuntStatus::class,
|
|
];
|
|
}
|
|
|
|
public function thema(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Thema::class);
|
|
}
|
|
|
|
public function eigenaar(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class, 'eigenaar_id');
|
|
}
|
|
|
|
public function projects(): HasMany
|
|
{
|
|
return $this->hasMany(Project::class);
|
|
}
|
|
}
|