12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * 企业管理Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/11/04
- * Time: 11:50
- */
- namespace JinDouYun\Dao\Enterprise;
- use JinDouYun\Dao\BaseDao;
- class DArticle extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'Article';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',// int NOT NULL,
- 'en_id',// int NOT NULL,
- 'title',// varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '文章标题',
- 'content',// text COLLATE utf8mb4_general_ci NOT NULL COMMENT '文章内容',
- 'type',// tinyint NOT NULL COMMENT '1招聘文章2企业文化',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|