database migrations for help desk tickets, and queues
models for help desk tickets and queues model for EveMail modified app config for queues added new routes for jump bridges composer updated for autoloader modified JumpBridgeController added new controllers for HelpDesk and HelpDeskAdmin
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_ticket');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('help_desk_tickets')) {
|
||||
Schema::create('help_desk_tickets', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('ticket_id');
|
||||
$table->string('user_id');
|
||||
$table->string('assigned_id');
|
||||
$table->string('department');
|
||||
$table->string('subject');
|
||||
$table->text('body');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_tickets');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketResponsesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('help_desk_ticket_responses')) {
|
||||
Schema::create('help_desk_ticket_responses', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('ticket_id');
|
||||
$table->string('assigned_id');
|
||||
$table->text('body');
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
}
|
||||
Schema::create('help_desk_ticket_responses', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_ticket_responses');
|
||||
}
|
||||
}
|
||||
39
database/migrations/2018_12_24_020905_create_jobs_table.php
Normal file
39
database/migrations/2018_12_24_020905_create_jobs_table.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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()
|
||||
{
|
||||
if(!Schema::hasTable('jobs')) {
|
||||
Schema::create('jobs', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('queue')->index();
|
||||
$table->longText('payload');
|
||||
$table->unsignedTinyInteger('attempts');
|
||||
$table->unsignedInteger('reserved_at')->nullable();
|
||||
$table->unsignedInteger('available_at');
|
||||
$table->unsignedInteger('created_at');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jobs');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateEveMailsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('eve_mails')) {
|
||||
Schema::create('eve_mails', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('sender');
|
||||
$table->string('recipient');
|
||||
$table->string('subject');
|
||||
$table->string('body');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('eve_mails');
|
||||
}
|
||||
}
|
||||
@@ -18,5 +18,21 @@ class AvailableUserPermissions extends Seeder
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'logistics.minion',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.diplomat',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.moonadmin',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.fleetcommand',
|
||||
]);
|
||||
|
||||
DB::table('available_user_permissions')->insert([
|
||||
'permission' => 'helpdesk.leadership',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user