summaryrefslogtreecommitdiff
path: root/src/Models/User/Settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Models/User/Settings.php')
-rw-r--r--src/Models/User/Settings.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Models/User/Settings.php b/src/Models/User/Settings.php
new file mode 100644
index 00000000..8f86e123
--- /dev/null
+++ b/src/Models/User/Settings.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace Engelsystem\Models\User;
+
+/**
+ * @property string $language
+ * @property int $theme
+ * @property bool $email_human
+ * @property bool $email_shiftinfo
+ *
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings whereLanguage($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings whereTheme($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings whereEmailHuman($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Settings whereEmailShiftinfo($value)
+ */
+class Settings extends HasUserModel
+{
+ /** @var string The table associated with the model */
+ protected $table = 'users_settings';
+
+ /** The attributes that are mass assignable */
+ protected $fillable = [
+ 'user_id',
+ 'language',
+ 'theme',
+ 'email_human',
+ 'email_shiftinfo',
+ ];
+}