DArticle.Class.php 878 B

12345678910111213141516171819202122232425262728293031323334
  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 DArticle extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'Article';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',// int NOT NULL,
  19. 'en_id',// int NOT NULL,
  20. 'title',// varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '文章标题',
  21. 'content',// text COLLATE utf8mb4_general_ci NOT NULL COMMENT '文章内容',
  22. 'type',// tinyint NOT NULL COMMENT '1招聘文章2企业文化',
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. parent::__construct($serviceDB);
  29. }
  30. }