id(); $table->foreignId('created_by_id')->constrained('users')->restrictOnDelete(); $table->foreignId('submitted_by_id')->nullable()->constrained('users')->nullOnDelete(); $table->enum('status', CuttingStatus::values())->default(CuttingStatus::IN_PROGRESS->value); $table->string('description', 100)->nullable(); $table->unsignedBigInteger('total_material_cost')->nullable(); $table->unsignedBigInteger('sewing_cost')->default(0); $table->unsignedBigInteger('other_cost')->default(0); $table->unsignedBigInteger('cost_per_unit')->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); $table->softDeletes(); }); } public function down(): void { Schema::dropIfExists('cuttings'); } };