Core database dictionary
This is the reviewed core migration schema captured from a disposable SQLite :memory: database after migrations, without seeding or plugin installation. It includes framework, permission and queue tables as well as the core models. Existing installations may have additional plugin/product tables, previously applied schema changes or configured permission table names. This page is a reference, not a reset or deployment recipe.
The schema snapshot in the repository (docs/handbook/catalogues/schema.json) records actual migrated columns, indexes and foreign keys. Migration source links beside each table provide intended types and lengths that SQLite introspection normalizes away. Defaults below are SQL defaults (not PHP model defaults); nullable fields show NULL where no other expression exists. An unsaved model may not have database defaults loaded. The model conversion / assignment column applies only when that core model exists: fillable controls mass assignment, not database access control.
Driver and migration boundaries
Tests use SQLite :memory:; production uses MariaDB. SQLite represents JSON as text, booleans/unsigned sizes as integer affinity and timestamps as datetime. It does not prove MariaDB varchar lengths, enum acceptance, collation, unsigned bounds, JSON validation or lockForUpdate behavior. Migration declaration types below retain those distinctions; SQL portability still requires driver-aware code and separate MariaDB checks where applicable. The schema tables below are not themselves MariaDB verification; the MariaDB behaviour that is tested is described in the next section.
Transaction isolation on MariaDB and MySQL
The mysql and mariadb connections run every session at READ COMMITTED, not the server's REPEATABLE READ default. Laravel's connector runs SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED on each new connection, so web requests, queue and Horizon workers and reconnects all get it. DB_ISOLATION_LEVEL in .env overrides the level (one of READ COMMITTED, REPEATABLE READ, SERIALIZABLE, READ UNCOMMITTED; empty or server keeps the server default); rerun php artisan config:cache and restart workers after changing it. SQLite ignores the setting.
What this means for plugin code:
- Each plain
SELECTreads the latest committed data. Under REPEATABLE READ, the first plain read fixed a snapshot for the whole transaction, so a plain read made after waiting for alockForUpdate()could miss what the previous lock holder had just committed (a ledgerprev_hashread forked the hash chain this way). Plain reads now see that commit. Values you read before taking a lock can still be stale: read what you will change with a locking read, or re-read it after the lock. - Gap locks are much rarer. A
lockForUpdate()that finds no row (a new player's missing balance or stats row) no longer locks the gap around it, so two new players no longer block or deadlock each other on first use. The flip side: such a check does not stop another transaction inserting that row. Guard first use with a unique key andinsertOrIgnore(or catch the duplicate-key error), not with a missing-row lock. - Locking is still on you. Lock every row you will change, in a consistent order (ascending user ID, as
EconomyServicedoes), and keep transactions short. READ COMMITTED does not prevent lost updates between two plain read-modify-write sequences.
MariaDbIsolationLevelTest checks the session level and both behaviours on the MariaDB suite, each with a REPEATABLE READ control. When binary logging is on, READ COMMITTED needs binlog_format ROW or MIXED (MariaDB's default is MIXED); with STATEMENT, InnoDB refuses writes at this level.
Most create migrations skip pre-existing tables using hasTable; profile additions also use hasColumn. Such guards preserve an old table rather than prove its columns match this snapshot. Some later migrations unconditionally alter/create tables, so do not assume the whole sequence is a repeatable repair command. Permission tables come from config/permission.php, including optional teams/testing branches. This capture uses the configured default table names; a teams-enabled install needs its configured variant documented separately.
The old modules table was renamed plugins; a separate installed_modules table was renamed installed_plugins. The October consolidation imports unmatched legacy rows and drops plugins. Current code uses installed_plugins; neither retired table belongs in a new integration. Schema dependencies and deployment ordering should follow the migration history rather than manually creating these tables.
Relationships and deletion
The diagram shows declared foreign keys in the migrated snapshot. A line denotes a foreign-key link, not a model authorization or automatic Eloquent eager-load rule. Exact nullability, uniqueness and delete behavior are listed per table below. Dashed logical links are shown separately for polymorphic stores that have no database owner FK.
erDiagram
users |o--o{ activity_logs : "user_id set null"
users ||--o{ admin_notifications : "user_id cascade"
users |o--o{ api_keys : "created_by set null"
api_keys ||--o{ api_request_logs : "api_key_id cascade"
users ||--o{ device_fingerprints : "user_id cascade"
users ||--o| economy_ledger_heads : "user_id cascade"
users |o--o{ economy_transactions : "receiver_id set null"
users |o--o{ economy_transactions : "sender_id set null"
users |o--o{ error_logs : "user_id set null"
users ||--o{ ip_bans : "banned_by cascade"
permissions ||--o{ model_has_permissions : "permission_id cascade"
roles ||--o{ model_has_roles : "role_id cascade"
users ||--o{ multi_account_cluster_members : "user_id cascade"
multi_account_clusters ||--o{ multi_account_cluster_members : "cluster_id cascade"
users ||--o{ notifications : "user_id cascade"
users ||--o{ oauth_providers : "user_id cascade"
users ||--o| player_stats : "user_id cascade"
roles ||--o{ role_has_permissions : "role_id cascade"
permissions ||--o{ role_has_permissions : "permission_id cascade"
users |o--o{ staff_chat_messages : "mentioned_user_id set null"
users ||--o{ staff_chat_messages : "user_id cascade"
staff_chat_messages |o--o{ staff_chat_read_status : "last_read_message_id cascade"
users ||--o| staff_chat_read_status : "user_id cascade"
webhooks ||--o{ webhook_deliveries : "webhook_id cascade"
users |o--o{ webhooks : "user_id set null"
flowchart LR
Owner["Saved Eloquent owner"] -. "owner_type + owner_id; no FK" .-> Metadata["plugin_metadata"]
User["User or other authenticatable model"] -. "tokenable_type + tokenable_id; no FK" .-> Tokens["personal_access_tokens"]
Model["Permission-bearing model"] -. "model_type + model_id; no FK" .-> Roles["model_has_roles / model_has_permissions"]
Foreign-key cascades run on physical deletion. ApiKey soft deletion only sets deleted_at and retains its logs; forceDelete triggers its cascade. Polymorphic metadata, tokens and permissions require their framework/service cleanup policies; a user FK cannot be inferred from a column name. Account sessions likewise have an indexed user_id without a FK. No one universal account cascade covers plugin data.
Deleting a user sets economy sender/receiver references to NULL. Those IDs are hash inputs, so stored transaction verification can change after the deletion. Retention/anonymization workflows must account for that behavior. Deleting a staff message cascades any cursor pointing to that message rather than merely setting its pointer null.
Table directory
| Table | Owner / reference |
|---|---|
activity_logs |
Framework / service storage |
admin_notifications |
AdminNotification |
announcement_types |
AnnouncementType |
api_keys |
ApiKey |
api_request_logs |
ApiRequestLog |
cache |
Framework / service storage |
cache_locks |
Framework / service storage |
device_fingerprints |
DeviceFingerprint |
economy_ledger_heads |
Service storage (EconomyService); no model |
economy_transactions |
EconomyTransaction |
email_settings |
EmailSetting |
email_templates |
EmailTemplate |
error_logs |
ErrorLog |
failed_jobs |
Framework / service storage |
installed_plugins |
InstalledPlugin |
ip_bans |
IpBan |
job_batches |
Framework / service storage |
jobs |
Framework / service storage |
license_keys |
LicenseKey |
migrations |
Framework / service storage |
model_has_permissions |
Framework / service storage |
model_has_roles |
Framework / service storage |
multi_account_cluster_members |
MultiAccountClusterMember |
multi_account_clusters |
MultiAccountCluster |
notifications |
Notification |
oauth_providers |
OAuthProvider |
password_reset_tokens |
Framework / service storage |
permissions |
Framework / service storage |
personal_access_tokens |
Framework / service storage |
player_activity_receipts |
Framework / service storage |
player_stats |
PlayerStat |
plugin_metadata |
PluginMetadata |
role_has_permissions |
Framework / service storage |
roles |
Framework / service storage |
sessions |
Framework / service storage |
settings |
Setting |
staff_chat_messages |
StaffChatMessage |
staff_chat_read_status |
StaffChatReadStatus |
users |
User |
webhook_deliveries |
WebhookDelivery |
webhooks |
Webhook |
activity logs
Table: activity_logs. ActivityLogService audit events: type/description, JSON metadata and request address/user agent. Not a Core\Models class.
Consumer/configuration: ActivityLogService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
database field |
user_id |
unsigned bigint | yes | NULL |
database field; the actor. Null once the actor's account is deleted |
target_user_id |
unsigned bigint (indexed with created_at, no foreign key) |
yes | NULL |
database field; the account an admin action was about |
type |
varchar(255) | no | none; required |
database field |
description |
text | no | none; required |
database field |
metadata |
JSON | yes | NULL |
database field |
ip_address |
varchar(45) | yes | NULL |
database field |
user_agent |
text | yes | NULL |
database field |
created_at |
timestamp | yes | NULL |
database field |
Primary key: id.
Query indexes: (created_at); (type, created_at); (type); (user_id, created_at).
user_id → users.id; deleting the referenced row uses SET NULL (changed from CASCADE by migration 2026_11_13_120000_keep_admin_actions_when_a_user_is_deleted). Updating referenced keys uses NO ACTION. The migration can be rerun: it does nothing once the key already sets null. Its down() deletes rows whose user_id is null, because the old NOT NULL cascade key cannot hold them.
What deletion does now (current implementation):
- The
Usermodel'sdeletinghook deletes that user's own rows whosetypeis notadmin_action(logins and the like), as the old cascade did. - Admin actions the user took stay. The foreign key sets their
user_idto null, andActivityLogService::logAdminAction()has already stored the actor's name inmetadata.actor_username. ActivityLogService::cleanOldLogs()(the cleanup command andPOST /admin/activity/clean) deletes rows older than 90 days but neveradmin_actionrows.getRecentActivity()uses a left join, so an action by a deleted actor is listed with a nullusername.
Example: staff member mod_anna bans a player and is later deleted. The ban row remains with user_id = null and metadata.actor_username = "mod_anna"; her login rows are gone.
Verify with the AuditRetentionTest feature test (backend/tests/Feature/AuditRetentionTest.php, not yet run by this documentation pass).
Migration sources: 2026_02_01_000001_create_activity_logs_table.php (creation) and backend/database/migrations/2026_11_13_120000_keep_admin_actions_when_a_user_is_deleted.php (nullable actor, SET NULL).
admin notifications
Table: admin_notifications. Staff inbox records with priority, distinct from player notifications. AdminNotificationService and AdminNotificationController consume these rows.
Model: AdminNotification. Consumer/configuration: AdminNotificationService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
type |
varchar(255) | no | 'info' |
fillable |
title |
varchar(255) | no | none; required |
fillable |
message |
text | no | none; required |
fillable |
data |
JSON | yes | NULL |
array cast; fillable |
icon |
varchar(255) | no | '🔔' |
fillable |
link |
varchar(255) | yes | NULL |
fillable |
priority |
enum(low, normal, high, urgent) | no | 'normal' |
fillable |
read_at |
timestamp | yes | NULL |
datetime cast; fillable |
created_at |
timestamp | yes | NULL |
datetime cast; not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Primary key: id.
Query indexes: (priority); (type); (user_id, created_at); (user_id, read_at).
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_02_03_000001_create_admin_notifications_table.php.
announcement types
Table: announcement_types. Configurable display labels, icons and colours for announcement categories, administered through AnnouncementTypeController.
Model: AnnouncementType. Consumer/configuration: AnnouncementTypeController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
name |
varchar(255) | no | none; required |
fillable |
label |
varchar(255) | no | none; required |
fillable |
color |
varchar(255) | yes | NULL |
fillable |
icon |
varchar(255) | yes | NULL |
fillable |
sort_order |
integer | no | '0' |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Unique: (name).
Primary key: id.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_02_05_200000_create_configurable_type_tables.php.
api keys
Table: api_keys. Operator-managed integration credentials and restriction settings. These are separate from Sanctum user tokens. ApiKeyController creates keys and presents usage.
Model: ApiKey. Consumer/configuration: ApiKeyController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
name |
varchar(255) | no | none; required |
fillable |
key |
varchar(64) | no | none; required |
fillable |
secret |
varchar(64) | yes | NULL |
fillable |
description |
text | yes | NULL |
fillable |
permissions |
JSON | yes | NULL |
array cast; fillable |
allowed_ips |
JSON | yes | NULL |
array cast; fillable |
allowed_domains |
JSON | yes | NULL |
array cast; fillable |
rate_limit |
integer | no | '60' |
fillable |
daily_limit |
integer | yes | NULL |
fillable |
is_active |
boolean | no | '1' |
boolean cast; fillable |
last_used_at |
timestamp | yes | NULL |
datetime cast; fillable |
total_requests |
bigint | no | '0' |
fillable |
expires_at |
timestamp | yes | NULL |
datetime cast; fillable |
created_by |
unsigned bigint | yes | NULL |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
deleted_at |
timestamp | yes | NULL |
not fillable |
Unique: (key).
Primary key: id.
created_by → users.id; deleting the referenced row uses SET NULL. Updating referenced keys uses NO ACTION.
Deleting this row affects: api_request_logs.api_key_id (CASCADE). These are physical-delete rules; soft deletes do not trigger them.
Migration source: 2026_02_04_100003_create_api_keys_table.php.
api request logs
Table: api_request_logs. HTTP integration audit rows associated with an ApiKey; ApiKeyController reads these for request statistics.
Model: ApiRequestLog. Consumer/configuration: ApiKeyController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
api_key_id |
unsigned bigint | no | none; required |
fillable |
method |
varchar(10) | no | none; required |
fillable |
endpoint |
varchar(255) | no | none; required |
fillable |
status_code |
integer | no | none; required |
fillable |
response_time |
integer | yes | NULL |
fillable |
ip_address |
varchar(45) | yes | NULL |
fillable |
user_agent |
varchar(255) | yes | NULL |
fillable |
request_headers |
JSON | yes | NULL |
array cast; fillable |
request_body |
JSON | yes | NULL |
array cast; fillable |
response_body |
JSON | yes | NULL |
array cast; fillable |
error_message |
text | yes | NULL |
fillable |
created_at |
timestamp | yes | NULL |
datetime cast; fillable |
Primary key: id.
Query indexes: (api_key_id, created_at); (created_at).
api_key_id → api_keys.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_02_04_100003_create_api_keys_table.php.
cache
Table: cache. Database cache values and expiry epochs used only when the configured cache store selects the database driver. Serialized value format belongs to Laravel.
Consumer/configuration: cache.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
key |
varchar(255) | no | none; required |
database field |
value |
mediumtext | no | none; required |
database field |
expiration |
integer | no | none; required |
database field |
Primary key: key.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 0001_01_01_000001_create_cache_table.php.
cache locks
Table: cache_locks. Database cache lock ownership and expiry epochs; not a game table. Lock acquisition/release belongs to the cache driver.
Consumer/configuration: cache.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
key |
varchar(255) | no | none; required |
database field |
owner |
varchar(255) | no | none; required |
database field |
expiration |
integer | no | none; required |
database field |
Primary key: key.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 0001_01_01_000001_create_cache_table.php.
device fingerprints
Table: device_fingerprints. Per-user device/network observations used by AntiMultiService to discover shared fingerprints and recent IPs.
Model: DeviceFingerprint. Consumer/configuration: AntiMultiService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
fingerprint_hash |
varchar(64) | no | none; required |
fillable |
ip_address |
varchar(45) | no | none; required |
fillable |
user_agent |
text | yes | NULL |
fillable |
headers_hash |
varchar(64) | yes | NULL |
fillable |
source |
varchar(16) | yes | NULL |
fillable; client (sent by the client) or derived (core's header hash, shared by many players); NULL for rows recorded before the column was added |
is_vpn_proxy |
boolean | no | '0' |
boolean cast; fillable |
trust_score |
unsigned smallint | no | '100' |
integer cast; fillable |
first_seen_at |
timestamp | no | CURRENT_TIMESTAMP |
datetime cast; fillable |
last_seen_at |
timestamp | no | CURRENT_TIMESTAMP |
datetime cast; fillable |
seen_days |
integer | no | 1 |
database field; added by 2026_11_27_090100_add_seen_days_to_device_fingerprints.php |
Primary key: id.
Unique: (user_id, fingerprint_hash).
Query indexes: (fingerprint_hash); (headers_hash); (ip_address); (last_seen_at); (user_id).
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_10_12_130000_create_anti_multi_tables.php.
economy ledger heads
Table: economy_ledger_heads. One row per user holding the latest hash of each of that user's three ledger chains. EconomyService locks the row (lockForUpdate) before it appends an entry and takes the entry's prev_hash from it, so concurrent writers to one chain are serialised and cannot read a stale predecessor. It has no Eloquent model; read and write it only through the service. See the economy chapter for lock order and the deploy sequence.
Consumer/configuration: EconomyService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
user_id |
unsigned bigint | no | none; required |
database field |
last_hash |
char(64) | yes | NULL |
database field; latest entry where the user is sender or receiver (transfer, deposit, withdraw) |
last_sent_hash |
char(64) | yes | NULL |
database field; latest entry where the user is sender (debit) |
last_received_hash |
char(64) | yes | NULL |
database field; latest entry where the user is receiver (credit) |
updated_at |
timestamp | yes | NULL |
database field |
Primary key: user_id.
user_id → users.id; deleting the referenced row uses CASCADE. A head is created by User::created, by the migration backfill (which only inserts missing heads) or, as a fallback, by the service inside its transaction.
The migration is rerunnable: it skips an existing table and the backfill never overwrites a head the service has already advanced. pulse:ledger:audit --chains reports heads that differ from the ledger; --repair-heads recomputes them in maintenance mode only. Run the migration with the site down: an entry the old code writes after the backfill leaves its user's head behind and that user's next entry forks the chain.
Migration source: 2026_11_12_120000_create_economy_ledger_heads_table.php.
economy transactions
Integrity additions: hash_version distinguishes legacy1/new2; sender_identity and receiver_identity retain immutable IDs after account foreign keys are nulled. Version2 includes resulting balances; historical hashes are not re-signed.
Table: economy_transactions. Ledger records written by EconomyService after locked balance operations; inspect them for account audit and integrity checks.
Model: EconomyTransaction. Consumer/configuration: EconomyService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
uuid |
UUID / char(36) | no | none; required |
fillable |
sender_id |
unsigned bigint | yes | NULL |
fillable |
receiver_id |
unsigned bigint | yes | NULL |
fillable |
currency |
varchar(32) | no | 'cash' |
fillable |
amount |
unsigned bigint | no | none; required |
integer cast; fillable |
action_type |
varchar(64) | no | none; required |
fillable |
sender_balance_after |
unsigned bigint | yes | NULL |
integer cast; fillable |
receiver_balance_after |
unsigned bigint | yes | NULL |
integer cast; fillable |
prev_hash |
char(64) | yes | NULL |
fillable |
tx_hash |
char(64) | no | none; required |
fillable |
metadata |
JSON | yes | NULL |
array cast; fillable |
created_at |
timestamp | no | CURRENT_TIMESTAMP |
datetime cast; fillable |
Unique: (tx_hash).
Unique: (uuid).
Primary key: id.
Query indexes: (action_type); (created_at); (currency); (prev_hash); (receiver_id); (sender_id).
receiver_id → users.id; deleting the referenced row uses SET NULL. Updating referenced keys uses NO ACTION.
sender_id → users.id; deleting the referenced row uses SET NULL. Updating referenced keys uses NO ACTION.
Migration source: 2026_10_12_120000_create_economy_transactions_table.php.
email settings
Table: email_settings. Stored mail transport configuration used by EmailSettingsController when testing or sending mail.
Model: EmailSetting. Consumer/configuration: EmailSettingsController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
mailer |
varchar(255) | no | 'smtp' |
fillable |
host |
varchar(255) | yes | NULL |
fillable |
port |
integer | no | '587' |
integer cast; fillable |
username |
varchar(255) | yes | NULL |
fillable |
password |
varchar(255) | yes | NULL |
fillable |
encryption |
varchar(255) | no | 'tls' |
fillable |
from_address |
varchar(255) | yes | NULL |
fillable |
from_name |
varchar(255) | yes | NULL |
fillable |
mailgun_domain |
varchar(255) | yes | NULL |
fillable |
mailgun_secret |
varchar(255) | yes | NULL |
fillable |
mailgun_endpoint |
varchar(255) | no | 'api.mailgun.net' |
fillable |
is_active |
boolean | no | '0' |
boolean cast; fillable |
last_tested_at |
timestamp | yes | NULL |
datetime cast; fillable |
test_successful |
boolean | yes | NULL |
boolean cast; fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Primary key: id.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_02_04_000001_create_email_settings_table.php.
email template contents
Table: email_template_contents. Block content of one registry email in one locale: the unsaved draft and a pointer to the published version. Written only through App\Core\Email\EmailTemplateLibrary; the model guards every attribute.
Model: App\Core\Models\EmailTemplateContent. Consumer: EmailTemplateLibraryController (admin email API) and DynamicEmail at send time.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
guarded |
template_key |
varchar(120) | no | none; required |
guarded |
locale |
varchar(12) | no | none; required |
guarded |
draft_subject |
varchar(255) | yes | NULL |
guarded |
draft_preheader |
varchar(255) | yes | NULL |
guarded |
draft_blocks |
JSON | yes | NULL |
array cast; guarded |
draft_updated_by |
unsigned bigint | yes | NULL |
integer cast; guarded |
published_version_id |
unsigned bigint | yes | NULL |
integer cast; guarded |
created_at |
timestamp | yes | NULL |
guarded |
updated_at |
timestamp | yes | NULL |
guarded |
Unique: (template_key, locale) as etc_key_locale_unique.
Primary key: id.
Foreign key: draft_updated_by → users.id, null on delete. published_version_id has no foreign key (it would form a cycle with email_template_versions); the library only follows it to a version of the same content row. A draft with no blocks (draft_blocks null) means there is no unsaved draft.
Migration source: backend/database/migrations/2026_11_15_090000_create_email_template_contents_table.php (create, unique index and foreign key guarded separately, rerunnable).
email template versions
Table: email_template_versions. Published versions of email template content, append-only. Each publish (source publish) or reset to the default (source reset) adds the next version for its content row, numbered under a row lock on that content row.
Model: App\Core\Models\EmailTemplateVersion. Consumer: as for email template contents.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
guarded |
content_id |
unsigned bigint | no | none; required |
integer cast; guarded |
version |
unsigned int | no | none; required |
integer cast; guarded |
subject |
varchar(255) | no | none; required |
guarded |
preheader |
varchar(255) | yes | NULL |
guarded |
blocks |
JSON | no | none; required |
array cast; guarded |
source |
varchar(16) | no | none; required |
guarded |
published_by |
unsigned bigint | yes | NULL |
integer cast; guarded |
published_at |
timestamp | yes | NULL |
datetime cast; guarded |
created_at |
timestamp | yes | NULL |
guarded |
Unique: (content_id, version) as etv_content_version_unique.
Primary key: id.
Foreign keys: content_id → email_template_contents.id, cascade on delete; published_by → users.id, null on delete (deleting an admin keeps their versions).
Migration source: backend/database/migrations/2026_11_15_090100_create_email_template_versions_table.php (create, unique index and each foreign key guarded separately, rerunnable).
email templates
Table: email_templates. Editable subject/HTML/text templates identified by slug, seeded from six defaults and consumed by the email settings workflow.
Model: EmailTemplate. Consumer/configuration: EmailSettingsController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
slug |
varchar(255) | no | none; required |
fillable |
name |
varchar(255) | no | none; required |
fillable |
subject |
varchar(255) | no | none; required |
fillable |
body_html |
text | no | none; required |
fillable |
body_text |
text | yes | NULL |
fillable |
available_variables |
JSON | yes | NULL |
array cast; fillable |
description |
varchar(255) | yes | NULL |
fillable |
is_active |
boolean | no | '1' |
boolean cast; fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Unique: (slug).
Primary key: id.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_02_04_000002_create_email_templates_table.php.
error logs
Table: error_logs. Grouped exception records with occurrence counts and optional request context, inspected by ErrorLogController.
Model: ErrorLog. Consumer/configuration: ErrorLogController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
type |
varchar(255) | no | none; required |
fillable |
message |
text | no | none; required |
fillable |
file |
varchar(255) | yes | NULL |
fillable |
line |
integer | yes | NULL |
fillable |
trace |
text | yes | NULL |
fillable |
url |
varchar(255) | yes | NULL |
fillable |
method |
varchar(255) | yes | NULL |
fillable |
ip |
varchar(255) | yes | NULL |
fillable |
user_id |
unsigned bigint | yes | NULL |
fillable |
user_agent |
text | yes | NULL |
fillable |
context |
JSON | yes | NULL |
array cast; fillable |
resolved |
boolean | no | '0' |
boolean cast; fillable |
count |
integer | no | '1' |
fillable |
last_seen_at |
timestamp | no | CURRENT_TIMESTAMP |
datetime cast; fillable |
created_at |
timestamp | yes | NULL |
datetime cast; fillable |
updated_at |
timestamp | yes | NULL |
datetime cast; fillable |
Primary key: id.
Query indexes: (created_at, resolved); (resolved); (type).
user_id → users.id; deleting the referenced row uses SET NULL. Updating referenced keys uses NO ACTION.
Migration source: 2026_01_29_100016_create_error_logs_table.php.
failed jobs
Table: failed_jobs. Failed queue payloads and exception details; failed_at is a timestamp. Do not expose payloads as a public API.
Consumer/configuration: queue.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
database field |
uuid |
varchar(255) | no | none; required |
database field |
connection |
text | no | none; required |
database field |
queue |
text | no | none; required |
database field |
payload |
longtext | no | none; required |
database field |
exception |
longtext | no | none; required |
database field |
failed_at |
timestamp | no | CURRENT_TIMESTAMP |
database field |
Unique: (uuid).
Primary key: id.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 0001_01_01_000002_create_jobs_table.php.
installed plugins
Table: installed_plugins. Canonical installed package registry shared by PluginManagerService and plugin manifest consumers. Runtime enabled state belongs to this row.
Model: InstalledPlugin. Consumer/configuration: PluginManagerService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
name |
varchar(255) | no | none; required |
fillable |
slug |
varchar(255) | no | none; required |
fillable |
version |
varchar(255) | no | none; required |
fillable |
type |
varchar(255) | no | 'module' |
fillable |
description |
text | yes | NULL |
fillable |
dependencies |
JSON | yes | NULL |
array cast; fillable |
config |
JSON | yes | NULL |
array cast; fillable |
enabled |
boolean | no | '1' |
boolean cast; fillable |
installed_at |
timestamp | yes | NULL |
datetime cast; fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
author |
varchar(255) | yes | NULL |
fillable |
license_required |
boolean | no | '0' |
boolean cast; fillable |
icon |
varchar(255) | yes | NULL |
fillable |
color |
varchar(255) | yes | NULL |
fillable |
route_name |
varchar(255) | yes | NULL |
fillable |
order |
integer | no | '100' |
integer cast; fillable |
permissions |
JSON | yes | NULL |
array cast; fillable |
hooks |
JSON | yes | NULL |
array cast; fillable |
frontend_slots |
JSON | yes | NULL |
array cast; fillable |
frontend_routes |
JSON | yes | NULL |
array cast; fillable |
has_web_routes |
boolean | no | '0' |
boolean cast; fillable |
has_api_routes |
boolean | no | '0' |
boolean cast; fillable |
has_admin_routes |
boolean | no | '0' |
boolean cast; fillable |
frontend_runtime |
JSON | yes | NULL |
array cast; fillable |
Unique: (name).
Unique: (slug).
Primary key: id.
Query indexes: (enabled); (type).
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_01_28_175940_create_installed_modules_table.php, 2026_02_24_100000_add_plugin_contract_fields_to_installed_plugins_table.php, 2026_10_06_110000_add_frontend_runtime_to_installed_plugins.php, 2026_02_04_021647_rename_modules_table_to_plugins.php, 2026_02_04_024042_rename_installed_modules_table_to_installed_plugins.php, 2026_10_06_100000_consolidate_plugin_registry.php.
ip bans
Table: ip_bans. Active and expiring address bans checked by CheckIpBan middleware and administered by IpBanController.
Model: IpBan. Consumer/configuration: CheckIpBan.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
ip_address |
varchar(255) | no | none; required |
fillable |
banned_by |
unsigned bigint | no | none; required |
fillable |
reason |
text | no | none; required |
fillable |
banned_at |
datetime | no | none; required |
datetime cast; fillable |
expires_at |
datetime | yes | NULL |
datetime cast; fillable |
is_active |
boolean | no | '1' |
boolean cast; fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Primary key: id.
Query indexes: (expires_at); (ip_address, is_active).
banned_by → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_01_28_100938_create_ip_bans_table.php.
job batches
Table: job_batches. Queue batch bookkeeping. Several date-like columns are integer epochs, not SQL timestamps.
Consumer/configuration: queue.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
varchar(255) | no | none; required |
database field |
name |
varchar(255) | no | none; required |
database field |
total_jobs |
integer | no | none; required |
database field |
pending_jobs |
integer | no | none; required |
database field |
failed_jobs |
integer | no | none; required |
database field |
failed_job_ids |
longtext | no | none; required |
database field |
options |
mediumtext | yes | NULL |
database field |
cancelled_at |
integer | yes | NULL |
database field |
created_at |
integer | no | none; required |
database field |
finished_at |
integer | yes | NULL |
database field |
Primary key: id.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 0001_01_01_000002_create_jobs_table.php.
jobs
Table: jobs. Database queue entries: payload, attempts and available/reserved/created epoch values. Backend worker execution is separate from insertion.
Consumer/configuration: queue.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
database field |
queue |
varchar(255) | no | none; required |
database field |
payload |
longtext | no | none; required |
database field |
attempts |
unsigned tinyint | no | none; required |
database field |
reserved_at |
unsigned integer | yes | NULL |
database field |
available_at |
unsigned integer | no | none; required |
database field |
created_at |
unsigned integer | no | none; required |
database field |
Primary key: id.
Query indexes: (queue).
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 0001_01_01_000002_create_jobs_table.php.
license keys
Table: license_keys. Local licence administration records used by LicenseController; status describes activation and revocation flags.
Model: LicenseKey. Consumer/configuration: LicenseController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
license_id |
varchar(64) | no | none; required |
fillable |
customer |
varchar(255) | no | none; required |
fillable |
email |
varchar(255) | no | none; required |
fillable |
domain |
varchar(255) | no | '*' |
fillable |
tier |
varchar(255) | no | 'standard' |
fillable |
expires |
varchar(255) | no | 'lifetime' |
fillable |
max_users |
integer | no | '0' |
integer cast; fillable |
plugins |
varchar(255) | no | 'all' |
fillable |
masked_key |
text | no | none; required |
fillable |
is_activated |
boolean | no | '0' |
boolean cast; fillable |
activated_domain |
varchar(255) | yes | NULL |
fillable |
activated_ip |
varchar(255) | yes | NULL |
fillable |
activated_at |
timestamp | yes | NULL |
datetime cast; fillable |
notes |
text | yes | NULL |
fillable |
is_revoked |
boolean | no | '0' |
boolean cast; fillable |
revoked_at |
timestamp | yes | NULL |
datetime cast; fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Unique: (license_id).
Primary key: id.
Query indexes: (activated_domain); (is_activated); (is_revoked).
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_02_07_120000_create_license_keys_table.php.
migrations
Table: migrations. Laravel migration repository, recording executed migration names and batch numbers. Created by the migrator rather than an application create-table migration.
Consumer/configuration: database.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned integer (auto increment) | no | generated |
database field |
migration |
varchar(255) | no | none; required |
database field |
batch |
integer | no | none; required |
database field |
Primary key: id.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Schema owner: Laravel migrator; no core create-table migration.
model has permissions
Table: model_has_permissions. Spatie direct permission assignments to a polymorphic model. model_type/model_id are logical ownership; no database FK to users. Configurable table/column names and optional teams change this schema.
Consumer/configuration: permission.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
permission_id |
unsigned bigint | no | none; required |
database field |
model_type |
varchar(255) | no | none; required |
database field |
model_id |
unsigned bigint | no | none; required |
database field |
Primary key: permission_id, model_id, model_type.
Query indexes: (model_id, model_type).
permission_id → permissions.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_01_27_213803_create_permission_tables.php.
model has roles
Table: model_has_roles. Spatie role assignments to a polymorphic model. model_type/model_id are logical ownership; no database FK to users. Configurable table/column names and optional teams change this schema.
Consumer/configuration: permission.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
role_id |
unsigned bigint | no | none; required |
database field |
model_type |
varchar(255) | no | none; required |
database field |
model_id |
unsigned bigint | no | none; required |
database field |
Primary key: role_id, model_id, model_type.
Query indexes: (model_id, model_type).
role_id → roles.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_01_27_213803_create_permission_tables.php.
multi account cluster members
Table: multi_account_cluster_members. Membership of an account in a multi-account investigation cluster, with an integer confidence score.
Model: MultiAccountClusterMember. Consumer/configuration: AntiMultiService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
cluster_id |
unsigned bigint | no | none; required |
fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
confidence_score |
unsigned smallint | no | '90' |
integer cast; fillable |
created_at |
timestamp | no | CURRENT_TIMESTAMP |
datetime cast; fillable |
Unique: (cluster_id, user_id).
Primary key: id.
Query indexes: (cluster_id); (user_id).
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
cluster_id → multi_account_clusters.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_10_12_130000_create_anti_multi_tables.php.
multi account clusters
Table: multi_account_clusters. An anti-multi investigation group, identified by a deterministic member-set hash generated in AntiMultiService.
Model: MultiAccountCluster. Consumer/configuration: AntiMultiService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
cluster_hash |
varchar(64) | no | none; required |
fillable |
severity |
varchar(20) | no | 'medium' |
fillable |
reason |
varchar(64) | no | 'shared_fingerprint' |
fillable |
is_resolved |
boolean | no | '0' |
boolean cast; fillable |
action_taken |
varchar(32) | no | 'none' |
fillable |
notes |
text | yes | NULL |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
linked_accounts |
integer | yes | NULL |
database field; added by 2026_11_27_090200_add_linked_accounts_to_multi_account_clusters.php |
Unique: (cluster_hash).
Primary key: id.
Query indexes: (is_resolved); (severity).
Deleting this row affects: multi_account_cluster_members.cluster_id (CASCADE). These are physical-delete rules; soft deletes do not trigger them.
Migration source: 2026_10_12_130000_create_anti_multi_tables.php.
notifications
Table: notifications. Player inbox messages created through NotificationService and exposed through User.notifications(). These are Pulse records rather than Laravel polymorphic database notifications.
Model: Notification. Consumer/configuration: NotificationService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
type |
varchar(255) | no | none; required |
fillable |
title |
varchar(255) | no | none; required |
fillable |
message |
text | no | none; required |
fillable |
data |
text | yes | NULL |
array cast; fillable |
icon |
varchar(255) | yes | NULL |
fillable |
link |
varchar(255) | yes | NULL |
fillable |
read_at |
timestamp | yes | NULL |
datetime cast; fillable |
created_at |
timestamp | yes | NULL |
datetime cast; not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Primary key: id.
Query indexes: (type); (user_id, created_at); (user_id, read_at).
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_01_28_170246_create_notifications_table.php.
oauth providers
Table: oauth_providers. A provider identity linked to an account, consumed by OAuthService during linking and sign-in.
Model: OAuthProvider. Consumer/configuration: OAuthService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
provider |
varchar(255) | no | none; required |
fillable |
provider_id |
varchar(255) | no | none; required |
fillable |
token |
text | yes | NULL |
encrypted cast; fillable |
refresh_token |
text | yes | NULL |
encrypted cast; fillable |
expires_at |
timestamp | yes | NULL |
datetime cast; fillable |
avatar |
varchar(255) | yes | NULL |
fillable |
nickname |
varchar(255) | yes | NULL |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Unique: (provider, provider_id).
Primary key: id.
Query indexes: (user_id, provider).
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_02_04_100001_create_oauth_providers_table.php.
password reset tokens
Table: password_reset_tokens. Password reset token store keyed by email. It has no user FK; matching/deletion belongs to the password-reset workflow.
Consumer/configuration: auth.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
email |
varchar(255) | no | none; required |
database field |
token |
varchar(255) | no | none; required |
database field |
created_at |
timestamp | yes | NULL |
database field |
Primary key: email.
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 0001_01_01_000000_create_users_table.php.
permissions
Table: permissions. Spatie permission names with a guard name. Name/guard uniqueness and policy semantics belong to the permission system. Teams/testing configuration may alter companion tables.
Consumer/configuration: permission.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint | no | generated |
database field |
name |
varchar(255) | no | none; required |
database field |
guard_name |
varchar(255) | no | none; required |
database field |
created_at |
timestamp | yes | NULL |
database field |
updated_at |
timestamp | yes | NULL |
database field |
Unique: (name, guard_name).
Primary key: id.
Deleting this row affects: model_has_permissions.permission_id (CASCADE), role_has_permissions.permission_id (CASCADE). These are physical-delete rules; soft deletes do not trigger them.
Migration source: 2026_01_27_213803_create_permission_tables.php.
personal access tokens
Table: personal_access_tokens. Sanctum token hashes, abilities, polymorphic owner and use/expiry timestamps. Plain-text token is returned only during issuance. tokenable ownership has no user FK.
Consumer/configuration: sanctum.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
database field |
tokenable_type |
varchar(255) | no | none; required |
database field |
tokenable_id |
unsigned bigint | no | none; required |
database field |
name |
text | no | none; required |
database field |
token |
varchar(64) | no | none; required |
database field |
abilities |
text | yes | NULL |
database field |
last_used_at |
timestamp | yes | NULL |
database field |
expires_at |
timestamp | yes | NULL |
database field |
created_at |
timestamp | yes | NULL |
database field |
updated_at |
timestamp | yes | NULL |
database field |
Unique: (token).
Primary key: id.
Query indexes: (expires_at); (tokenable_type, tokenable_id).
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_01_27_213748_create_personal_access_tokens_table.php.
player activity receipts
Table: player_activity_receipts. Exactly-once receipts for PlayerActivityService::record() (the player.activity hook). Query-builder persistence, not a Core\Models class. See player activity hooks.
| Column | Migration type | Nullable | Database default | Note |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
|
user_id |
unsigned bigint | no | none; required |
users.id, CASCADE on delete |
activity_key |
varchar(64) | no | none; required |
full key, prefixed with the plugin slug |
source_id |
varchar(100) | no | none; required |
the caller's id for the thing that happened |
created_at |
timestamp | yes | NULL |
when the receipt was written; the prune reads it |
Primary key: id.
Unique: (user_id, activity_key, source_id) as player_activity_receipts_unique, the exactly-once guard.
Query index: (created_at) as player_activity_receipts_created_at_index, added by migration 2026_11_13_120100_index_player_activity_receipts_created_at so the prune can find old rows. The migration is rerunnable.
Retention: receipts are kept for core.activity_receipt_days (env PULSE_ACTIVITY_RECEIPT_DAYS, default 90, minimum 1). pulse:activity-receipts:prune deletes older rows daily. Once a receipt is pruned, the same (player, key, source id) is no longer refused.
Migration source: 2026_11_07_090000_create_player_activity_receipts_table.php.
player stats
Table: player_stats. Generic core player pools, balances and progression. EconomyService resolves this model by default unless economy.player_stat_model overrides it.
Model: PlayerStat. Consumer/configuration: EconomyService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
energy |
integer | no | '100' |
integer cast; fillable |
max_energy |
integer | no | '100' |
integer cast; fillable |
nerve |
integer | no | '15' |
integer cast; fillable |
max_nerve |
integer | no | '15' |
integer cast; fillable |
health |
integer | no | '100' |
integer cast; fillable |
max_health |
integer | no | '100' |
integer cast; fillable |
money |
unsigned bigint | no | '1000' |
integer cast; fillable |
bank |
unsigned bigint | no | '0' |
integer cast; fillable |
level |
integer | no | '1' |
integer cast; fillable |
exp |
unsigned bigint | no | '0' |
integer cast; fillable |
strength |
unsigned bigint | no | '10' |
integer cast; fillable |
defense |
unsigned bigint | no | '10' |
integer cast; fillable |
speed |
unsigned bigint | no | '10' |
integer cast; fillable |
dexterity |
unsigned bigint | no | '10' |
integer cast; fillable |
custom_attributes |
JSON | yes | NULL |
array cast; fillable |
last_tick_at |
timestamp | yes | NULL |
datetime cast; fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Unique: (user_id).
Primary key: id.
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_10_12_110534_create_player_stats_table.php.
plugin metadata
Table: plugin_metadata. Namespaced JSON values attached to any saved Eloquent model without adding plugin-specific columns. HasPluginMetadata is a separate optional trait.
Model: PluginMetadata. Consumer/configuration: HasPluginMetadata.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
owner_type |
varchar(255) | no | none; required |
fillable |
owner_id |
unsigned bigint | no | none; required |
fillable |
plugin_id |
varchar(100) | no | none; required |
fillable |
key |
varchar(191) | no | none; required |
fillable |
value |
JSON | yes | NULL |
json cast; fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Unique: (owner_type, owner_id, plugin_id, key).
Primary key: id.
Query indexes: (owner_type, owner_id); (plugin_id, key).
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_02_22_100000_create_plugin_metadata_table.php.
role has permissions
Table: role_has_permissions. Spatie permission-to-role pivot; deleting either referenced role/permission cascades assignments.
Consumer/configuration: permission.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
permission_id |
unsigned bigint | no | none; required |
database field |
role_id |
unsigned bigint | no | none; required |
database field |
Primary key: permission_id, role_id.
role_id → roles.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
permission_id → permissions.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_01_27_213803_create_permission_tables.php.
roles
Table: roles. Spatie role names and guards. Team/testing settings can add a nullable team foreign key and change uniqueness.
Consumer/configuration: permission.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint | no | generated |
database field |
name |
varchar(255) | no | none; required |
database field |
guard_name |
varchar(255) | no | none; required |
database field |
created_at |
timestamp | yes | NULL |
database field |
updated_at |
timestamp | yes | NULL |
database field |
color |
varchar | yes | NULL |
database field; added by 2026_11_11_120000_add_role_colour_and_plugin_admin_access.php |
Primary key: id.
Unique: (name, guard_name).
Deleting this row affects: model_has_roles.role_id (CASCADE), role_has_permissions.role_id (CASCADE). These are physical-delete rules; soft deletes do not trigger them.
Migration source: 2026_01_27_213803_create_permission_tables.php.
sessions
Table: sessions. Laravel database sessions with a string session ID, nullable user_id, encoded payload and last_activity epoch. user_id is indexed but has no declared FK/cascade.
Consumer/configuration: session.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
varchar(255) | no | none; required |
database field |
user_id |
unsigned bigint | yes | NULL |
database field |
ip_address |
varchar(45) | yes | NULL |
database field |
user_agent |
text | yes | NULL |
database field |
payload |
longtext | no | none; required |
database field |
last_activity |
integer | no | none; required |
database field |
Primary key: id.
Query indexes: (last_activity); (user_id).
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 0001_01_01_000000_create_users_table.php.
settings
Table: settings. Typed key/value application configuration consumed by SettingService; distinct from Laravel config files.
Model: Setting. Consumer/configuration: SettingService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
key |
varchar(255) | no | none; required |
fillable |
value |
text | yes | NULL |
fillable |
type |
varchar(255) | no | 'string' |
fillable |
description |
text | yes | NULL |
fillable |
group |
varchar(255) | no | 'general' |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Primary key: id.
Unique: (key).
No database foreign keys to or from this table in the core snapshot. Convention-based or polymorphic relationships need explicit cleanup.
Migration source: 2026_01_28_153232_create_settings_table.php.
staff chat messages
Table: staff_chat_messages. Staff chat message content plus optional single mentioned account, consumed by StaffChatController.
Model: StaffChatMessage. Consumer/configuration: StaffChatController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
content |
text | no | none; required |
fillable |
mentioned_user_id |
unsigned bigint | yes | NULL |
fillable |
created_at |
timestamp | yes | NULL |
datetime cast; not fillable |
updated_at |
timestamp | yes | NULL |
datetime cast; not fillable |
Primary key: id.
Query indexes: (created_at); (user_id, created_at).
mentioned_user_id → users.id; deleting the referenced row uses SET NULL. Updating referenced keys uses NO ACTION.
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Deleting this row affects: staff_chat_read_status.last_read_message_id (CASCADE). These are physical-delete rules; soft deletes do not trigger them.
Migration source: 2026_03_02_100001_create_staff_chat_tables.php.
staff chat read status
Table: staff_chat_read_status. One cursor per account for the shared staff chat, rather than one receipt per message.
Model: StaffChatReadStatus. Consumer/configuration: StaffChatController.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | no | none; required |
fillable |
last_read_message_id |
unsigned bigint | yes | NULL |
fillable |
last_read_at |
timestamp | yes | NULL |
datetime cast; fillable |
created_at |
timestamp | yes | NULL |
datetime cast; not fillable |
updated_at |
timestamp | yes | NULL |
datetime cast; not fillable |
Primary key: id.
Unique: (user_id).
last_read_message_id → staff_chat_messages.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
user_id → users.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_03_02_100001_create_staff_chat_tables.php.
users
banned_until is a nullable temporary-ban expiry. Null with an active ban flag remains permanent; authorization uses effective expiry.
Table: users. Account identity, profile, authentication and activity. Full model behavior is documented on the User page.
Model: User. Consumer/configuration: User.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
name |
varchar(255) | no | none; required |
fillable |
email |
varchar(255) | no | none; required |
fillable |
email_verified_at |
timestamp | yes | NULL |
datetime cast; fillable |
password |
varchar(255) | no | none; required |
hashed cast; fillable |
remember_token |
varchar(100) | yes | NULL |
not fillable |
is_banned |
boolean | no | '0' |
boolean cast; fillable |
profile_photo_path |
varchar(2048) | yes | NULL |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
two_factor_secret |
text | yes | NULL |
not fillable |
two_factor_recovery_codes |
text | yes | NULL |
not fillable |
two_factor_confirmed_at |
timestamp | yes | NULL |
not fillable |
force_password_change |
boolean | no | '0' |
fillable |
last_login_at |
timestamp | yes | NULL |
fillable |
last_login_ip |
varchar(45) | yes | NULL |
fillable |
username |
varchar(100) | yes | NULL |
fillable |
last_active |
timestamp | yes | NULL |
datetime cast; fillable |
bio |
text | yes | NULL |
fillable |
timezone |
varchar(100) | yes | NULL |
fillable |
locale |
varchar(20) | yes | NULL |
fillable |
website_url |
varchar(2048) | yes | NULL |
fillable |
legacy_user_id |
integer | yes | NULL |
database field; added by 2026_11_06_200000_add_legacy_credentials_and_id_map.php |
legacy_password_hash |
varchar | yes | NULL |
database field; added by 2026_11_06_200000_add_legacy_credentials_and_id_map.php |
legacy_password_scheme |
varchar | yes | NULL |
database field; added by 2026_11_06_200000_add_legacy_credentials_and_id_map.php |
has_own_password |
tinyint(1) | no | 1 |
database field; added by 2026_11_26_000000_add_has_own_password_to_users_table.php |
Primary key: id.
Unique: (email).
Unique: (username).
Query indexes: (is_banned).
Deleting this row affects: activity_logs.user_id (CASCADE), admin_notifications.user_id (CASCADE), api_keys.created_by (SET NULL), device_fingerprints.user_id (CASCADE), economy_transactions.receiver_id (SET NULL), economy_transactions.sender_id (SET NULL), error_logs.user_id (SET NULL), ip_bans.banned_by (CASCADE), multi_account_cluster_members.user_id (CASCADE), notifications.user_id (CASCADE), oauth_providers.user_id (CASCADE), player_stats.user_id (CASCADE), staff_chat_messages.mentioned_user_id (SET NULL), staff_chat_messages.user_id (CASCADE), staff_chat_read_status.user_id (CASCADE), webhooks.user_id (SET NULL). These are physical-delete rules; soft deletes do not trigger them.
Migration source: 0001_01_01_000000_create_users_table.php, 2026_01_27_213740_add_two_factor_columns_to_users_table.php, 2026_02_03_154136_add_force_password_change_to_users_table.php, 2026_02_04_100004_add_last_login_to_users_table.php, 2026_02_13_000001_add_is_banned_to_users_table.php, 2026_03_01_100000_add_last_active_to_users_table.php, 2026_07_04_140000_create_user_settings_and_profile_fields.php.
webhook deliveries
Table: webhook_deliveries. A recorded outbound delivery attempt, payload and outcome. WebhookService creates records and performs retries.
Model: WebhookDelivery. Consumer/configuration: WebhookService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
webhook_id |
unsigned bigint | no | none; required |
fillable |
event |
varchar(255) | no | none; required |
fillable |
payload |
JSON | no | none; required |
array cast; fillable |
response_code |
unsigned smallint | yes | NULL |
fillable |
response_body |
text | yes | NULL |
fillable |
response_time_ms |
unsigned integer | yes | NULL |
fillable |
attempt |
unsigned tinyint | no | '1' |
fillable |
delivered_at |
timestamp | yes | NULL |
datetime cast; fillable |
error |
text | yes | NULL |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
Primary key: id.
Query indexes: (event); (webhook_id, created_at).
webhook_id → webhooks.id; deleting the referenced row uses CASCADE. Updating referenced keys uses NO ACTION.
Migration source: 2026_02_04_100002_create_webhooks_tables.php.
webhooks
Table: webhooks. Outbound endpoint configuration consumed by WebhookService; model methods handle subscription checks and failure bookkeeping.
Model: Webhook. Consumer/configuration: WebhookService.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
unsigned bigint (auto increment) | no | generated |
not fillable |
user_id |
unsigned bigint | yes | NULL |
fillable |
name |
varchar(255) | no | none; required |
fillable |
url |
varchar(255) | no | none; required |
fillable |
secret |
text | yes | NULL |
encrypted cast; fillable |
events |
JSON | yes | NULL |
array cast; fillable |
is_active |
boolean | no | '1' |
boolean cast; fillable |
headers |
JSON | yes | NULL |
array cast; fillable |
retry_count |
unsigned tinyint | no | '3' |
fillable |
last_triggered_at |
timestamp | yes | NULL |
datetime cast; fillable |
last_response_code |
unsigned smallint | yes | NULL |
fillable |
failure_count |
unsigned smallint | no | '0' |
fillable |
created_at |
timestamp | yes | NULL |
not fillable |
updated_at |
timestamp | yes | NULL |
not fillable |
format |
varchar | no | generic |
database field; added by 2026_11_01_000010_add_format_to_webhooks.php |
Primary key: id.
Query indexes: (is_active).
user_id → users.id; deleting the referenced row uses SET NULL. Updating referenced keys uses NO ACTION.
Deleting this row affects: webhook_deliveries.webhook_id (CASCADE). These are physical-delete rules; soft deletes do not trigger them.
Migration source: 2026_02_04_100002_create_webhooks_tables.php.
Registry migration history: 2026_02_04_021647_rename_modules_table_to_plugins.php, 2026_02_04_024042_rename_installed_modules_table_to_installed_plugins.php, 2026_10_06_100000_consolidate_plugin_registry.php.
Verification and safe use
The schema snapshot was produced by executing migrations against isolated in-memory SQLite only. This dictionary was checked against migration declarations, core models and source consumers; examples on the model pages are separately syntax checked. This does not execute production workflows, prove browser behavior or establish MariaDB parity. No existing application database, runtime model or migration source was changed for this documentation.
Before changing data, identify the service owning the invariant: EconomyService for balance/ledger writes, AntiMultiService for investigation actions, OAuthService for account linking and WebhookService for outbound delivery. Direct model writes do not inherit HTTP validators, policy authorization or cross-record transactions. Consult the documented development/deployment workflow before any migration operation; this page intentionally does not prescribe a live-server command.
user preferences
Current-account settings. user_id is the primary/foreign key with account deletion cascade; preferences and notification_settings are validated JSON objects; created_at and updated_at record persistence. UserPreferencesController enforces ownership and field/type bounds.
stage tickets
Source: stage session migration (backend/database/migrations/2026_11_05_220000_create_stage_sessions_tables.php). No Eloquent model or mass-assignment contract; StageSessionService uses the query builder. Session HTTP defines access.
| Column | Declaration and use |
|---|---|
id |
Auto-increment primary key. |
token_hash |
Unique64-character SHA-256 ticket hash; plaintext ticket returned once to the authenticated player. |
user_id |
Foreign key to users; deleting a user cascades ticket deletion. |
scene_id |
String64; configured scene allowlist scope. |
expires_at |
Indexed timestamp; consume requires expiry after current time. Issuance deletes rows expired more than one hour ago. |
consumed_at |
Nullable timestamp; conditional update from NULL is the portable single-use gate. |
There are no created/updated timestamp columns. Consumption and checkpoint-capability rotation occur transactionally. SQLite tests do not establish MariaDB lock/concurrency behavior.
stage checkpoints
Source: same stage session migration. Stored spatial state is not game progress or an economy ledger. No public player CRUD route exists; service-authenticated checkpoint writes require capability and revision.
| Column | Declaration and use |
|---|---|
id |
Auto-increment primary key. |
user_id |
Foreign key to users with cascade delete. Unique with scene_id. |
scene_id |
String64 scene identity, allowlisted before use. |
session_hash |
Nullable unique64-character SHA-256 checkpoint capability; rotated on ticket consumption, invalidating previous sessions. |
revision |
Unsigned big integer default0; conditional matching update increments it. API accepts at most2147483646 before increment. |
position |
Nullable JSON X/Y/Z position; only numeric finite coordinates inside configured bounds are stored. SQLite introspects JSON as text. |
The (user_id, scene_id) unique index initializes one row per user/scene via insertOrIgnore. Session hashes are unique; no created/updated timestamps exist. Dynamic bodies and room membership are not persisted here. A room-process restart can restore position, but not its prior crate state.
admin tasks
Table: admin_tasks. The admin console's task board (Admin > Task board, AdminTaskController, admin-only): one row per card with its title, description, status, priority, owner, due date and sort order.
Migration: 2026_10_30_000000_create_admin_tasks.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
title |
varchar | no | none; required |
database field |
description |
text | yes | NULL |
database field |
status |
varchar | no | open |
database field |
priority |
varchar | no | normal |
database field |
owner_id |
integer | yes | NULL |
database field |
created_by |
integer | yes | NULL |
database field |
due_at |
datetime | yes | NULL |
database field |
sort_order |
integer | no | 0 |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
anti multi locks
Table: anti_multi_locks. One row that every fingerprint write and cluster evaluation locks (SELECT ... FOR UPDATE) as the first statement of its transaction. Evaluations then run one at a time, so two first sign-ins can never create overlapping clusters, and each one reads the rows the previous one committed, under REPEATABLE READ as well as READ COMMITTED. AntiMultiService::EVALUATION_LOCK names the row.
Migration: 2026_11_27_090300_create_anti_multi_locks_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
name |
varchar | no | none; required |
database field |
content pack installations
Table: content_pack_installations. One row per content pack installed on the site (ContentPackService): which pack and version, and when.
Migration: 2026_11_05_000001_create_content_pack_receipts.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
pack_slug |
varchar | no | none; required |
database field |
version |
varchar | no | none; required |
database field |
manifest_digest |
varchar | no | none; required |
database field |
manifest_snapshot |
text | no | none; required |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
content pack records
Table: content_pack_records. The rows a content pack installed, so an update or removal touches only what the pack wrote (ContentPackService).
Migration: 2026_11_05_000001_create_content_pack_receipts.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
pack_slug |
varchar | no | none; required |
database field |
entity_key |
varchar | no | none; required |
database field |
record_key |
varchar | no | none; required |
database field |
plugin_slug |
varchar | no | none; required |
database field |
table_name |
varchar | no | none; required |
database field |
record_id |
integer | no | none; required |
database field |
version |
varchar | no | none; required |
database field |
payload_digest |
varchar | no | none; required |
database field |
payload_snapshot |
text | no | none; required |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
device address sightings
Table: device_address_sightings. Every address an account signed in from, with its own first and last sighting. device_fingerprints keeps one row per (account, device) and overwrote ip_address on each sign-in, so an address the account used yesterday was forgotten as soon as it signed in from another, and the address window was measured by the device's last sign-in. Address links are now judged on these rows (AntiMultiService). Existing device rows are copied in once: each (user, ip) pair keeps the latest last_seen_at the old rows had for it.
Migration: 2026_11_27_090000_create_device_address_sightings_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
user_id |
integer | no | none; required |
database field |
ip_address |
varchar | no | none; required |
database field |
first_seen_at |
datetime | no | none; required |
database field |
last_seen_at |
datetime | no | none; required |
database field |
idempotency keys
Table: idempotency_keys. Stored responses for the idempotent HTTP middleware. A row with a NULL response_status is a request that is still running (or crashed after the mutation); retries get 409 instead of running the mutation again.
Migration: 2026_11_06_130200_create_idempotency_keys_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
user_id |
integer | no | none; required |
database field |
idempotency_key |
varchar | no | none; required |
database field |
request_hash |
varchar | no | none; required |
database field |
response_status |
integer | yes | NULL |
database field |
response_body |
text | yes | NULL |
database field |
response_content_type |
varchar | yes | NULL |
database field |
expires_at |
datetime | no | none; required |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
legacy id map
Table: legacy_id_map. Legacy-game migration support. users.legacy_* hold a credential imported from another game engine until the player's first successful login, when the password is re-hashed into the normal bcrypt password column and the legacy hash is cleared. The legacy hash never goes into password: its 'hashed' cast would re-hash it. legacy_id_map records which Pulse row each imported legacy row became, so an import can be re-run or resumed without duplicating anything.
Migration: 2026_11_06_200000_add_legacy_credentials_and_id_map.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
source |
varchar | no | none; required |
database field |
entity |
varchar | no | none; required |
database field |
legacy_id |
varchar | no | none; required |
database field |
pulse_id |
integer | yes | NULL |
database field |
metadata |
text | yes | NULL |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
player claims
Table: player_claims. One-time reward claims for ClaimService::claimOnce(). The unique index is the guard: the claim row and the grant commit in one transaction.
Migration: 2026_11_06_130100_create_player_claims_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
user_id |
integer | no | none; required |
database field |
scope |
varchar | no | none; required |
database field |
claim_key |
varchar | no | none; required |
database field |
result |
text | yes | NULL |
database field |
claimed_at |
datetime | no | none; required |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
player cooldowns
Table: player_cooldowns. Durable cooldowns for TimerService. One row per user and key; the row is reused, so the table grows with distinct keys, not with attempts. available_at is a Unix timestamp (seconds) so the guarded claim UPDATE compares integers on both SQLite and MariaDB, independent of timezone. The column is named cooldown_key because KEY is reserved in MariaDB.
Migration: 2026_11_06_130000_create_player_cooldowns_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
user_id |
integer | no | none; required |
database field |
cooldown_key |
varchar | no | none; required |
database field |
available_at |
integer | no | 0 |
database field |
metadata |
text | yes | NULL |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
player currency balances
Table: player_currency_balances. Balances for registered (non-built-in) currencies. Built-in money/bank stay on player_stats.
Migration: 2026_11_06_110000_create_player_currency_balances_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
user_id |
integer | no | none; required |
database field |
currency |
varchar | no | none; required |
database field |
balance |
integer | no | 0 |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
pulse tick heartbeats
Table: pulse_tick_heartbeats. Durable per-interval tick heartbeats. The cache-backed pulse telemetry is wiped by cache:clear / optimize:clear (routine during deploys) and expires after an hour, so it cannot prove that an hourly or daily tick ran. One row per interval records the last dispatch and the last completed execution for ops:health ticks and /healthz/ready.
Migration: 2026_11_06_100000_create_pulse_tick_heartbeats_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
interval |
varchar | no | none; required |
database field |
last_dispatched_at |
datetime | yes | NULL |
database field |
last_completed_at |
datetime | yes | NULL |
database field |
last_duration_ms |
integer | yes | NULL |
database field |
last_listener_count |
integer | yes | NULL |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
role plugin admin access
Table: role_plugin_admin_access. Roles gain a display colour (the player-name colour) and a list of plugins whose admin routes holders of the role may use ("*" means every plugin). The admin role always has every plugin; its rows are never consulted.
Migration: 2026_11_11_120000_add_role_colour_and_plugin_admin_access.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
role_id |
integer | no | none; required |
database field |
plugin_slug |
varchar | no | none; required |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |
transfer recipient introductions
Table: transfer_recipient_introductions. Player transfer rules (1.0.4): when a sender first tried to pay a player they had never paid, which starts the new-recipient cooldown. One row per (sender, recipient); a completed ledger transfer makes the pair known after that, so the row is only read while the pair has no transfer. economy_transactions(sender_id, created_at): the rolling 24-hour cap sums one sender's recent rows under a shared lock; this index keeps that read (and its InnoDB range locks) to the window instead of the sender's whole history.
Migration: 2026_11_13_150000_create_transfer_recipient_introductions_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
sender_id |
integer | no | none; required |
database field |
recipient_id |
integer | no | none; required |
database field |
first_attempt_at |
datetime | no | none; required |
database field |
user flags
Table: user_flags. User_flags used to be created by UserToolsController::addFlag() on first use. Runtime DDL in a request is unsafe on MySQL/MariaDB: it implicitly commits any open transaction, two first requests race into "table already exists", and a least-privilege production DB user may not hold CREATE. Installs where the request already created the table keep it (same columns).
Migration: 2026_11_06_100200_create_user_flags_table.php.
| Column | Migration type | Nullable | Database default | Model conversion / assignment |
|---|---|---|---|---|
id |
integer | no | auto increment | database field |
user_id |
integer | no | none; required |
database field |
type |
varchar | no | none; required |
database field |
label |
varchar | yes | NULL |
database field |
value |
text | yes | NULL |
database field |
reason |
text | yes | NULL |
database field |
severity |
varchar | no | info |
database field |
created_at |
datetime | yes | NULL |
database field |
updated_at |
datetime | yes | NULL |
database field |