1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\admin\model\routine;
- use think\Model;
- class Dataexport extends Model
- {
-
- protected $name = 'dataexport';
-
- protected $autoWriteTimestamp = 'int';
- protected $createTime = 'createtime';
- protected $updateTime = false;
- protected $type = [
- 'lastexporttime' => 'timestamp:Y-m-d H:i:s',
- 'join_table' => 'array',
- 'field_config' => 'array',
- 'where_field' => 'array',
- 'order_field' => 'array',
- 'subtask' => 'array',
- ];
- public function admin()
- {
- return $this->belongsTo(\app\admin\model\Admin::class, 'admin_id', 'id');
- }
- }
|