From 35293ac1b9ab8b386f3c36674cfc9533c9339bca Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Fri, 8 Jan 2021 10:08:21 +0100 Subject: [PATCH] Migration Tweeks #2 --- .../2021_01_07_184250_create_devices_table.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/database/migrations/2021_01_07_184250_create_devices_table.php b/database/migrations/2021_01_07_184250_create_devices_table.php index a6b5ffc..54be862 100644 --- a/database/migrations/2021_01_07_184250_create_devices_table.php +++ b/database/migrations/2021_01_07_184250_create_devices_table.php @@ -16,19 +16,19 @@ class CreateDevicesTable extends Migration Schema::create('devices', function (Blueprint $table) { $table->id()->unique(); $table->int('room_id'); //TODO: Foregin key to Room Table - $table->string('type'); - $table->string('token')->unique(); - $table->datetime('heartbeat') - $table->string('mac'); - $table->string('firmware_hash'); - $table->string('ip_address')->unique(); - $table->string('sleep_time'); $table->string('owner_id'); //TODO: Foregin key to user Table + $table->string('token')->unique(); $table->boolval('approved'); - $table->string('icon'); - $table->string('command'); $table->string('name')->unique(); $table->string('description')->nullable(); + $table->string('type'); + $table->string('icon'); + $table->string('mac_address'); + $table->string('ip_address')->unique(); + $table->string('firmware_hash'); + $table->string('sleep_time'); + $table->datetime('heartbeat') + $table->string('command'); $table->timestamps(); }); }