36 lines
777 B
PHP
36 lines
777 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class Usercache extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('usercache', function (Blueprint $table) {
|
|
$table->bigIncrements('id')->unique();
|
|
$table->string('name');
|
|
$table->string('surname');
|
|
$table->string('classcode');
|
|
$table->string('index');
|
|
$table->timestamp('inserted_at')->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('usercache');
|
|
}
|
|
}
|