Projekt

Obecné

Profil

Stáhnout (625 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 344b1e53 zabran
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Metadata extends Model
8
{
9
    // Table Name
10 92577cfd Marek Lovčí
    protected $table = 'metadata';
11 344b1e53 zabran
    // Primary Key
12 92577cfd Marek Lovčí
    public $primaryKey = 'id';
13 344b1e53 zabran
14
    /**
15
     * Indicates if the model should be timestamped.
16
     *
17
     * @var bool
18
     */
19
    public $timestamps = false;
20
21
    /**
22 10222730 Adam Mištera
     * Get the artefact for this single metadata.
23 344b1e53 zabran
     */
24
    public function artefact(){
25
        return $this->belongsTo('App\Artefact');
26
    }
27
28 01b004be zabran
    /**
29
     * Get the users for the metadata.
30
     */
31
    public function users()
32
    {
33
        return $this->belongsToMany('App\User');
34
    }
35 344b1e53 zabran
}