123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * 企业管理Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/11/04
- * Time: 11:50
- */
- namespace JinDouYun\Dao\Enterprise;
- use JinDouYun\Dao\BaseDao;
- class DPersonnel extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'personnel';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',// int unsigned NOT NULL AUTO_INCREMENT,
- 'en_id',// int NOT NULL,
- 'avatar',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
- 'name',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名',
- 'duties',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '职务',
- 'phone',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系方式',
- 'address',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '地址',
- 'job_no',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '工号',
- 'business',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务',
- 'type',// tinyint NOT NULL COMMENT '1招商2连锁3共享股东4高管',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|