summaryrefslogtreecommitdiff
path: root/src/application/mystic
diff options
context:
space:
mode:
authorJonas Kohl2024-09-19 14:19:35 +0200
committerJonas Kohl2024-09-19 14:19:35 +0200
commit95bfdb59b6a1e04e474551c23c7caef619c79839 (patch)
tree0fe7bf17c5767df5084dac05c61b4167781b9b1b /src/application/mystic
parentd7faf7053803aaa9eb8ae85a864ea1b2cccaa586 (diff)
Topic locking
Diffstat (limited to 'src/application/mystic')
-rw-r--r--src/application/mystic/forum/orm/Topic.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/application/mystic/forum/orm/Topic.php b/src/application/mystic/forum/orm/Topic.php
index 421f5ec..cfd0c78 100644
--- a/src/application/mystic/forum/orm/Topic.php
+++ b/src/application/mystic/forum/orm/Topic.php
@@ -3,6 +3,7 @@ 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;
@@ -13,4 +14,5 @@ class Topic extends Entity {
public string $title;
public \DateTimeImmutable $creationDate;
#[References("public.users", onDelete: References::SET_NULL)] public ?string $createdBy;
+ #[DefaultValue("false")] public bool $isLocked;
}