Page MenuHomePhorge

2021_05_05_134357_create_companion_apps_table.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

2021_05_05_134357_create_companion_apps_table.php

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCompanionAppsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('companion_apps', static function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('user_id');
// Seems to grow over time, no clear specification.
// Typically below 200 bytes, but some mention up to 350 bytes.
$table->string('notification_token', 512)->nullable();
// 16 byte for android, 36 for ios. May change over tyme
$table->string('device_id', 64);
$table->string('name')->nullable();
$table->boolean('mfa_enabled');
$table->timestamps();
$table->foreign('user_id')
->references('id')->on('users')
->onDelete('cascade')
->onUpdate('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('companion_apps');
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Apr 4, 4:04 AM (12 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822518
Default Alt Text
2021_05_05_134357_create_companion_apps_table.php (1 KB)

Event Timeline