added migrations of events, feedback, washing machines, and calendar events.

changed migration users table name into name first and name last.
added migration external link table string: name and link.
This commit is contained in:
Vedde 2020-06-08 14:59:25 +02:00
parent cb20b1f862
commit e2562f6960
7 changed files with 133 additions and 4 deletions

View File

@ -15,10 +15,12 @@ class CreateUsersTable extends Migration
{ {
Schema::create('users', function (Blueprint $table) { Schema::create('users', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('name'); $table->string('name_first');
$table->string('name_last');
$table->string('email')->unique(); $table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable(); $table->timestamp('email_verified_at')->nullable();
$table->string('password'); $table->string('password');
$table->integer("phone")->unique();
$table->rememberToken(); $table->rememberToken();
$table->timestamps(); $table->timestamps();
}); });

View File

@ -15,6 +15,8 @@ class CreateExternalLink extends Migration
{ {
Schema::create('external_link', function (Blueprint $table) { Schema::create('external_link', function (Blueprint $table) {
$table->id(); $table->id();
$table->string("name");
$table->string("link");
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateFeedback extends Migration class CreateEvents extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
@ -13,7 +13,7 @@ class CreateFeedback extends Migration
*/ */
public function up() public function up()
{ {
Schema::create('feedback', function (Blueprint $table) { Schema::create('events', function (Blueprint $table) {
$table->id(); $table->id();
$table->timestamps(); $table->timestamps();
}); });
@ -26,6 +26,6 @@ class CreateFeedback extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('feedback'); Schema::dropIfExists('events');
} }
} }

View File

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

View File

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

View File

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

View File

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