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\EmailCollector\Model; |
20
|
|
|
|
21
|
|
|
use Carbon\Carbon; |
22
|
|
|
use Dolibarr\Core\Base\Model; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* Class EmailcollectorEmailcollectoraction |
26
|
|
|
* |
27
|
|
|
* @property int $rowid |
28
|
|
|
* @property int $fk_emailcollector |
29
|
|
|
* @property string $type |
30
|
|
|
* @property string|null $actionparam |
31
|
|
|
* @property Carbon $date_creation |
32
|
|
|
* @property Carbon|null $tms |
33
|
|
|
* @property int $fk_user_creat |
34
|
|
|
* @property int|null $fk_user_modif |
35
|
|
|
* @property int|null $position |
36
|
|
|
* @property string|null $import_key |
37
|
|
|
* @property int $status |
38
|
|
|
* |
39
|
|
|
* @property EmailcollectorEmailcollector $emailcollector_emailcollector |
40
|
|
|
*/ |
41
|
|
|
class EmailcollectorEmailcollectoraction extends Model |
42
|
|
|
{ |
43
|
|
|
public $timestamps = false; |
44
|
|
|
protected $table = 'emailcollector_emailcollectoraction'; |
45
|
|
|
protected $casts = [ |
46
|
|
|
'fk_emailcollector' => 'int', |
47
|
|
|
'date_creation' => 'datetime', |
48
|
|
|
'tms' => 'datetime', |
49
|
|
|
'fk_user_creat' => 'int', |
50
|
|
|
'fk_user_modif' => 'int', |
51
|
|
|
'position' => 'int', |
52
|
|
|
'status' => 'int' |
53
|
|
|
]; |
54
|
|
|
|
55
|
|
|
protected $fillable = [ |
56
|
|
|
'fk_emailcollector', |
57
|
|
|
'type', |
58
|
|
|
'actionparam', |
59
|
|
|
'date_creation', |
60
|
|
|
'tms', |
61
|
|
|
'fk_user_creat', |
62
|
|
|
'fk_user_modif', |
63
|
|
|
'position', |
64
|
|
|
'import_key', |
65
|
|
|
'status' |
66
|
|
|
]; |
67
|
|
|
|
68
|
|
|
public function emailcollector_emailcollector() |
69
|
|
|
{ |
70
|
|
|
return $this->belongsTo(EmailcollectorEmailcollector::class, 'fk_emailcollector'); |
71
|
|
|
} |
72
|
|
|
} |
73
|
|
|
|