Added a few models and migrations

This commit is contained in:
Vedde 2020-06-09 10:45:16 +02:00
parent 5c6f37eaf7
commit fa6fdcd690
8 changed files with 98 additions and 1 deletions

10
skolehjem/app/Event.php Normal file
View File

@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
//
}

View File

@ -49,7 +49,7 @@ class EventController extends Controller
}
/**
* Show the form for editing the specified resource.
* Show the form for editing the specified resource.-
*
* @param int $id
* @return \Illuminate\Http\Response

View File

@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Resource extends Model
{
//
}

View File

@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ResourceCategory extends Model
{
//
}

View File

@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ResourceExtension extends Model
{
//
}

View File

@ -15,6 +15,7 @@ class CreateWashingReservations extends Migration
{
Schema::create('washing_reservations', function (Blueprint $table) {
$table->id();
$table->time("time");
$table->timestamps();
});
}

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterFeedbacks extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterWashingReservations extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}