1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* Copyright (C) 2024 Rafael San José <[email protected]> |
4
|
|
|
* |
5
|
|
|
* This program is free software; you can redistribute it and/or modify |
6
|
|
|
* it under the terms of the GNU General Public License as published by |
7
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
8
|
|
|
* any later version. |
9
|
|
|
* |
10
|
|
|
* This program is distributed in the hope that it will be useful, |
11
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13
|
|
|
* GNU General Public License for more details. |
14
|
|
|
* |
15
|
|
|
* You should have received a copy of the GNU General Public License |
16
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. |
17
|
|
|
*/ |
18
|
|
|
|
19
|
|
|
namespace Dolibarr\Code\FichInter\Model; |
20
|
|
|
|
21
|
|
|
use Carbon\Carbon; |
22
|
|
|
use Dolibarr\Core\Base\Model; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* Class Fichinterdet |
26
|
|
|
* |
27
|
|
|
* @property int $rowid |
28
|
|
|
* @property int|null $fk_fichinter |
29
|
|
|
* @property int|null $fk_parent_line |
30
|
|
|
* @property Carbon|null $date |
31
|
|
|
* @property string|null $description |
32
|
|
|
* @property int|null $duree |
33
|
|
|
* @property int|null $rang |
34
|
|
|
* |
35
|
|
|
* @property Fichinter|null $fichinter |
36
|
|
|
*/ |
37
|
|
|
class Fichinterdet extends Model |
38
|
|
|
{ |
39
|
|
|
public $timestamps = false; |
40
|
|
|
protected $table = 'fichinterdet'; |
41
|
|
|
protected $casts = [ |
42
|
|
|
'fk_fichinter' => 'int', |
43
|
|
|
'fk_parent_line' => 'int', |
44
|
|
|
'date' => 'datetime', |
45
|
|
|
'duree' => 'int', |
46
|
|
|
'rang' => 'int' |
47
|
|
|
]; |
48
|
|
|
|
49
|
|
|
protected $fillable = [ |
50
|
|
|
'fk_fichinter', |
51
|
|
|
'fk_parent_line', |
52
|
|
|
'date', |
53
|
|
|
'description', |
54
|
|
|
'duree', |
55
|
|
|
'rang' |
56
|
|
|
]; |
57
|
|
|
|
58
|
|
|
public function fichinter() |
59
|
|
|
{ |
60
|
|
|
return $this->belongsTo(Fichinter::class, 'fk_fichinter'); |
61
|
|
|
} |
62
|
|
|
} |
63
|
|
|
|