1: <?php
2:
3: namespace Aurora\Modules\Min\Models;
4:
5: use Aurora\System\Classes\Model;
6: use Aurora\Modules\Core\Models\User;
7:
8: /**
9: * Aurora\Modules\Min\Models\MinHash
10: *
11: * @property integer $Id
12: * @property string $HashId
13: * @property integer|null $UserId
14: * @property string $Hash
15: * @property string $Data
16: * @property integer|null $ExpireDate
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\Min\Models\MinHash find(int|string $id, array|string $columns = ['*'])
22: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Min\Models\MinHash findOrFail(int|string $id, mixed $id, Closure|array|string $columns = ['*'], Closure $callback = null)
23: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Min\Models\MinHash first(array|string $columns = ['*'])
24: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Min\Models\MinHash 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|MinHash newModelQuery()
26: * @method static \Illuminate\Database\Eloquent\Builder|MinHash newQuery()
27: * @method static \Illuminate\Database\Eloquent\Builder|MinHash query()
28: * @method static \Illuminate\Database\Eloquent\Builder|MinHash create(array $attributes)
29: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Min\Models\MinHash where(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and')
30: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Min\Models\MinHash whereNotNull(string|array $columns, string $boolean = 'and')
31: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereCreatedAt($value)
32: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereData($value)
33: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereExpireDate($value)
34: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereHash($value)
35: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereHashId($value)
36: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereId($value)
37: * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Min\Models\MinHash whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false)
38: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereUpdatedAt($value)
39: * @method static \Illuminate\Database\Eloquent\Builder|MinHash whereUserId($value)
40: * @mixin \Eloquent
41: */
42: class MinHash extends Model
43: {
44: protected $table = 'core_min_hashes';
45:
46: protected $foreignModel = User::class;
47: protected $foreignModelIdColumn = 'UserId'; // Column that refers to an external table
48:
49: protected $fillable = [
50: 'Id',
51: 'HashId',
52: 'UserId',
53: 'Hash',
54: 'Data',
55: 'ExpireDate'
56: ];
57: }
58: