aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Database.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/structures/Database.js')
-rw-r--r--src/api/structures/Database.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/structures/Database.js b/src/api/structures/Database.js
index dc26afe..76ea006 100644
--- a/src/api/structures/Database.js
+++ b/src/api/structures/Database.js
@@ -34,6 +34,7 @@ class Database {
// table.string('identifier');
// table.boolean('enabled');
// table.boolean('enableDownload').defaultTo(true);
+ table.timestamp('zippedAt');
table.timestamp('createdAt');
table.timestamp('editedAt');
});
@@ -57,6 +58,7 @@ class Database {
if (!await db.schema.hasTable('links')) {
await db.schema.createTable('links', table => {
table.increments();
+ table.integer('userId');
table.integer('albumId');
table.string('identifier');
table.integer('views').defaultTo(0);