34 lines
676 B
PHP
34 lines
676 B
PHP
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\common\model;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class ImageBaseModel extends Model
|
|
{
|
|
// 表名
|
|
protected $name = 'sys_image';
|
|
|
|
// 主键
|
|
protected $pk = 'id';
|
|
|
|
// 字段信息
|
|
protected $schema = [
|
|
'id' => 'int',
|
|
'language_id' => 'int',
|
|
'module' => 'string',
|
|
'image_path' => 'string',
|
|
'image_thumb' => 'string',
|
|
'image_size' => 'int',
|
|
'image_type' => 'string',
|
|
'image_md5' => 'string',
|
|
'image_sha1' => 'string',
|
|
'created_at' => 'datetime',
|
|
'deleted_at' => 'datetime',
|
|
];
|
|
}
|