DShopClock.Class.php 847 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * 商铺管理模块
  4. * Created by PhpStorm.
  5. * User: wxj
  6. * Date: 2019/10/31
  7. * Time: 15:02
  8. */
  9. namespace JinDouYun\Dao\Shop;
  10. use JinDouYun\Dao\BaseDao;
  11. class DShopClock extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'shop_clock';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", // int unsigned NOT NULL AUTO_INCREMENT,
  19. "shop_id", // int NOT NULL COMMENT '商店id',
  20. "uid", // int NOT NULL COMMENT '员工id',
  21. "time", // vint DEFAULT NULL COMMENT '打卡时间',
  22. "createTime", // int DEFAULT NULL COMMENT '创建时间',
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. parent::__construct($serviceDB);
  29. }
  30. }