| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * 描述.
- *
- * @author jim <jim458734573@gmail.com>
- * @date 2020-01-10 21:07:11
- */
- declare(strict_types=1);
- namespace App\Model;
- use Hyperf\ModelCache\Cacheable;
- use Hyperf\ModelCache\CacheableInterface;
- class ConfigModel extends BaseModel implements CacheableInterface
- {
- // 使用自动缓存.
- use Cacheable;
- /**
- * 表名.
- *
- * @var string
- */
- protected $table = 'config';
- /**
- * 每个字段格式化数据类型.
- *
- * @var array
- */
- protected $casts = [
- 'id' => 'integer',
- 'created_at' => 'string',
- 'updated_at' => 'string',
- ];
- }
|