# fluent-cart/1.6.4/app/Models/OrderDownloadPermission.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 40 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Models/OrderDownloadPermission.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Models/OrderDownloadPermission.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Models/OrderDownloadPermission.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Models;

/**
 *  Meta Model - DB Model for Meta table
 *
 *  Database Model
 *
 * @package FluentCart\App\Models
 *
 * @version 1.0.0
 */
class OrderDownloadPermission extends Model
{
	protected $table = 'fct_order_download_permissions';

	protected $primaryKey = 'id';

	protected $guarded = [ 'id' ];

	protected $fillable = [
		'order_id',
		'variation_id',
		'customer_id',
		'download_id',
		'download_count',
		'download_limit',
		'access_expires',
	];

	public function order() {
		return $this->belongsTo( Order::class, 'order_id', 'id' );
	}

	public function customer() {
		return $this->belongsTo( Customer::class, 'customer_id', 'id' );
	}
}

```
