1: <?php
2:
3: namespace Aurora\System\Models;
4:
5: use Aurora\System\Classes\Model;
6: use Aurora\Modules\Core\Models\User;
7:
8: /**
9: * Aurora\System\Models\AuthToken
10: *
11: * @property integer $Id
12: * @property integer $UserId
13: * @property integer $AccountId
14: * @property string $AccountType
15: * @property string $Token
16: * @property integer $LastUsageDateTime
17: * @property \Illuminate\Support\Carbon|null $CreatedAt
18: * @property \Illuminate\Support\Carbon|null $UpdatedAt
19: * @property-read mixed $entity_id
20: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\System\Models\AuthToken firstWhere(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and')
21: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken newModelQuery()
22: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken newQuery()
23: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken query()
24: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\System\Models\AuthToken where(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and')
25: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken whereCreatedAt($value)
26: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken whereId($value)
27: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\System\Models\AuthToken whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false)
28: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken whereLastUsageDateTime($value)
29: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken whereToken($value)
30: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken whereUpdatedAt($value)
31: * @method static \Illuminate\Database\Eloquent\Builder|AuthToken whereUserId($value)
32: * @method static void truncate()
33: * @mixin \Eloquent
34: */
35: class AuthToken extends Model
36: {
37: protected $table = 'core_auth_tokens';
38:
39: protected $foreignModel = User::class;
40: protected $foreignModelIdColumn = 'UserId'; // Column that refers to an external table
41:
42: protected $fillable = [
43: 'Id',
44: 'UserId',
45: 'AccountId',
46: 'AccountType',
47: 'Token'
48: ];
49: }
50: