1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace plunner; |
4
|
|
|
|
5
|
|
|
use Illuminate\Database\Eloquent\Model; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class Meeting |
9
|
|
|
* |
10
|
|
|
* @package plunner |
11
|
|
|
* @author Claudio Cardinale <[email protected]> |
12
|
|
|
* @copyright 2015 Claudio Cardinale |
13
|
|
|
* @version 1.0.0 |
14
|
|
|
* @property integer $id |
15
|
|
|
* @property string $title |
16
|
|
|
* @property string $description |
17
|
|
|
* @property string $meeting_start |
18
|
|
|
* @property string $meeting_end |
19
|
|
|
* @property \Carbon\Carbon $created_at |
20
|
|
|
* @property \Carbon\Carbon $updated_at |
21
|
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\plunner\Employee[] $employees |
22
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereId($value) |
23
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereTitle($value) |
24
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereDescription($value) |
25
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereMeetingStart($value) |
26
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereMeetingEnd($value) |
27
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereCreatedAt($value) |
28
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereUpdatedAt($value) |
29
|
|
|
* @property integer $utc |
30
|
|
|
* @property integer $repeat |
31
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereUtc($value) |
32
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereRepeat($value) |
33
|
|
|
* @property integer $group_id |
34
|
|
|
* @property string $start_time |
35
|
|
|
* @property integer $duration |
36
|
|
|
* @property-read Group $group |
37
|
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\plunner\MeetingTimeslot[] $timeslots |
38
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereGroupId($value) |
39
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereStartTime($value) |
40
|
|
|
* @method static \Illuminate\Database\Query\Builder|\plunner\Meeting whereDuration($value) |
41
|
|
|
*/ |
42
|
|
|
class Meeting extends Model |
43
|
|
|
{ |
44
|
|
|
/** |
45
|
|
|
* The attributes that are mass assignable. |
46
|
|
|
* |
47
|
|
|
* @var array |
48
|
|
|
*/ |
49
|
|
|
protected $fillable = ['title', 'description', 'duration']; |
50
|
|
|
|
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
54
|
|
|
*/ |
55
|
|
|
public function group() |
56
|
|
|
{ |
57
|
|
|
return $this->belongsTo(Group::class); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
public function timeslots() |
61
|
|
|
{ |
62
|
|
|
return $this->hasMany('plunner\MeetingTimeslot'); |
63
|
|
|
} |
64
|
|
|
} |
65
|
|
|
|