мой 1 камит

This commit is contained in:
Your Project Name
2025-11-19 17:47:46 +00:00
commit 89c10c6a70
98 changed files with 13664 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('requets', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('title');
$table->text('description');
$table->string('photo_path');
$table->string('detected_category');
$table->foreignId('assigned_user_id')->nullable()->constrained('users');
$table->foreignId('created_by_user_id')->constrained('users');
//$table->foreignId('category_id')->constrained('waste_categories');
$table->enum('status', ['new', 'in_progress', 'completed'])->default('new');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('requets');
}
};