summaryrefslogtreecommitdiff
path: root/app/Model/UserMetadataModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/UserMetadataModel.php')
-rw-r--r--app/Model/UserMetadataModel.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/Model/UserMetadataModel.php b/app/Model/UserMetadataModel.php
new file mode 100644
index 00000000..e931d3ba
--- /dev/null
+++ b/app/Model/UserMetadataModel.php
@@ -0,0 +1,35 @@
+<?php
+
+namespace Kanboard\Model;
+
+/**
+ * User Metadata
+ *
+ * @package Kanboard\Model
+ * @author Frederic Guillot
+ */
+class UserMetadataModel extends MetadataModel
+{
+ /**
+ * Get the table
+ *
+ * @abstract
+ * @access protected
+ * @return string
+ */
+ protected function getTable()
+ {
+ return 'user_has_metadata';
+ }
+
+ /**
+ * Define the entity key
+ *
+ * @access protected
+ * @return string
+ */
+ protected function getEntityKey()
+ {
+ return 'user_id';
+ }
+}