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