This commit is contained in:
2025-11-26 09:46:17 +03:30
parent d47b23f368
commit 6a8d27b2c3
12 changed files with 102 additions and 18 deletions

View File

@@ -21,7 +21,6 @@ return new class extends Migration
$table->dateTime('exit_time')->nullable();
$table->dateTime('enter_time')->nullable();
$table->timestamps();
$table->timestamps();
});
}

View File

@@ -13,8 +13,6 @@ return new class extends Migration
{
Schema::table('harims', function (Blueprint $table) {
$table->decimal('final_plan_space')->nullable();
});
}

View File

@@ -12,9 +12,12 @@ return new class extends Migration
public function up(): void
{
Schema::table('cmms_machines', function (Blueprint $table) {
$table->foreignId('province_id')->nullable()->constrained('provinces');
$table->foreignId('city_id')->nullable()->constrained('cities');
$table->foreignId('station_id')->nullable()->constrained('rahdari_points');
$table->unsignedTinyInteger('province_id')->nullable();
$table->foreign('province_id')->references('id')->on('provinces');
$table->unsignedSmallInteger('city_id')->nullable();
$table->foreign('city_id')->references('id')->on('cities');
$table->unsignedSmallInteger('station_id')->nullable();
$table->foreign('station_id')->references('id')->on('rahdari_points');
});
}