Files
citrus-cms/database/migrations/2024_05_22_091832_create_handovers_table.php
T
2026-04-28 21:15:09 +03:00

89 lines
3.6 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHandoversTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('handovers', function (Blueprint $table) {
$table->id();
$table->string('object');
$table->string('work_type');
$table->string('project');
$table->integer('total_volumes');
$table->integer('collected_volumes');
$table->integer('not_collected_volumes')->default(1);
$table->string('responsible');
$table->date('date_of_transfer1')->nullable();
$table->date('date_of_return1')->nullable();
$table->string('status1')->nullable();
$table->date('date_of_transfer2')->nullable();
$table->date('date_of_return2')->nullable();
$table->string('status2')->nullable();
$table->date('date_of_transfer3')->nullable();
$table->date('date_of_return3')->nullable();
$table->string('status3')->nullable();
$table->string('waiting_tech1')->nullable();
$table->string('waiting_tech2')->nullable();
$table->string('waiting_tech3')->nullable();
$table->integer('sum_tech')->nullable();
$table->string('waiting_ste1')->nullable();
$table->string('waiting_ste2')->nullable();
$table->string('waiting_ste3')->nullable();
$table->integer('sum_ste')->nullable();
$table->date('date_of_transfer_ste1')->nullable();
$table->date('date_of_return_ste1')->nullable();
$table->string('status_ste1')->nullable();
$table->date('date_of_transfer_ste2')->nullable();
$table->date('date_of_return_ste2')->nullable();
$table->string('status_ste2')->nullable();
$table->string('waiting_apat1')->nullable();
$table->string('waiting_apat2')->nullable();
$table->integer('sum_apat')->nullable();
$table->string('waiting_ste_apat1')->nullable();
$table->string('waiting_ste_apat2')->nullable();
$table->integer('sum_ste_apat')->nullable();
$table->string('atg')->nullable();
$table->string('archive')->nullable();
$table->string('location')->nullable();
$table->string('status_atg')->nullable();
$table->integer('atg_count')->nullable();
$table->string('reminder')->nullable();
$table->integer('month_tex1')->nullable();
$table->integer('year_tex1')->nullable();
$table->string('year_month_tex1')->nullable();
$table->integer('month_tex2')->nullable();
$table->integer('year_tex2')->nullable();
$table->string('year_month_tex2')->nullable();
$table->integer('month_tex3')->nullable();
$table->integer('year_tex3')->nullable();
$table->string('year_month_tex3')->nullable();
$table->integer('month_apatit1')->nullable();
$table->integer('year_apatit1')->nullable();
$table->string('year_month_apatit1')->nullable();
$table->integer('month_apatit2')->nullable();
$table->integer('year_apatit2')->nullable();
$table->string('year_month_apatit2')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('handovers');
}
}