summaryrefslogtreecommitdiff
path: root/src/Models/User/State.php
blob: 2ccf909fb076ebc67d24cf615b486290d197bb38 (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
39
40
41
42
43
44
<?php

namespace Engelsystem\Models\User;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Query\Builder as QueryBuilder;

/**
 * @property bool        $arrived
 * @property Carbon|null $arrival_date
 * @property bool        $active
 * @property bool        $force_active
 * @property bool        $got_shirt
 * @property int         $got_voucher
 *
 * @method static QueryBuilder|Collection|State[] whereArrived($value)
 * @method static QueryBuilder|Collection|State[] whereArrivalDate($value)
 * @method static QueryBuilder|Collection|State[] whereActive($value)
 * @method static QueryBuilder|Collection|State[] whereForceActive($value)
 * @method static QueryBuilder|Collection|State[] whereGotShirt($value)
 * @method static QueryBuilder|Collection|State[] whereGotVoucher($value)
 */
class State extends HasUserModel
{
    /** @var string The table associated with the model */
    protected $table = 'users_state';

    /** @var array The attributes that should be mutated to dates */
    protected $dates = [
        'arrival_date',
    ];

    /** The attributes that are mass assignable */
    protected $fillable = [
        'user_id',
        'arrived',
        'arrival_date',
        'active',
        'force_active',
        'got_shirt',
        'got_voucher',
    ];
}