|
|
@@ -0,0 +1,45 @@
|
|
|
+<?php
|
|
|
+// +----------------------------------------------------------------------
|
|
|
+// | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
|
|
|
+// +----------------------------------------------------------------------
|
|
|
+// | 版权所有 2017~2021 LARAVEL研发中心
|
|
|
+// +----------------------------------------------------------------------
|
|
|
+// | 官方网站: http://www.laravel.cn
|
|
|
+// +----------------------------------------------------------------------
|
|
|
+// | Author: laravel开发员 <laravel.qq.com>
|
|
|
+// +----------------------------------------------------------------------
|
|
|
+
|
|
|
+namespace App\Models;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 会议签到记录-模型
|
|
|
+ * @author laravel开发员
|
|
|
+ * @since 2020/11/11
|
|
|
+ * @package App\Models
|
|
|
+ */
|
|
|
+class MeetingRecordsModel extends BaseModel
|
|
|
+{
|
|
|
+ // 设置数据表
|
|
|
+ protected $table = 'meetings_records';
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 推荐组织人
|
|
|
+ */
|
|
|
+ public function member()
|
|
|
+ {
|
|
|
+ return $this->hasOne(MemberModel::class, 'id','user_id')
|
|
|
+ ->where(['mark'=>1])
|
|
|
+ ->select(['id', 'nickname','avatar', 'username', 'mobile', 'status']);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 会议
|
|
|
+ */
|
|
|
+ public function meeting()
|
|
|
+ {
|
|
|
+ return $this->hasOne(MeetingModel::class, 'id','meeting_id')
|
|
|
+ ->where(['mark'=>1])
|
|
|
+ ->select(['id', 'title','thumb', 'company', 'status']);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|