123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * 打卡时间模板
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/31
- * Time: 15:02
- */
- namespace JinDouYun\Dao\Customer;
- use JinDouYun\Dao\BaseDao;
- class DCustomerCardNum extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'customer_card_num';
- $this->_primary = 'id';
- $this->_fields = [
- 'id', //int unsigned NOT NULL AUTO_INCREMENT,
- 'customer_card',// int NOT NULL COMMENT '持有优惠卡id',
- 'enterprise_id',// int NOT NULL,
- 'customer_id',// int NOT NULL COMMENT '客户id',
- 'project_id',// int NOT NULL,
- 'number',// int NOT NULL,
- 'createTime',// int NOT NULL,
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|