'integer', 'max_attempts' => 'integer', 'status' => IdentityVerificationStatus::class, 'origin_type' => IdentityOriginType::class, 'properties' => 'array', 'metadata' => 'array', 'expires_at' => 'datetime', 'verified_at' => 'datetime', 'consumed_at' => 'datetime', ]; } public function user(): BelongsTo { return $this->belongsTo(User::class); } public function isExpired(): bool { return $this->expires_at !== null && $this->expires_at->isPast(); } public function isVerified(): bool { return $this->status === IdentityVerificationStatus::Verified; } }