<?php declare(strict_types=1); namespace mystic\forum\orm; use mystic\forum\attributes\DefaultValue; use mystic\forum\attributes\PrimaryKey; use mystic\forum\attributes\References; use mystic\forum\attributes\Table; #[Table("public.topics")] class Topic extends Entity { #[PrimaryKey] public string $id; public string $title; public \DateTimeImmutable $creationDate; #[References("public.users", onDelete: References::SET_NULL)] public ?string $createdBy; #[DefaultValue("false")] public bool $isLocked; }