DCustomerCard.Class.php 859 B

1234567891011121314151617181920212223242526272829303132333435
  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\Customer;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCustomerCard extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'customer_card';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id",//int unsigned NOT NULL AUTO_INCREMENT,
  19. "customer_id",// int NOT NULL,
  20. "enterprise_id",// int NOT NULL,
  21. "card_id", // int NOT NULL,
  22. "status", // tinyint NOT NULL DEFAULT '1' COMMENT '0使用完1正常',
  23. "createTime",// int NOT NULL,
  24. ];
  25. $this->_readonly = ['id'];
  26. $this->_create_autofill = [
  27. 'createTime' => time()
  28. ];
  29. parent::__construct($serviceDB);
  30. }
  31. }