1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gss
- * Date: 2021/4/15 0015
- * Time: 14:49
- */
- namespace JinDouYun\Dao\Goods;
- use JinDouYun\Dao\BaseDao;
- class DGoodsGroups extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'qianniao_goods_groups_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
- 'name',//varchar(255) NOT NULL COMMENT '分组名称',
- 'explain',//text COMMENT '描述',
- 'sort',//int(10) DEFAULT '0' COMMENT '排序 从大到小',
- 'status',//tinyint(1) NOT NULL DEFAULT '5' COMMENT '状态 5启动/4禁用',
- 'deleteStatus',//tinyint(1) NOT NULL DEFAULT '5' COMMENT '删除状态 5正常/4删除',
- 'createTime',//int(10) NOT NULL COMMENT '创建时间',
- 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
- 'extends',//json DEFAULT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|