<?php declare(strict_types=1); namespace mystic\forum\orm; use mystic\forum\attributes\Column; use mystic\forum\attributes\PrimaryKey; use mystic\forum\attributes\References; use mystic\forum\attributes\Table; #[Table("public.attachments")] class Attachment extends Entity { #[PrimaryKey] public string $id; #[References("public.posts", onDelete: References::CASCADE)] public string $postId; public string $name; public string $mimeType; #[Column(columnType: "bytea")] public string $contents; }