From 76287beca038f58c2bbdd79a8a9c5127ce674055 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 3 Sep 2025 04:36:34 +1200 Subject: [PATCH] Format --- app/config/collections/projects.php | 170 ++++++++++++++-------------- 1 file changed, 85 insertions(+), 85 deletions(-) diff --git a/app/config/collections/projects.php b/app/config/collections/projects.php index e48dcef451..7bd1d4a7d8 100644 --- a/app/config/collections/projects.php +++ b/app/config/collections/projects.php @@ -2524,138 +2524,138 @@ return [ 'transactions' => [ '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('transactions'), - 'name' => 'Transactions', - 'attributes' => [ + '$id' => ID::custom('transactions'), + 'name' => 'Transactions', + 'attributes' => [ [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'size' => 16, // pending | committing | committed | rolled_back | failed - 'signed' => true, + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'size' => 16, // pending | committing | committed | rolled_back | failed + 'signed' => true, 'required' => false, - 'default' => 'pending', - 'array' => false, - 'filters' => [], + 'default' => 'pending', + 'array' => false, + 'filters' => [], ], [ - '$id' => ID::custom('operations'), - 'type' => Database::VAR_INTEGER, - 'size' => 0, - 'signed' => false, + '$id' => ID::custom('operations'), + 'type' => Database::VAR_INTEGER, + 'size' => 0, + 'signed' => false, 'required' => true, - 'default' => 0, - 'array' => false, - 'filters' => [], + 'default' => 0, + 'array' => false, + 'filters' => [], ], [ - '$id' => ID::custom('expiresAt'), - 'type' => Database::VAR_DATETIME, - 'size' => 0, - 'signed' => true, + '$id' => ID::custom('expiresAt'), + 'type' => Database::VAR_DATETIME, + 'size' => 0, + 'signed' => true, 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], ], ], 'indexes' => [ [ - '$id' => ID::custom('_key_status'), - 'type' => Database::INDEX_KEY, + '$id' => ID::custom('_key_status'), + 'type' => Database::INDEX_KEY, 'attributes' => ['status'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], ], [ - '$id' => ID::custom('_key_expires'), - 'type' => Database::INDEX_KEY, + '$id' => ID::custom('_key_expires'), + 'type' => Database::INDEX_KEY, 'attributes' => ['expiresAt'], - 'lengths' => [], - 'orders' => [Database::ORDER_DESC], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], ], ], ], 'transactionLogs' => [ '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('transactionLogs'), - 'name' => 'Transaction Logs', - 'attributes' => [ + '$id' => ID::custom('transactionLogs'), + 'name' => 'Transaction Logs', + 'attributes' => [ [ - '$id' => ID::custom('transactionInternalId'), - 'type' => Database::VAR_STRING, - 'size' => Database::LENGTH_KEY, - 'signed' => true, + '$id' => ID::custom('transactionInternalId'), + 'type' => Database::VAR_STRING, + 'size' => Database::LENGTH_KEY, + 'signed' => true, 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], + 'default' => null, + 'array' => false, + 'filters' => [], ], [ - '$id' => ID::custom('databaseInternalId'), - 'type' => Database::VAR_STRING, - 'size' => Database::LENGTH_KEY, - 'signed' => true, + '$id' => ID::custom('databaseInternalId'), + 'type' => Database::VAR_STRING, + 'size' => Database::LENGTH_KEY, + 'signed' => true, 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], + 'default' => null, + 'array' => false, + 'filters' => [], ], [ - '$id' => ID::custom('collectionInternalId'), - 'type' => Database::VAR_STRING, - 'size' => Database::LENGTH_KEY, - 'signed' => true, + '$id' => ID::custom('collectionInternalId'), + 'type' => Database::VAR_STRING, + 'size' => Database::LENGTH_KEY, + 'signed' => true, 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], + 'default' => null, + 'array' => false, + 'filters' => [], ], [ - '$id' => ID::custom('documentId'), - 'type' => Database::VAR_STRING, - 'size' => Database::LENGTH_KEY, - 'signed' => true, + '$id' => ID::custom('documentId'), + 'type' => Database::VAR_STRING, + 'size' => Database::LENGTH_KEY, + 'signed' => true, 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], + 'default' => null, + 'array' => false, + 'filters' => [], ], [ - '$id' => ID::custom('action'), - 'type' => Database::VAR_STRING, - 'size' => 32, // create | update | upsert | increment | decrement | delete - 'signed' => true, + '$id' => ID::custom('action'), + 'type' => Database::VAR_STRING, + 'size' => 32, // create | update | upsert | increment | decrement | delete + 'signed' => true, 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], + 'default' => null, + 'array' => false, + 'filters' => [], ], [ - '$id' => ID::custom('data'), - 'type' => Database::VAR_STRING, - 'size' => 65535, - 'signed' => false, + '$id' => ID::custom('data'), + 'type' => Database::VAR_STRING, + 'size' => 65535, + 'signed' => false, 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json'], + 'default' => null, + 'array' => false, + 'filters' => ['json'], ], ], 'indexes' => [ [ - '$id' => ID::custom('_key_transaction'), - 'type' => Database::INDEX_KEY, + '$id' => ID::custom('_key_transaction'), + 'type' => Database::INDEX_KEY, 'attributes' => ['transactionInternalId'], - 'lengths' => [], - 'orders' => [], + 'lengths' => [], + 'orders' => [], ], [ - '$id' => ID::custom('_key_internal_path'), - 'type' => Database::INDEX_KEY, + '$id' => ID::custom('_key_internal_path'), + 'type' => Database::INDEX_KEY, 'attributes' => ['databaseInternalId', 'collectionInternalId'], - 'lengths' => [], - 'orders' => [], + 'lengths' => [], + 'orders' => [], ], ], ],