Compare commits
No commits in common. "27e9ef9f27f45339e39244cc873a79ed6ce9466d" and "7e5176d5f300885b7fdf68d3350e14371c21de32" have entirely different histories.
27e9ef9f27
...
7e5176d5f3
5
.gitignore
vendored
5
.gitignore
vendored
@ -12,8 +12,3 @@ Homestead.yaml
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.vscode
|
|
||||||
|
@ -16,19 +16,19 @@ class CreateDevicesTable extends Migration
|
|||||||
Schema::create('devices', function (Blueprint $table) {
|
Schema::create('devices', function (Blueprint $table) {
|
||||||
$table->id()->unique();
|
$table->id()->unique();
|
||||||
$table->int('room_id'); //TODO: Foregin key to Room Table
|
$table->int('room_id'); //TODO: Foregin key to Room Table
|
||||||
$table->string('owner_id'); //TODO: Foregin key to user Table
|
$table->string('type');
|
||||||
$table->string('token')->unique();
|
$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->boolval('approved');
|
$table->boolval('approved');
|
||||||
|
$table->string('icon');
|
||||||
|
$table->string('command');
|
||||||
$table->string('name')->unique();
|
$table->string('name')->unique();
|
||||||
$table->string('description')->nullable();
|
$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();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user