@@ -3,20 +3,41 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Crypt;
|
||||
|
||||
/**
|
||||
* @property string $id
|
||||
* @property int|null $owner_user_id
|
||||
* @property string|null $anonymous_token_hash
|
||||
* @property int $version_no
|
||||
* @property string $create_key_hash
|
||||
* @property string $create_payload_hash
|
||||
* @property string $snapshot_sha256
|
||||
* @property string $personal_snapshot
|
||||
* @property string $economic_snapshot
|
||||
* @property Carbon|null $deleted_at
|
||||
* @property Carbon|null $expires_at
|
||||
* @property string|null $claimed_token_hash
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*/
|
||||
class SimulationFormDraft extends Model
|
||||
{
|
||||
public $incrementing = false;
|
||||
|
||||
protected $table = 'simulation_form_drafts';
|
||||
|
||||
protected $keyType = 'string';
|
||||
|
||||
protected $fillable = [
|
||||
'id', 'owner_user_id', 'anonymous_token_hash', 'version_no', 'create_key_hash', 'create_payload_hash', 'snapshot_sha256',
|
||||
'personal_snapshot', 'economic_snapshot', 'deleted_at',
|
||||
'personal_snapshot', 'economic_snapshot', 'deleted_at', 'expires_at', 'claimed_token_hash',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['version_no' => 'integer', 'deleted_at' => 'immutable_datetime'];
|
||||
return ['version_no' => 'integer', 'deleted_at' => 'immutable_datetime', 'expires_at' => 'immutable_datetime'];
|
||||
}
|
||||
|
||||
/** @param array<string,mixed> $snapshot */
|
||||
|
||||
Reference in New Issue
Block a user