Your IP : 3.138.179.120


Current Path : /home/lentoinv/test.api.lentoria.com/database/migrations/
Upload File :
Current File : /home/lentoinv/test.api.lentoria.com/database/migrations/2022_12_15_020600_create_devices_table.php

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('devices', function (Blueprint $table) {
            $table->id();
            $table->integer('user_id');
            $table->string('user_agent');
            $table->string('browser_name');
            $table->string('version');
            $table->string('platform');
            $table->string('pattern');
            $table->string('system_id');
            $table->integer('logged_in');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('devices');
    }
};

?>