DPersonnel.Class.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * 企业管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/11/04
  7. * Time: 11:50
  8. */
  9. namespace JinDouYun\Dao\Enterprise;
  10. use JinDouYun\Dao\BaseDao;
  11. class DPersonnel extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'personnel';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',// int unsigned NOT NULL AUTO_INCREMENT,
  19. 'en_id',// int NOT NULL,
  20. 'avatar',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  21. 'name',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名',
  22. 'duties',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '职务',
  23. 'phone',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系方式',
  24. 'address',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '地址',
  25. 'job_no',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '工号',
  26. 'business',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务',
  27. 'type',// tinyint NOT NULL COMMENT '1招商2连锁3共享股东4高管',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }