summaryrefslogtreecommitdiff
path: root/src/Models/User/PersonalData.php
blob: 921e821ed1c6d9deac07184ef5e907d73de37d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php

namespace Engelsystem\Models\User;

/**
 * @property string|null         $first_name
 * @property string|null         $last_name
 * @property string|null         $shirt_size
 * @property \Carbon\Carbon|null $planned_arrival_date
 * @property \Carbon\Carbon|null $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[] 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 = [
        'planned_arrival_date',
        'planned_departure_date',
    ];

    /** The attributes that are mass assignable. */
    protected $fillable = [
        'user_id',
        'first_name',
        'last_name',
        'shirt_size',
        'planned_arrival_date',
        'planned_departure_date',
    ];
}