mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
PHP
<?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->increments('id');
|
|
$table->string('name');
|
|
$table->text('desc');
|
|
$table->text('acces_level');
|
|
$table->boolean('schedule_see');
|
|
$table->boolean('schedule_edit');
|
|
$table->boolean('schedule_notify');
|
|
$table->boolean('message_see');
|
|
$table->boolean('message_edit');
|
|
$table->boolean('message_notify');
|
|
$table->boolean('paper_edit');
|
|
$table->boolean('paper_publish');
|
|
$table->boolean('paper_notify');
|
|
$table->boolean('inventory_see');
|
|
$table->boolean('inventory_edit');
|
|
$table->boolean('inventory_notify');
|
|
$table->boolean('user_see');
|
|
$table->boolean('user_edit');
|
|
$table->boolean('user_notify');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('jobs');
|
|
}
|
|
}
|