38 lines
776 B
PHP
38 lines
776 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Inquiry extends Model
|
|
{
|
|
protected $fillable = [
|
|
'company_name',
|
|
'contact_name',
|
|
'email',
|
|
'email_verified_at',
|
|
'verification_code',
|
|
'phone',
|
|
'desired_subdomain',
|
|
'employee_count',
|
|
'requested_features',
|
|
'notes',
|
|
'status',
|
|
'payment_reference',
|
|
'rejection_reason',
|
|
'approved_by_user_id',
|
|
'approved_at',
|
|
];
|
|
|
|
protected $casts = [
|
|
'requested_features' => 'array',
|
|
'email_verified_at' => 'datetime',
|
|
'approved_at' => 'datetime',
|
|
];
|
|
|
|
public function approver()
|
|
{
|
|
return $this->belongsTo(User::class, 'approved_by_user_id');
|
|
}
|
|
}
|