DDriver.Class.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: kang
  5. * Date: 2021/4/13
  6. * Time: 19:58
  7. */
  8. namespace JinDouYun\Dao\System;
  9. use JinDouYun\Dao\BaseDao;
  10. class DDriver extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'driverRun';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '配送司机id',
  18. "routeId", //int(10) NOT NULL DEFAULT '0' COMMENT '线路id',
  19. "driverName", //char(20) NOT NULL COMMENT '司机姓名',
  20. "phone", //char(11) NOT NULL COMMENT '司机电话',
  21. "plateNumber", //char(20) NOT NULL COMMENT '车牌号',
  22. "remark", //char(20) DEFAULT NULL COMMENT '备注',
  23. "state", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '启用状态 4:未启用 5:启用',
  24. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '删除状态 4:删除 5:未删除',
  25. "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
  26. "createTime", //int(11) NOT NULL COMMENT '创建时间',
  27. "updateTime", //int(11) DEFAULT NULL COMMENT '修改时间',
  28. "extends", //json DEFAULT NULL COMMENT '扩展字段',
  29. "orderIds", //varchar(255) DEFAULT NULL COMMENT '订单ids',
  30. ];
  31. $this->_readonly = ['id'];
  32. $this->_create_autofill = [
  33. 'createTime' => time()
  34. ];
  35. $this->_update_autofill = [
  36. 'updateTime' => time()
  37. ];
  38. parent::__construct($serviceDB);
  39. }
  40. }