This commit is contained in:
2020-12-19 23:02:07 +01:00
parent 66aa4f957c
commit d71659e50d
16 changed files with 168 additions and 161 deletions

View File

@@ -1,23 +0,0 @@
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class DeezerSongs extends BaseSchema {
protected tableName = 'deezer_songs'
public async up () {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.string('author')
table.string('title')
table.string('album')
table.string('type')
table.string('device')
table.integer('duration')
table.date('release_date')
table.timestamps(true)
})
}
public async down () {
this.schema.dropTable(this.tableName)
}
}

View File

@@ -0,0 +1,20 @@
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class Projects extends BaseSchema {
protected tableName = 'projects'
public async up () {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary()
table.string('name')
table.string('description')
table.string('url')
table.integer('progress')
table.timestamps(true)
})
}
public async down () {
this.schema.dropTable(this.tableName)
}
}