%PDF- %PDF-
Direktori : /var/www/html/hr/api/database/migrations/ |
Current File : /var/www/html/hr/api/database/migrations/2020_03_22_094515_create_configurations_table.php |
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateConfigurationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('configurations', function (Blueprint $table) { $table->id(); $table->boolean('should_get_holidays_from_working_day_overtime'); $table->integer('holidays_percentage_from_working_day_overtime') ->nullable(); $table->boolean('should_get_holidays_from_non_working_day_overtime'); $table->boolean('holidays_percentage_from_non_working_day_overtime') ->nullable(); $table->boolean('should_postpone_holidays'); $table->integer('holidays_validity_in_months'); $table->integer('expected_daily_working_hours'); $table->integer('overtime_percentage_on_working_day'); $table->integer('overtime_percentage_on_non_working_day'); $table->integer('out_sick_percentage'); $table->dateTime('valid_from'); $table->dateTime('valid_to') ->nullable(); $table->unsignedBigInteger('user_id') ->nullable() ->index(); $table->foreign('user_id') ->references('id') ->on('users'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('configurations'); } }