123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * OEM套餐Dao
- * Created by PhpStorm.
- * User: luli
- * Date: 2021/7/12
- * Time: 12:00
- */
- namespace JinDouYun\Dao\Agent;
- use JinDouYun\Dao\BaseDao;
- class DMeal extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'oem_meal';
- $this->_primary = 'id';
- $this->_fields = [
- "id",// int(10) NOT NULL AUTO_INCREMENT COMMENT '套餐主键id',
- "name", //varchar(50) NOT NULL COMMENT '套餐名',
- "price", //decimal(15,4) DEFAULT '0.0000' COMMENT '价格',
- "content", //text COMMENT '说明',
- "createTime", //int(11) DEFAULT NULL COMMENT '创建日期',
- "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
- "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|