-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserProjectUpdate.php
More file actions
51 lines (45 loc) · 1.95 KB
/
UserProjectUpdate.php
File metadata and controls
51 lines (45 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php namespace PatchNotes\Models;
use Illuminate\Database\Eloquent\Model;
/**
* UserProjectUpdate
*
* @property integer $user_id
* @property integer $project_update_id
* @property integer $project_update_level_id
* @property integer $notification_level_id
* @property string $emailed_at
* @property string $seen_at
* @property-read \User $user
* @property-read \ProjectUpdate $projectUpdate
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereUserId($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereProjectUpdateId($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereProjectUpdateLevelId($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereNotificationLevelId($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereEmailedAt($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereSeenAt($value)
* @property integer $id
* @property integer $project_id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property-read \NotificationLevel $notificationLevel
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereId($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereProjectId($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereCreatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\UserProjectUpdate whereUpdatedAt($value)
*/
class UserProjectUpdate extends Model
{
protected $table = 'user_project_updates';
public function user()
{
return $this->belongsTo('PatchNotes\Models\User');
}
public function projectUpdate()
{
return $this->belongsTo('PatchNotes\Models\ProjectUpdate');
}
public function notificationLevel()
{
return $this->belongsTo('PatchNotes\Models\NotificationLevel');
}
}