Rename profile to information

This commit is contained in:
2021-08-14 14:48:10 +02:00
parent a5062cc854
commit 046fe0b0a9
6 changed files with 39 additions and 31 deletions

View File

@@ -1,14 +1,18 @@
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class Profiles extends BaseSchema {
protected tableName = 'profiles'
export default class Informations extends BaseSchema {
protected tableName = 'informations'
public async up () {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.integer('age').notNullable()
table.string('hiring_color').notNullable()
table.string('hiring_status').notNullable()
table
.integer('translation_id')
.unsigned()
.references('translations.id')
.onDelete('CASCADE')
table.timestamps(true, true)
})
}