diff options
Diffstat (limited to 'src/application/mystic/forum/orm/Subscription.php')
-rw-r--r-- | src/application/mystic/forum/orm/Subscription.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/application/mystic/forum/orm/Subscription.php b/src/application/mystic/forum/orm/Subscription.php new file mode 100644 index 0000000..6934685 --- /dev/null +++ b/src/application/mystic/forum/orm/Subscription.php @@ -0,0 +1,14 @@ +<?php + +namespace mystic\forum\orm; + +use mystic\forum\attributes\PrimaryKey; +use mystic\forum\attributes\References; +use mystic\forum\attributes\Table; + +#[Table("public.subscriptions")] +class Subscription extends Entity { + #[PrimaryKey] public string $id; + #[References("public.topics", onDelete: References::CASCADE)] public string $topicId; + #[References("public.users", onDelete: References::CASCADE)] public string $userId; +} |