This commit is contained in:
2020-06-29 14:28:17 +02:00
46 changed files with 764 additions and 114 deletions
@@ -16,6 +16,7 @@ class CreateFeedbacks extends Migration
Schema::create('feedbacks', function (Blueprint $table) {
$table->id();
$table->string("message");
$table->string("suggestion_form"); //Skriver om det er Ris el. Ros
$table->timestamps();
});
}
@@ -13,9 +13,14 @@ class CreateContact extends Migration
*/
public function up()
{
Schema::create('contact', function (Blueprint $table) {
Schema::create('contacts', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name_first', 255);
$table->string('name_last', 255);
$table->string('email', 255);
$table->integer('phone');
//$table->unique('email');
});
}
@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateStaffTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('staff', function (Blueprint $table) {
$table->id();
$table->string('name_first');
$table->string('name_last');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->integer("phone")->unique();
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('staff');
}
}