Files
api.personalink/database/migrations/1778591342684_create_profiles_table.js
2026-05-13 11:50:22 +02:00

20 lines
734 B
JavaScript

import { BaseSchema } from '@adonisjs/lucid/schema';
export default class extends BaseSchema {
tableName = 'profiles';
async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id');
table.string('name').notNullable();
table.string('avatar_url').notNullable();
table.string('title').notNullable();
table.text('description').notNullable();
table.text('about_text').notNullable();
table.timestamp('created_at');
table.timestamp('updated_at');
});
}
async down() {
this.schema.dropTable(this.tableName);
}
}
//# sourceMappingURL=1778591342684_create_profiles_table.js.map