My first commit of codes
This commit is contained in:
0
database/migrations/.gitkeep
Normal file
0
database/migrations/.gitkeep
Normal file
36
database/migrations/2014_10_12_000000_create_users_table.php
Normal file
36
database/migrations/2014_10_12_000000_create_users_table.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateUsersTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('users', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->string('password', 60);
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('users');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePasswordResetsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('password_resets', function(Blueprint $table)
|
||||
{
|
||||
$table->string('email')->index();
|
||||
$table->string('token')->index();
|
||||
$table->timestamp('created_at');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('password_resets');
|
||||
}
|
||||
|
||||
}
|
342
database/migrations/2015_03_11_082618_helpdesk.php
Normal file
342
database/migrations/2015_03_11_082618_helpdesk.php
Normal file
@@ -0,0 +1,342 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class Helpdesk extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('agents', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('user_name')->unique();
|
||||
$table->string('first_name');
|
||||
$table->string('last_name');
|
||||
$table->string('email');
|
||||
$table->string('phone');
|
||||
$table->string('mobile');
|
||||
$table->string('agent_sign');
|
||||
$table->boolean('account_type');
|
||||
$table->boolean('account_status');
|
||||
$table->string('assign_group');
|
||||
$table->string('primary_dpt');
|
||||
$table->string('agent_tzone');
|
||||
$table->boolean('daylight_save');
|
||||
$table->boolean('limit_access');
|
||||
$table->boolean('directory_listing');
|
||||
$table->boolean('vocation_mode');
|
||||
$table->string('assign_team');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('teams', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->string('team_lead');
|
||||
$table->boolean('assign_alert');
|
||||
$table->string('admin_notes');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('groups', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->boolean('group_status');
|
||||
$table->boolean('can_create_ticket');
|
||||
$table->boolean('can_edit_ticket');
|
||||
$table->boolean('can_post_ticket');
|
||||
$table->boolean('can_close_ticket');
|
||||
$table->boolean('can_assign_ticket');
|
||||
$table->boolean('can_trasfer_ticket');
|
||||
$table->boolean('can_delete_ticket');
|
||||
$table->boolean('can_ban_email');
|
||||
$table->boolean('can_manage_canned');
|
||||
$table->boolean('can_manage_faq');
|
||||
$table->boolean('can_view_agent_stats');
|
||||
$table->boolean('department_access');
|
||||
$table->string('admin_notes');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('department', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->boolean('type');
|
||||
$table->string('sla');
|
||||
$table->string('manager');
|
||||
$table->boolean('ticket_assignment');
|
||||
$table->string('outgoing_email');
|
||||
$table->string('template_set');
|
||||
$table->boolean('auto_ticket_response');
|
||||
$table->boolean('auto_message_response');
|
||||
$table->string('auto_response_email');
|
||||
$table->string('recipient');
|
||||
$table->boolean('group_access');
|
||||
$table->string('department_sign');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('emails', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('email_address');
|
||||
$table->string('email_name');
|
||||
$table->string('department');
|
||||
$table->string('priority');
|
||||
$table->string('help_topic');
|
||||
$table->string('user_name');
|
||||
$table->string('password');
|
||||
$table->string('fetching_host');
|
||||
$table->string('fetching_port');
|
||||
$table->string('mailbox_protocol');
|
||||
$table->string('folder');
|
||||
$table->string('sending_host');
|
||||
$table->string('sending_port');
|
||||
$table->boolean('internal_notes');
|
||||
$table->boolean('auto_response');
|
||||
$table->boolean('fetching_status');
|
||||
$table->boolean('move_to_folder');
|
||||
$table->boolean('delete_email');
|
||||
$table->boolean('do_nothing');
|
||||
$table->boolean('sending_status');
|
||||
$table->boolean('authentication');
|
||||
$table->boolean('header_spoofing');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('banlist', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->boolean('ban_status');
|
||||
$table->string('email_address');
|
||||
$table->string('internal_notes');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
Schema::create('template', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->string('template_set_to_clone');
|
||||
$table->string('language');
|
||||
$table->string('internal_note');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('help_topic', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('topic');
|
||||
$table->string('parent_topic');
|
||||
$table->string('custom_form');
|
||||
$table->string('department');
|
||||
$table->string('ticket_status');
|
||||
$table->string('priority');
|
||||
$table->string('sla_plan');
|
||||
$table->string('thank_page');
|
||||
$table->string('ticket_num_format');
|
||||
$table->string('internal_notes');
|
||||
$table->boolean('status');
|
||||
$table->boolean('type');
|
||||
$table->boolean('auto_response');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('sla_plan', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('grace_period');
|
||||
$table->string('admin_note');
|
||||
$table->boolean('status');
|
||||
$table->boolean('transient');
|
||||
$table->boolean('ticket_overdue');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('forms', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('title');
|
||||
$table->string('instruction');
|
||||
$table->string('label');
|
||||
$table->string('type');
|
||||
$table->string('visibility');
|
||||
$table->string('variable');
|
||||
$table->string('internal_notes');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('company', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('company_name');
|
||||
$table->string('website');
|
||||
$table->string('phone');
|
||||
$table->string('address');
|
||||
$table->string('landing_page');
|
||||
$table->string('offline_page');
|
||||
$table->string('thank_page');
|
||||
$table->string('logo');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('system', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->boolean('status');
|
||||
$table->string('url');
|
||||
$table->string('name');
|
||||
$table->string('department');
|
||||
$table->string('page_size');
|
||||
$table->string('log_level');
|
||||
$table->string('purge_log');
|
||||
$table->string('name_format');
|
||||
$table->string('time_farmat');
|
||||
$table->string('date_format');
|
||||
$table->string('date_time_format');
|
||||
$table->string('day_date_time');
|
||||
$table->string('time_zone');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('tickets', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('num_format');
|
||||
$table->string('num_sequence');
|
||||
$table->string('priority');
|
||||
$table->string('sla');
|
||||
$table->string('help_topic');
|
||||
$table->string('max_open_ticket');
|
||||
$table->string('collision_avoid');
|
||||
$table->string('captcha');
|
||||
$table->boolean('status');
|
||||
$table->boolean('claim_response');
|
||||
$table->boolean('assigned_ticket');
|
||||
$table->boolean('answered_ticket');
|
||||
$table->boolean('agent_mask');
|
||||
$table->boolean('html');
|
||||
$table->boolean('client_update');
|
||||
$table->boolean('max_file_size');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('email', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('template');
|
||||
$table->string('sys_email');
|
||||
$table->string('alert_email');
|
||||
$table->string('admin_email');
|
||||
$table->string('mta');
|
||||
$table->boolean('email_fetching');
|
||||
$table->boolean('strip');
|
||||
$table->boolean('separator');
|
||||
$table->boolean('all_emails');
|
||||
$table->boolean('email_collaborator');
|
||||
$table->boolean('attachment');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('access', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('password_expire');
|
||||
$table->string('reg_method');
|
||||
$table->string('user_session');
|
||||
$table->string('agent_session');
|
||||
$table->string('reset_ticket_expire');
|
||||
$table->boolean('password_reset');
|
||||
$table->boolean('bind_agent_ip');
|
||||
$table->boolean('reg_require');
|
||||
$table->boolean('quick_access');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('auto_response', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->boolean('new_ticket');
|
||||
$table->boolean('agent_new_ticket');
|
||||
$table->boolean('new_message');
|
||||
$table->boolean('overlimit');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
Schema::create('alert_notice', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->boolean('ticket_status');
|
||||
$table->boolean('ticket_admin_email');
|
||||
$table->boolean('ticket_department_manager');
|
||||
$table->boolean('ticket_organization_accmanager');
|
||||
$table->boolean('message_status');
|
||||
$table->boolean('message_last_responder');
|
||||
$table->boolean('message_assigned_agent');
|
||||
$table->boolean('message_department_manager');
|
||||
$table->boolean('message_organization_accmanager');
|
||||
$table->boolean('internal_status');
|
||||
$table->boolean('internal_last_responder');
|
||||
$table->boolean('internal_assigned_agent');
|
||||
$table->boolean('internal_department_manager');
|
||||
$table->boolean('assignment_status');
|
||||
$table->boolean('assignment_assigned_agent');
|
||||
$table->boolean('assignment_team_leader');
|
||||
$table->boolean('assignment_team_member');
|
||||
$table->boolean('transfer_status');
|
||||
$table->boolean('transfer_assigned_agent');
|
||||
$table->boolean('transfer_department_manager');
|
||||
$table->boolean('transfer_department_member');
|
||||
$table->boolean('overdue_status');
|
||||
$table->boolean('overdue_assigned_agent');
|
||||
$table->boolean('overdue_department_manager');
|
||||
$table->boolean('overdue_department_member');
|
||||
$table->boolean('system_error');
|
||||
$table->boolean('sql_error');
|
||||
$table->boolean('excessive_failure');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('alert_notice');
|
||||
Schema::drop('auto_response');
|
||||
Schema::drop('access');
|
||||
Schema::drop('email');
|
||||
Schema::drop('tickets');
|
||||
Schema::drop('system');
|
||||
Schema::drop('company');
|
||||
Schema::drop('forms');
|
||||
Schema::drop('sla_plan');
|
||||
Schema::drop('help_topic');
|
||||
Schema::drop('template');
|
||||
Schema::drop('banlist');
|
||||
Schema::drop('emails');
|
||||
Schema::drop('department');
|
||||
Schema::drop('groups');
|
||||
Schema::drop('teams');
|
||||
Schema::drop('agents');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateBanlistsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('banlists', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('banlists');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTemplatesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('templates', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('templates');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateLanguagesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('languages', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('languages');
|
||||
}
|
||||
|
||||
}
|
32
database/migrations/2015_03_24_061445_create_forms_table.php
Normal file
32
database/migrations/2015_03_24_061445_create_forms_table.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFormsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('forms', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('forms');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateSystemsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('systems', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('systems');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTicketsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('tickets', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('tickets');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateEmailsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('emails', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('emails');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateRespondersTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('responders', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('responders');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAlertsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('alerts', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('alerts');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTicketThreadsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('ticket_threads', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('ticket_threads');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePrioritiesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('priorities', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('priorities');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateMailboxProtocolsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('mailbox_protocols', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('mailbox_protocols');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFormVisibilitiesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('form_visibilities', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('form_visibilities');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFormTypesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('form_types', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('form_types');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTimeFormatsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('time_formats', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('time_formats');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateDateFormatsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('date_formats', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('date_formats');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateDateTimeFormatsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('date_time_formats', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('date_time_formats');
|
||||
}
|
||||
|
||||
}
|
32
database/migrations/2015_04_07_073117_create_logs_table.php
Normal file
32
database/migrations/2015_04_07_073117_create_logs_table.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateLogsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('logs', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('logs');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateSysUsersTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('sys_users', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('sys_users');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateOrganizationsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('organizations', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('organizations');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFormNamesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('form_names', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('form_names');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFormNamesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('form_names', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('form_names');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFormDetailsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('form_details', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('form_details');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFormValuesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('form_values', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('form_values');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAssignTeamAgentsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('assign_team_agents', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('assign_team_agents');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateGuestNotesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('guest_notes', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('guest_notes');
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateGroupAssignDepartmentsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('group_assign_departments', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('group_assign_departments');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user