123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Created by PhpStorm.
- * User: kang
- * Date: 2021/3/27
- * Time: 12:03
- */
- namespace JinDouYun\Dao\Goods;
- use JinDouYun\Dao\BaseDao;
- class DGoodsSupport extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = "goods_service";
- $this->_primary = 'id';
- $this->_fields = [
- 'id' , // int(11) NOT NULL AUTO_INCREMENT COMMENT '商品服务主键id',
- 'servicesName' , // varchar(255) NOT NULL COMMENT '商品服务名称',
- 'describe' , // varchar(255) DEFAULT NULL COMMENT '商品服务描述',
- 'Icon' , // mediumblob COMMENT '商品服务图标',
- 'createTime' , // int(11) NOT NULL COMMENT '创建时间',
- 'updateTime' , // int(11) DEFAULT NULL COMMENT '修改时间',
- 'extends' , // json NOT NULL COMMENT '扩展字段',
- 'deleteStatus' , // tinyint(3) NOT NULL DEFAULT '5' COMMENT '删除状态 4是删除,5是正常',
- 'enterprise' , // int(11) NOT NULL DEFAULT '0' COMMENT '企业id',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|