Added front page, moved shelf navigation to header.

This commit is contained in:
2023-06-25 23:50:08 +02:00
parent 77085c5755
commit b3e5769d39
27 changed files with 554 additions and 109 deletions

View File

@@ -76,6 +76,24 @@ export async function up(knex) {
table.boolean('is_nsfw');
});
await knex.schema.createTable('shelves_subscriptions', (table) => {
table.increments('id');
table.integer('shelf_id')
.references('id')
.inTable('shelves');
table.integer('user_id')
.references('id')
.inTable('users');
table.unique(['shelf_id', 'user_id']);
table.datetime('created_at')
.notNullable()
.defaultTo(knex.fn.now());
});
await knex.schema.createTable('posts', (table) => {
table.text('id', 8)
.primary()