GroupChat.php
537 字节
<?php
namespace addons\qyexternal\model;
use think\Model;
class GroupChat extends Model
{
//数据库
protected $connection = 'database';
// 表名
protected $name = 'qywx_groupchat';
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
protected $deleteTime = false;
public function corp()
{
return $this->hasOne('Corp', "corp_id", "corp_id");
}
}