Initial commit

This commit is contained in:
Rutra
2026-02-25 00:34:39 +01:00
commit 54b0fc3485
178 changed files with 12761 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { BaseSchema } from '@adonisjs/lucid/schema';
export default class extends BaseSchema {
tableName = 'trainings';
async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary();
table.string('name').notNullable();
table.date('start').nullable();
table.date('end').nullable();
table.string('skill').nullable();
table.string('place').nullable();
table.timestamp('created_at').notNullable();
table.timestamp('updated_at').nullable();
});
}
async down() {
this.schema.dropTable(this.tableName);
}
}
//# sourceMappingURL=1771333780377_create_trainings_table.js.map