diff --git a/database/migrations/1608409461999_docker_commands.ts b/database/migrations/1608409461999_docker_commands.ts new file mode 100644 index 0000000..f4fa533 --- /dev/null +++ b/database/migrations/1608409461999_docker_commands.ts @@ -0,0 +1,17 @@ +import BaseSchema from '@ioc:Adonis/Lucid/Schema' + +export default class DockerCommands extends BaseSchema { + protected tableName = 'docker_commands' + + public async up () { + this.schema.createTable(this.tableName, (table) => { + table.increments('id') + table.bigInteger('commands') + table.timestamps(true) + }) + } + + public async down () { + this.schema.dropTable(this.tableName) + } +} diff --git a/database/migrations/1608409468598_docker_builds.ts b/database/migrations/1608409468598_docker_builds.ts new file mode 100644 index 0000000..1c47f1b --- /dev/null +++ b/database/migrations/1608409468598_docker_builds.ts @@ -0,0 +1,17 @@ +import BaseSchema from '@ioc:Adonis/Lucid/Schema' + +export default class DockerBuilds extends BaseSchema { + protected tableName = 'docker_builds' + + public async up () { + this.schema.createTable(this.tableName, (table) => { + table.increments('id') + table.bigInteger('builds') + table.timestamps(true) + }) + } + + public async down () { + this.schema.dropTable(this.tableName) + } +} diff --git a/database/migrations/1608409476823_locations.ts b/database/migrations/1608409476823_locations.ts new file mode 100644 index 0000000..b754533 --- /dev/null +++ b/database/migrations/1608409476823_locations.ts @@ -0,0 +1,19 @@ +import BaseSchema from '@ioc:Adonis/Lucid/Schema' + +export default class Locations extends BaseSchema { + protected tableName = 'locations' + + public async up () { + this.schema.createTable(this.tableName, (table) => { + table.increments('id') + table.string('place') + table.string('left') + table.date('since') + table.timestamps(true) + }) + } + + public async down () { + this.schema.dropTable(this.tableName) + } +} diff --git a/database/migrations/1608409618132_deezer_songs.ts b/database/migrations/1608409618132_deezer_songs.ts new file mode 100644 index 0000000..f14f6a0 --- /dev/null +++ b/database/migrations/1608409618132_deezer_songs.ts @@ -0,0 +1,23 @@ +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) + } +} diff --git a/start/routes.ts b/start/routes.ts index aea2d99..953e2d9 100644 --- a/start/routes.ts +++ b/start/routes.ts @@ -29,7 +29,6 @@ Route.get('/', async ({response}: HttpContextContract) => { TODO -Location: get Last + Add location + View history Deezer Songs: Tasks: kernel : setTimeout or cron