presseportale/dev/_old/Models/UserBillingAddress.php
Kevin Adametz 5b8bdf4182
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
12-05-2026 Frontend dev
2026-05-12 18:32:33 +02:00

91 lines
3.1 KiB
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class UserBillingAddress
*
* @property int $id
* @property int $user_id
* @property int|null $salutation_id
* @property string|null $title
* @property string $name
* @property string|null $address
* @property string|null $address1
* @property string|null $address2
* @property string|null $postal_code
* @property string|null $city
* @property int|null $country_id
* @property string|null $country_name
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Country|null $country
* @property Salutation|null $salutation
* @property SfGuardUser $sf_guard_user
*
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress query()
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereAddress($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereAddress1($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereAddress2($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereCity($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereCountryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereCountryName($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress wherePostalCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereSalutationId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereUserId($value)
*
* @mixin \Eloquent
*/
class UserBillingAddress extends Model
{
protected $table = 'user_billing_address';
protected $casts = [
'user_id' => 'int',
'salutation_id' => 'int',
'country_id' => 'int',
];
protected $fillable = [
'user_id',
'salutation_id',
'title',
'name',
'address',
'address1',
'address2',
'postal_code',
'city',
'country_id',
'country_name',
];
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');
}
}