summaryrefslogtreecommitdiff
path: root/src/Models/User/PersonalData.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-06 14:15:54 +0200
committermsquare <msquare@notrademark.de>2018-10-31 13:43:23 +0100
commit8e62c4c52c27f9432820915deeb699c3d1f58ce7 (patch)
tree43d22891924aeaa42108c21309da6b09b5390128 /src/Models/User/PersonalData.php
parentb443b53919f50bd0176e7b67dfd1efc28276a770 (diff)
Added new user models
Diffstat (limited to 'src/Models/User/PersonalData.php')
-rw-r--r--src/Models/User/PersonalData.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/Models/User/PersonalData.php b/src/Models/User/PersonalData.php
new file mode 100644
index 00000000..bdd0bafb
--- /dev/null
+++ b/src/Models/User/PersonalData.php
@@ -0,0 +1,42 @@
+<?php
+
+namespace Engelsystem\Models\User;
+
+/**
+ * @property string $first_name
+ * @property string $last_name
+ * @property string $shirt_size
+ * @property \Carbon\Carbon $arrival_date
+ * @property \Carbon\Carbon $planned_arrival_date
+ * @property \Carbon\Carbon $planned_departure_date
+ *
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData whereFirstName($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData whereLastName($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData whereShirtSize($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData whereArrivalDate($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData wherePlannedArrivalDate($value)
+ * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\PersonalData wherePlannedDepartureDate($value)
+ */
+class PersonalData extends HasUserModel
+{
+ /** @var string The table associated with the model */
+ protected $table = 'users_personal_data';
+
+ /** @var array The attributes that should be mutated to dates */
+ protected $dates = [
+ 'arrival_date',
+ 'planned_arrival_date',
+ 'planned_departure_date',
+ ];
+
+ /** The attributes that are mass assignable. */
+ protected $fillable = [
+ 'user_id',
+ 'first_name',
+ 'last_name',
+ 'shirt_size',
+ 'arrival_date',
+ 'planned_arrival_date',
+ 'planned_departure_date',
+ ];
+}