summaryrefslogtreecommitdiff
path: root/src/api/models/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/models/app.ts')
-rw-r--r--src/api/models/app.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/models/app.ts b/src/api/models/app.ts
new file mode 100644
index 0000000000..221a53906a
--- /dev/null
+++ b/src/api/models/app.ts
@@ -0,0 +1,7 @@
+const collection = global.db.collection('apps');
+
+collection.createIndex('name_id');
+collection.createIndex('name_id_lower');
+collection.createIndex('secret');
+
+export default collection;