summaryrefslogtreecommitdiff
path: root/src/application/mystic/forum/orm/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/mystic/forum/orm/User.php')
-rw-r--r--src/application/mystic/forum/orm/User.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/application/mystic/forum/orm/User.php b/src/application/mystic/forum/orm/User.php
new file mode 100644
index 0000000..3b531b4
--- /dev/null
+++ b/src/application/mystic/forum/orm/User.php
@@ -0,0 +1,17 @@
+<?php
+declare(strict_types=1);
+
+namespace mystic\forum\orm;
+
+use mystic\forum\attributes\PrimaryKey;
+use mystic\forum\attributes\Table;
+
+#[Table("public.users")]
+class User extends Entity {
+ #[PrimaryKey]
+ public string $id;
+ public string $name;
+ public string $displayName;
+ public \DateTimeImmutable $created;
+ public string $passwordHash;
+}