DShopCardBind.Class.php 807 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 DShopCardBind extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'shop_card_bind';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id",// int unsigned NOT NULL AUTO_INCREMENT,
  19. "card_id",// int NOT NULL COMMENT '优惠卡id',
  20. "shop_id",// int NOT NULL,
  21. "project_id",// int NOT NULL,
  22. "number",// int NOT NULL COMMENT '使用次数',
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. parent::__construct($serviceDB);
  29. }
  30. }