21 lines
497 B
PHP
Executable File
21 lines
497 B
PHP
Executable File
<?php
|
|
|
|
namespace Modules\Licensing\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class LicenseDeliveryOutbox extends Model
|
|
{
|
|
protected $table = 'license_delivery_outbox';
|
|
|
|
protected $fillable = ['license_id', 'encrypted_license_key', 'recipient_email', 'delivered_at'];
|
|
|
|
protected $casts = ['delivered_at' => 'datetime'];
|
|
|
|
public function license(): BelongsTo
|
|
{
|
|
return $this->belongsTo(License::class);
|
|
}
|
|
}
|