first commit
This commit is contained in:
commit
405df0a122
3083 changed files with 69203 additions and 0 deletions
129
dev/Models/SfGuardUserProfile.php
Normal file
129
dev/Models/SfGuardUserProfile.php
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class SfGuardUserProfile
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $user_id
|
||||
* @property int $salutation_id
|
||||
* @property string|null $title
|
||||
* @property string $first_name
|
||||
* @property string $last_name
|
||||
* @property string $address
|
||||
* @property int $country_id
|
||||
* @property string|null $phone
|
||||
* @property string $email
|
||||
* @property Carbon|null $birthdate
|
||||
* @property string $language
|
||||
* @property string|null $backlink_url
|
||||
* @property int|null $show_stats
|
||||
* @property Carbon|null $validation_date
|
||||
* @property Carbon|null $contract_date
|
||||
* @property string $registration_type
|
||||
* @property string|null $validate
|
||||
* @property string $api_key
|
||||
* @property string|null $tax_id_number
|
||||
* @property int|null $tax_exempt
|
||||
* @property string|null $tax_exempt_reason
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property int $disable_footer_code
|
||||
* @property Country $country
|
||||
* @property Salutation $salutation
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereAddress($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereApiKey($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereBacklinkUrl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereBirthdate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereContractDate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereCountryId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereDisableFooterCode($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereEmail($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereFirstName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereLanguage($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereLastName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile wherePhone($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereRegistrationType($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereSalutationId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereShowStats($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereTaxExempt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereTaxExemptReason($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereTaxIdNumber($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereTitle($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereValidate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereValidationDate($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardUserProfile extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_user_profile';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'salutation_id' => 'int',
|
||||
'country_id' => 'int',
|
||||
'birthdate' => 'datetime',
|
||||
'show_stats' => 'int',
|
||||
'validation_date' => 'datetime',
|
||||
'contract_date' => 'datetime',
|
||||
'tax_exempt' => 'int',
|
||||
'disable_footer_code' => 'int'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'salutation_id',
|
||||
'title',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'address',
|
||||
'country_id',
|
||||
'phone',
|
||||
'email',
|
||||
'birthdate',
|
||||
'language',
|
||||
'backlink_url',
|
||||
'show_stats',
|
||||
'validation_date',
|
||||
'contract_date',
|
||||
'registration_type',
|
||||
'validate',
|
||||
'api_key',
|
||||
'tax_id_number',
|
||||
'tax_exempt',
|
||||
'tax_exempt_reason',
|
||||
'disable_footer_code'
|
||||
];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue