<?php

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

class CreateJobsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('jobs', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('job_title');
            $table->string('job_type');
            $table->string('department');
            $table->integer('salary');
            $table->string('branch');
            $table->string('day');
            $table->string('time');
            $table->integer('num');
            $table->string('gender');
            $table->string('degree');
            $table->string('gpax');
            $table->string('phase');
            $table->text('feature');
            $table->text('role');
            $table->text('welfare');
            $table->unsignedBigInteger('company_id');
            $table->foreign('user_id')->references('id')->on('users');
            $table->timestamps();
        });
    }

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