mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
ALPHA 3.0.2
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user