Dataexport.php 764 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\admin\model\routine;
  3. use think\Model;
  4. use think\model\relation\BelongsTo;
  5. /**
  6. * Dataexport
  7. */
  8. class Dataexport extends Model
  9. {
  10. // 表名
  11. protected $name = 'dataexport';
  12. // 自动写入时间戳字段
  13. protected $autoWriteTimestamp = 'int';
  14. protected $createTime = 'createtime';
  15. protected $updateTime = false;
  16. protected $type = [
  17. 'lastexporttime' => 'timestamp:Y-m-d H:i:s',
  18. 'join_table' => 'array',
  19. 'field_config' => 'array',
  20. 'where_field' => 'array',
  21. 'order_field' => 'array',
  22. 'subtask' => 'array',
  23. ];
  24. public function admin(): BelongsTo
  25. {
  26. return $this->belongsTo(\app\admin\model\Admin::class, 'admin_id', 'id');
  27. }
  28. }