<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectTypeDocumentTemplatesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //DEPRECATED ---> Struktur geändert, wird nicht mehr genutzt !!
//        Schema::create('project_type_document_templates', function (Blueprint $table) {
//            $table->increments('id');
//            $table->integer('project_type_id')->unsigned();
//            $table->integer('document_template_id')->unsigned();
//            $table->foreign('project_type_id')->references('id')->on('project_types')->onDelete('cascade');
//            $table->foreign('document_template_id')->references('id')->on('document_templates')->onDelete('cascade');
//            $table->timestamps();
//        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('project_type_document_templates');
    }
}
