feat: add create link form

This commit is contained in:
Sonny
2024-05-09 23:14:42 +02:00
committed by Sonny
parent 2cf8c5ae02
commit 73f8c0c513
16 changed files with 244 additions and 64 deletions

View File

@@ -1,24 +0,0 @@
import { BaseSchema } from '@adonisjs/lucid/schema';
export default class extends BaseSchema {
protected tableName = 'collection_link';
async up() {
this.schema.createTable(this.tableName, (table) => {
table
.uuid('collection_id')
.references('id')
.inTable('collections')
.onDelete('CASCADE');
table
.uuid('link_id')
.references('id')
.inTable('links')
.onDelete('CASCADE');
});
}
async down() {
this.schema.dropTable(this.tableName);
}
}