1: | <?php |
2: | /** |
3: | * This code is licensed under AGPLv3 license or Afterlogic Software License |
4: | * if commercial version of the product was purchased. |
5: | * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files. |
6: | */ |
7: | |
8: | namespace Aurora\Modules\Core\Models; |
9: | |
10: | use Aurora\System\Classes\Model; |
11: | |
12: | /** |
13: | * The Core Channel class. |
14: | * |
15: | * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 |
16: | * @license https://afterlogic.com/products/common-licensing Afterlogic Software License |
17: | * @copyright Copyright (c) 2023, Afterlogic Corp. |
18: | * |
19: | * @property int $Id Object primary key |
20: | * @property string $Login Channel login |
21: | * @property string $Password Channel password |
22: | * @property string $Description Channel description |
23: | * @property array $Properties Custom properties for use by other modules |
24: | */ |
25: | class Channel extends Model |
26: | { |
27: | protected $table = 'core_channels'; |
28: | protected $moduleName = 'Core'; |
29: | |
30: | /** |
31: | * The attributes that are mass assignable. |
32: | * |
33: | * @var array |
34: | */ |
35: | protected $fillable = [ |
36: | 'Id', |
37: | 'Login', |
38: | 'Password', |
39: | 'Description', |
40: | 'Properties' |
41: | ]; |
42: | |
43: | public $timestamps = [ |
44: | 'UpdatedAt', |
45: | 'CreatedAt', |
46: | ]; |
47: | |
48: | /** |
49: | * The attributes that should be hidden for arrays. |
50: | * |
51: | * @var array |
52: | */ |
53: | protected $hidden = [ |
54: | ]; |
55: | |
56: | protected $casts = [ |
57: | 'Properties' => 'array', |
58: | ]; |
59: | |
60: | protected $attributes = [ |
61: | ]; |
62: | } |
63: |