<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Person
 *
 * @property int $id
 * @property string $first_name
 * @property string $last_name
 * @property string|null $full_name
 * @property string $email
 * @property string $phone_number
 * @property array $meta
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property string|null $deleted_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Person onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereEmail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereFirstName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereFullName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereLastName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereMeta($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person wherePhoneNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Person whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Person withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Person withoutTrashed()
 * @mixin \Eloquent
 */
class Person extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'first_name', 'last_name', 'full_name', 'email', 'phone_number', 'meta'
    ];

    protected $casts = ['id' => 'int', 'meta' => 'array'];
    protected $table = 'people';
}
