<?php

namespace App;

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

/**
 * App\UserJob
 *
 * @property int $id
 * @property string $name
 * @property int $user_id
 * @property string $username
 * @property string $sender
 * @property string $message
 * @property int $sms_count
 * @property int $total_traffic
 * @property string $datetime
 * @property string $file_path
 * @property \Carbon\Carbon $sched_datetime
 * @property string $sent_datetime
 * @property string $status
 * @property string $type
 * @property string $created_by
 * @property string $task_started_date
 * @property string $task_completed_date
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property \Carbon\Carbon $deleted_at
 * @property string $group_ids
 * @property bool $progress
 * @property int $row_number
 * @property-read \App\User $user
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereCreatedBy($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereDatetime($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereDeletedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereFilePath($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereGroupIds($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereMessage($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereName($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereProgress($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereRowNumber($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereSchedDatetime($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereSender($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereSentDatetime($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereSmsCount($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereStatus($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereTaskCompletedDate($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereTaskStartedDate($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereTotalTraffic($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereType($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob whereUsername($value)
 * @mixin \Eloquent
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\UserJob withoutTrashed()
 * @property int $remove_duplicate
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserJob whereRemoveDuplicate($value)
 * @property string|null $flash
 * @method static \Illuminate\Database\Eloquent\Builder|\App\UserJob whereFlash($value)
 */
class UserJob extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'username', 'sender', 'created_by', 'type', 'name', 'progress','message_type',
        'message', 'sms_count', 'datetime', 'file_path', 'total_traffic', 'user_id',
        'sched_datetime', 'sent_datetime', 'status', 'group_ids', 'remove_duplicate','flash'
    ];

    public function user() {
        return $this->belongsTo('App\User');
    }

    protected $dates = ['sched_datetime', 'deleted_at'];
}
