# depicter/trunk/app/src/Database/Entity/QueueJob.php

Depicter — Popup &amp; Slider Builder, version trunk. 43 lines.

- Page: https://pluginprobe.com/plugins/depicter/trunk/code/app/src/Database/Entity/QueueJob.php
- Raw: https://pluginprobe.com/plugins/depicter/trunk/raw/app/src/Database/Entity/QueueJob.php
- Modified: 2025-12-27T08:49:18+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/depicter/trunk/code/app/src/Database/Entity/QueueJob.php#L10-L20`.

```php
<?php
namespace Depicter\Database\Entity;

use Averta\WordPress\Database\Entity\Model;

class QueueJob extends Model
{
	protected $idColumn = 'id';

	/**
	 * Resource name.
	 *
	 * @var string
	 */
	protected $resource = 'depicter_queue_jobs';

	/**
	 * Determines what fields can be saved without be explicitly.
	 *
	 * @var array
	 */
	protected $builtin = [
		'attempts',
		'reserved_at',
        'available_at',
		'created_at',
		'status',
        'last_error'
	];

	protected $guard = [ 'id' ];

	protected $format = [
		'created_at'  => 'currentDateTime',
		'reserved_at'  => 'currentDateTime',
        'available_at' => 'currentDateTime',
	];

	public function currentDateTime() {
        return gmdate('Y-m-d H:i:s', time());
    }
}

```
