generated from ccuffs/template-english
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Project.php
37 lines (30 loc) · 841 Bytes
/
Project.php
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
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Project extends Model
{
const TYPE_PLAN = 1; // draft, early project, etc
const TYPE_FINAL = 2; // able to submit for final defense
const STATUS_WAITING_SUPERVISION = 1;
const STATUS_RUNNING = 2;
const STATUS_WAITING_EXAMINATORS = 3;
const STATUS_IN_EXAMINATION = 4;
const STATUS_APPROVED = 5;
const STATUS_FAILED = 6;
const STATUS_CANCELED = 7;
protected $fillable = [
'title',
'abstract',
'period',
'type',
'status'
];
public function logs()
{
return $this->hasMany('App\Log');
}
public function particpations()
{
return $this->hasMany('App\Participation');
}
}