38 lines
578 B
PHP
38 lines
578 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PushMessageTask extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
|
|
protected $casts = [
|
|
'is_pushed'=>'bool',
|
|
];
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'sn',
|
|
'message_id',
|
|
'is_pushed',
|
|
'status',
|
|
'message_type',
|
|
];
|
|
|
|
/**
|
|
* 消息推送任务的消息明细
|
|
*
|
|
* @return void
|
|
*/
|
|
public function message()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|