improve collection config

This commit is contained in:
Damodar Lohani
2023-12-26 23:59:31 +00:00
parent 2e39fbe70f
commit 9ccdabb8e9
+32 -2
View File
@@ -3211,6 +3211,17 @@ $projectCollections = array_merge([
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('fileInternalId'),
'type' => Database::VAR_STRING,
'format' => '',
'size' => Database::LENGTH_KEY,
'signed' => true,
'required' => true,
'default' => null,
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('bucketId'),
'type' => Database::VAR_STRING,
@@ -3222,6 +3233,17 @@ $projectCollections = array_merge([
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('bucketInternalId'),
'type' => Database::VAR_STRING,
'format' => '',
'size' => Database::LENGTH_KEY,
'signed' => true,
'required' => true,
'default' => null,
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('secret'),
'type' => Database::VAR_STRING,
@@ -3249,10 +3271,18 @@ $projectCollections = array_merge([
[
'$id' => '_key_file_id_bucket_id',
'type' => Database::INDEX_KEY,
'attributes' => ['bucketId', 'fileId'],
'attributes' => ['bucketInternalId', 'fileInternalId'],
'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY],
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
]
],
[
'$id' => '_key_expiry_date',
'type' => Database::INDEX_KEY,
'attributes' => ['expiryDate'],
'lengths' => [],
'orders' => [Database::ORDER_ASC],
],
],
],
], $commonCollections);