1234567891011121314151617181920212223 |
- <?php
- namespace app\common\model;
- class TalentWorkModel extends BaseModel
- {
- // 设置表名
- protected $name = 'talent_work';
- // 设置字段自动转换类型
- protected $type = [
- 'contact' => 'array',
- 'cate' => 'array',
- ];
- const CONTACT = ['来电咨询', '微信咨询', '人才服务专员上门拜访', '人才现场咨询', '其他'];
- const CATE = ['人才津贴', '人才认定', '交通补贴', '购房补贴', '人才活动', '子女就学', '配偶就业', '其他'];
- public function user()
- {
- return $this->hasOne(TalentUserModel::class, 'id', 'user_id');
- }
- }
|