52 lines
1.1 KiB
PHP
Executable File
52 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* @package App\Models
|
|
* @property int $id
|
|
* @property int $order_id
|
|
* @property string $company_name
|
|
* @property string $inn
|
|
* @property string $bank_name
|
|
* @property string $mfo
|
|
* @property string $oked
|
|
* @property string $payment_account
|
|
* @property string $address
|
|
* @property string $email
|
|
* @property string $phone
|
|
* @property string $director_full_name
|
|
*
|
|
* @property Order $order
|
|
*/
|
|
class UserLegalInfo extends Model
|
|
{
|
|
use HasFactory, SoftDeletes;
|
|
|
|
protected $table = 'user_legal_infos';
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'company_name',
|
|
'inn',
|
|
'bank_name',
|
|
'mfo',
|
|
'oked',
|
|
'payment_account',
|
|
'address',
|
|
'email',
|
|
'phone',
|
|
'director_full_name',
|
|
];
|
|
|
|
public function order(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Order::class);
|
|
}
|
|
}
|