1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * Created by PhpStorm.
- * User: kang
- * Date: 2021/6/9
- * Time: 17:28
- */
- namespace JinDouYun\Dao\Stock;
- use JinDouYun\Dao\BaseDao;
- class DStorageLocation extends BaseDao
- {
- public function __construct($serviceDB = 'stock')
- {
- $this->_table = 'storage_Location';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
- 'enterpriseId',//int(10) NOT NULL COMMENT '企业id',
- 'areaId',//int(10) NOT NULL COMMENT '库区id',
- 'name',//varchar(255) NOT NULL DEFAULT '' COMMENT '库位名称',
- 'code',//varchar(255) NOT NULL DEFAULT '' COMMENT '库位编码',
- 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(10) DEFAULT NULL COMMENT '修改时间',
- 'extend',//json DEFAULT NULL COMMENT '扩展字段',
- 'deleteStatus',//tinyint(255) NOT NULL DEFAULT '5' COMMENT '删除状态',
- 'enableStatus',//tinyint(255) NOT NULL DEFAULT '5' COMMENT '启用状态 5启用 4未启用',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
-
- parent::__construct($serviceDB);
- }
- }
|