Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
TenantIsolationMode
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3/**
4 * Tenant isolation mode enum
5 *
6 * Defines the isolation strategy for multi-tenant instances:
7 * - prefix: Table prefix isolation in a shared database (default)
8 * - schema: Schema-per-tenant isolation in a shared database
9 * - database: Separate database per tenant
10 *
11 * Configurable via the PMF_TENANT_ISOLATION_MODE environment variable.
12 *
13 * This Source Code Form is subject to the terms of the Mozilla Public License,
14 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
15 * obtain one at https://mozilla.org/MPL/2.0/.
16 *
17 * @package   phpMyFAQ
18 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
19 * @copyright 2026 phpMyFAQ Team
20 * @license   https://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
21 * @link      https://www.phpmyfaq.de
22 * @since     2026-02-08
23 */
24
25declare(strict_types=1);
26
27namespace phpMyFAQ\Enums;
28
29enum TenantIsolationMode: string
30{
31    case PREFIX = 'prefix';
32    case SCHEMA = 'schema';
33    case DATABASE = 'database';
34}