This commit is contained in:
TheGamecraft
2018-07-16 20:28:57 -04:00
parent 2b2b726838
commit af458ad411
7 changed files with 75 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ class CreateUsersTable extends Migration
$table->string('lastname');
$table->string('email')->unique();
$table->string('password');
$table->string('rank');
$table->string('rank')->default('0');
$table->string('adress');
$table->string('telephone');
$table->string('age');

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('logs', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id');
$table->string('action');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('logs');
}
}