ALPHA 3.0.2

This commit is contained in:
TheGamecraft
2018-09-05 11:35:41 -04:00
parent 4dbdc8fd19
commit 8ef8057bfa
771 changed files with 9284 additions and 5857 deletions

View File

@@ -19,13 +19,30 @@ class CreateUsersTable extends Migration
$table->string('lastname');
$table->string('email')->unique();
$table->string('password');
$table->string('rank')->default('0');
$table->string('adress');
$table->string('telephone');
$table->string('rank')->default(1);
$table->string('adress')->default('null');
$table->string('telephone')->default('null');
$table->string('age');
$table->string('avatar');
$table->string('avatar')->default('null');
$table->string('sexe');
$table->string('job');
$table->string('job')->default(6);
$table->integer('acces_level')->default(0);
$table->boolean('schedule_see')->default(0);
$table->boolean('schedule_edit')->default(0);
$table->boolean('schedule_notify')->default(0);
$table->boolean('message_see')->default(0);
$table->boolean('message_edit')->default(0);
$table->boolean('message_notify')->default(0);
$table->boolean('paper_edit')->default(0);
$table->boolean('paper_publish')->default(0);
$table->boolean('paper_notify')->default(0);
$table->boolean('inventory_see')->default(0);
$table->boolean('inventory_edit')->default(0);
$table->boolean('inventory_notify')->default(0);
$table->boolean('user_see')->default(0);
$table->boolean('user_edit')->default(0);
$table->boolean('user_notify')->default(0);
$table->string('api_token', 60)->unique()->default(str_random(60));
$table->rememberToken();
$table->timestamps();
});

View File

@@ -16,7 +16,23 @@ class CreateJobsTable extends Migration
Schema::create('jobs', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->text('perm');
$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();
});
}

View File

@@ -16,7 +16,22 @@ class CreateRanksTable extends Migration
Schema::create('ranks', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->text('perm');
$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();
});
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateConfigsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('configs', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('state');
$table->text('data');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('configs');
}
}