diff options
Diffstat (limited to 'src/application/mystic/forum/orm/Topic.php')
-rw-r--r-- | src/application/mystic/forum/orm/Topic.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/application/mystic/forum/orm/Topic.php b/src/application/mystic/forum/orm/Topic.php new file mode 100644 index 0000000..202fc50 --- /dev/null +++ b/src/application/mystic/forum/orm/Topic.php @@ -0,0 +1,15 @@ +<?php +declare(strict_types=1); + +namespace mystic\forum\orm; + +use mystic\forum\attributes\PrimaryKey; +use mystic\forum\attributes\Table; + +#[Table("public.topics")] +class Topic extends Entity { + #[PrimaryKey] + public string $id; + public string $title; + public \DateTimeImmutable $creationDate; +} |