<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\PendingSingleSms
 *
 * @property int $id
 * @property string $msisdn
 * @property string $sender
 * @property string $message
 * @property \Carbon\Carbon $sched_datetime
 * @property int $user_id
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property-read \App\User $user
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereMessage($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereMsisdn($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereSchedDatetime($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereSender($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\PendingSingleSms whereUserId($value)
 * @mixin \Eloquent
 * @property string $type
 * @method static \Illuminate\Database\Eloquent\Builder|\App\PendingSingleSms whereType($value)
 */
class PendingSingleSms extends Model
{
    protected $fillable = ['msisdn', 'sender', 'message', 'sched_datetime', 'user_id', 'type','message_type','flash'];

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

    protected $dates = ['sched_datetime'];

    protected $table = 'pending_single_sms';
}
