31 lines
723 B
PHP
31 lines
723 B
PHP
|
|
<?php
|
||
|
|
namespace app\model\Openim;
|
||
|
|
|
||
|
|
use think\Model;
|
||
|
|
/**
|
||
|
|
* @property string $engine
|
||
|
|
* @property string $name
|
||
|
|
* @property string $content_type
|
||
|
|
* @property datetime $create_time
|
||
|
|
* @property string $group
|
||
|
|
* @property string $key
|
||
|
|
* @property int $size
|
||
|
|
*/
|
||
|
|
class S3 extends \app\model\Base
|
||
|
|
{
|
||
|
|
protected $table = 's3';
|
||
|
|
protected $schema = [
|
||
|
|
'engine' => 'string',
|
||
|
|
'name' => 'string',
|
||
|
|
'content_type' => 'string',
|
||
|
|
'create_time' => 'datetime',
|
||
|
|
'group' => 'string',
|
||
|
|
'key' => 'string',
|
||
|
|
'size' => 'int',
|
||
|
|
];
|
||
|
|
protected function getOptions(): array{
|
||
|
|
return array_merge(parent::getOptions(),[
|
||
|
|
'connection' => 'immongodb',
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|