Scaffold full project: Vue 3/Inertia frontend, Docker infra, domain model
- 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>
This commit is contained in:
40
app/Models/Thema.php
Normal file
40
app/Models/Thema.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Enums\Prioriteit;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class Thema extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
'naam',
|
||||
'beschrijving',
|
||||
'prioriteit',
|
||||
'periode_start',
|
||||
'periode_eind',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'prioriteit' => Prioriteit::class,
|
||||
'periode_start' => 'date',
|
||||
'periode_eind' => 'date',
|
||||
];
|
||||
}
|
||||
|
||||
public function speerpunten(): HasMany
|
||||
{
|
||||
return $this->hasMany(Speerpunt::class);
|
||||
}
|
||||
|
||||
public function roadmapItems(): HasMany
|
||||
{
|
||||
return $this->hasMany(RoadmapItem::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user