hyperf-chat/app/Model/Chat/ChatRecordsForward.php

42 lines
841 B
PHP
Raw Normal View History

2020-11-04 17:36:52 +08:00
<?php
declare (strict_types=1);
2020-11-05 17:40:51 +08:00
namespace App\Model\Chat;
use App\Model\BaseModel;
2020-11-04 17:36:52 +08:00
/**
* @property int $id
* @property int $record_id
* @property int $user_id
* @property string $records_id
* @property string $text
* @property \Carbon\Carbon $created_at
*/
2020-11-05 17:40:51 +08:00
class ChatRecordsForward extends BaseModel
2020-11-04 17:36:52 +08:00
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'chat_records_forward';
/**
* The attributes that are mass assignable.
*
* @var array
*/
2020-11-05 17:40:51 +08:00
protected $fillable = [
'record_id', 'user_id', 'created_at'
];
2020-11-04 17:36:52 +08:00
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = ['id' => 'integer', 'record_id' => 'integer', 'user_id' => 'integer', 'created_at' => 'datetime'];
}