1234567891011121314151617181920212223 |
- <?php
- namespace app\common\model;
- use think\Model;
- class WorkerLog extends Model
- {
- // 设置字段信息
- protected $schema = [
- 'id' => 'int',
- 'workerid' => 'int',
- 'userid' => 'int',
- 'ltotal' => 'int',
- 'createtime' => 'int'
- ];
-
- // 设置字段自动转换类型
- protected $type = [
- 'createtime' => 'timestamp:Y-m-d'
- ];
-
- }
|