1: | <?php |
2: | |
3: | namespace Aurora\Modules\StandardAuth\Models; |
4: | |
5: | use Aurora\System\Classes\Account as SystemAccount; |
6: | |
7: | /** |
8: | * Aurora\Modules\StandardAuth\Models\Account |
9: | * |
10: | * @property integer $Id |
11: | * @property integer $IsDisabled |
12: | * @property integer $IdUser |
13: | * @property string $Login |
14: | * @property string $Password |
15: | * @property string $LastModified |
16: | * @property array|null $Properties |
17: | * @property \Illuminate\Support\Carbon|null $CreatedAt |
18: | * @property \Illuminate\Support\Carbon|null $UpdatedAt |
19: | * @property-read mixed $entity_id |
20: | * @method static int count(string $columns = '*') |
21: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\StandardAuth\Models\Account find(int|string $id, array|string $columns = ['*']) |
22: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\StandardAuth\Models\Account findOrFail(int|string $id, mixed $id, Closure|array|string $columns = ['*'], Closure $callback = null) |
23: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\StandardAuth\Models\Account first(array|string $columns = ['*']) |
24: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\StandardAuth\Models\Account firstWhere(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and') |
25: | * @method static \Illuminate\Database\Eloquent\Builder|Account newModelQuery() |
26: | * @method static \Illuminate\Database\Eloquent\Builder|Account newQuery() |
27: | * @method static \Illuminate\Database\Eloquent\Builder|Account query() |
28: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\StandardAuth\Models\Account where(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and') |
29: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereCreatedAt($value) |
30: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereId($value) |
31: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereIdUser($value) |
32: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\StandardAuth\Models\Account whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false) |
33: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereIsDisabled($value) |
34: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereLastModified($value) |
35: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereLogin($value) |
36: | * @method static \Illuminate\Database\Eloquent\Builder|Account wherePassword($value) |
37: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereProperties($value) |
38: | * @method static \Illuminate\Database\Eloquent\Builder|Account whereUpdatedAt($value) |
39: | * @mixin \Eloquent |
40: | */ |
41: | class Account extends SystemAccount |
42: | { |
43: | protected $table = 'standard_auth_accounts'; |
44: | protected $moduleName = 'StandardAuth'; |
45: | |
46: | /** |
47: | * The attributes that are mass assignable. |
48: | * |
49: | * @var array |
50: | */ |
51: | protected $fillable = [ |
52: | 'Id', |
53: | 'IsDisabled', |
54: | 'IdUser', |
55: | 'Login', |
56: | 'Password', |
57: | 'LastModified', |
58: | 'Properties' |
59: | ]; |
60: | |
61: | /** |
62: | * The attributes that should be hidden for arrays. |
63: | * |
64: | * @var array |
65: | */ |
66: | protected $hidden = [ |
67: | ]; |
68: | |
69: | protected $casts = [ |
70: | 'Properties' => 'array', |
71: | 'Password' => \Aurora\System\Casts\Encrypt::class |
72: | ]; |
73: | |
74: | protected $attributes = [ |
75: | ]; |
76: | |
77: | public function getLogin() |
78: | { |
79: | return $this->Login; |
80: | } |
81: | |
82: | public function getPassword() |
83: | { |
84: | return $this->Password; |
85: | } |
86: | |
87: | public function setPassword($sPassword) |
88: | { |
89: | $this->Password = $sPassword; |
90: | } |
91: | } |
92: |