appwrite/app/config/collections.php

35 lines
969 B
PHP
Raw Normal View History

2019-08-09 14:46:09 +00:00
<?php
2025-01-02 04:48:47 +00:00
$common = include __DIR__ . '/collections/common.php';
$projects = include __DIR__ . '/collections/projects.php';
$databases = include __DIR__ . '/collections/databases.php';
2025-01-02 04:48:47 +00:00
$platform = include __DIR__ . '/collections/platform.php';
2025-01-27 02:50:50 +00:00
$logs = include __DIR__ . '/collections/logs.php';
2025-01-02 04:48:47 +00:00
2025-01-03 11:50:27 +00:00
// see - http.php#245
// $collections['buckets']['files'];
$buckets = ['files' => $common['files']];
// no more required.
unset($common['files']);
2020-03-28 12:42:16 +00:00
/**
* $collection => id of the parent collection where this will be inserted
* $id => id of this collection
* name => name of this collection
* project => whether this collection should be created per project
* attributes => list of attributes
* indexes => list of indexes
*/
2023-08-04 19:15:32 +00:00
$collections = [
'buckets' => $buckets,
'databases' => $databases,
2025-12-23 12:30:43 +00:00
'projects' => array_merge_recursive($projects, $common),
'console' => array_merge_recursive($platform, $common),
2025-01-27 02:50:50 +00:00
'logs' => $logs,
];
2022-01-18 11:05:04 +00:00
return $collections;