hyperf-chat/app/Model/Robot.php

49 lines
1.1 KiB
PHP
Raw Normal View History

2021-07-05 21:52:44 +08:00
<?php
declare (strict_types=1);
namespace App\Model;
use Hyperf\DbConnection\Model\Model;
/**
* Class Robot
*
* @property int $id 机器人ID
* @property int $user_id 关联用户ID
* @property int $robot_name 机器人名称
* @property int $describe 描述信息
* @property int $logo 机器人logo
* @property int $is_talk 可发送消息
* @property int $status 状态
2021-10-09 10:43:28 +08:00
* @property int $type 机器人类型
2021-07-05 21:52:44 +08:00
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @package App\Model
*/
class Robot extends Model
{
2021-09-12 16:23:43 +08:00
protected $table = 'robots';
2021-07-05 21:52:44 +08:00
protected $fillable = [
'user_id',
'robot_name',
'describe',
'logo',
'is_talk',
'status',
2021-09-12 16:23:43 +08:00
'type',
2021-07-05 21:52:44 +08:00
'created_at',
'updated_at',
];
protected $casts = [
'user_id' => 'integer',
'is_talk' => 'integer',
'status' => 'integer',
2021-09-12 16:23:43 +08:00
'type' => 'integer',
2021-07-05 21:52:44 +08:00
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
}