atcheck/database/migrations/2019_12_15_123155_usercache.php

36 lines
777 B
PHP
Raw Normal View History

2019-12-16 18:42:21 +01:00
<?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');
}
}