12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
|
|
@ -1,155 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class SfGuardUser
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $username
|
||||
* @property string $algorithm
|
||||
* @property string|null $salt
|
||||
* @property string|null $password
|
||||
* @property int|null $is_active
|
||||
* @property int|null $is_super_admin
|
||||
* @property Carbon|null $last_login
|
||||
* @property string|null $ip_address
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property Collection|ApiUser[] $api_users
|
||||
* @property Collection|Company[] $companies
|
||||
* @property CompanyUser $company_user
|
||||
* @property Collection|Invoice[] $invoices
|
||||
* @property Collection|NewsletterSubscription[] $newsletter_subscriptions
|
||||
* @property Collection|PressRelease[] $press_releases
|
||||
* @property ResponsibleCompanyUser $responsible_company_user
|
||||
* @property Collection|SfGuardRememberKey[] $sf_guard_remember_keys
|
||||
* @property SfGuardUserGroup $sf_guard_user_group
|
||||
* @property SfGuardUserPermission $sf_guard_user_permission
|
||||
* @property Collection|SfGuardUserProfile[] $sf_guard_user_profiles
|
||||
* @property Collection|UserBillingAddress[] $user_billing_addresses
|
||||
* @property Collection|UserPaymentOption[] $user_payment_options
|
||||
* @package App\Models
|
||||
* @property-read int|null $api_users_count
|
||||
* @property-read int|null $companies_count
|
||||
* @property-read int|null $invoices_count
|
||||
* @property-read int|null $newsletter_subscriptions_count
|
||||
* @property-read int|null $press_releases_count
|
||||
* @property-read int|null $sf_guard_remember_keys_count
|
||||
* @property-read int|null $sf_guard_user_profiles_count
|
||||
* @property-read int|null $user_billing_addresses_count
|
||||
* @property-read int|null $user_payment_options_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereAlgorithm($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereIpAddress($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereIsActive($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereIsSuperAdmin($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereLastLogin($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser wherePassword($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereSalt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereUsername($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardUser extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_user';
|
||||
|
||||
protected $casts = [
|
||||
'is_active' => 'int',
|
||||
'is_super_admin' => 'int',
|
||||
'last_login' => 'datetime'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'password'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'username',
|
||||
'algorithm',
|
||||
'salt',
|
||||
'password',
|
||||
'is_active',
|
||||
'is_super_admin',
|
||||
'last_login',
|
||||
'ip_address'
|
||||
];
|
||||
|
||||
public function api_users()
|
||||
{
|
||||
return $this->hasMany(ApiUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function companies()
|
||||
{
|
||||
return $this->hasMany(Company::class, 'user_id');
|
||||
}
|
||||
|
||||
public function company_user()
|
||||
{
|
||||
return $this->hasOne(CompanyUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class, 'user_id');
|
||||
}
|
||||
|
||||
public function newsletter_subscriptions()
|
||||
{
|
||||
return $this->hasMany(NewsletterSubscription::class, 'user_id');
|
||||
}
|
||||
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->hasMany(PressRelease::class, 'user_id');
|
||||
}
|
||||
|
||||
public function responsible_company_user()
|
||||
{
|
||||
return $this->hasOne(ResponsibleCompanyUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_remember_keys()
|
||||
{
|
||||
return $this->hasMany(SfGuardRememberKey::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_group()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserGroup::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserPermission::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_profiles()
|
||||
{
|
||||
return $this->hasMany(SfGuardUserProfile::class, 'user_id');
|
||||
}
|
||||
|
||||
public function user_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(UserBillingAddress::class, 'user_id');
|
||||
}
|
||||
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->hasMany(UserPaymentOption::class, 'user_id');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue