Files
api.portfolio/database/migrations/1771333780373_create_information_table.js
2026-02-25 00:34:39 +01:00

21 lines
818 B
JavaScript

import { BaseSchema } from '@adonisjs/lucid/schema';
export default class extends BaseSchema {
tableName = 'information';
async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary();
table.string('name').notNullable();
table.string('headline').notNullable();
table.string('contact', 254).notNullable();
table.string('linkedin').nullable();
table.string('github').nullable();
table.date('birthday').nullable();
table.timestamp('created_at').notNullable();
table.timestamp('updated_at').nullable();
});
}
async down() {
this.schema.dropTable(this.tableName);
}
}
//# sourceMappingURL=1771333780373_create_information_table.js.map