id(); $table->foreignId('tipe_peti_id')->nullable()->constrained('type_petis'); $table->string('warna', 50); $table->string('fix_lot', 100); $table->integer('packing_no'); $table->foreignId('customer_id')->nullable()->constrained('customers'); $table->integer('jumlah')->nullable(); $table->date('date_pembuatan', 100)->nullable(); $table->foreignId('warehouse_id')->nullable()->constrained('m_warehouses'); $table->foreignId('kondisipeti_id')->nullable()->constrained('kondisi_petis'); $table->string('status', 50)->default('AKTIF'); $table->timestamps(); $table->softDeletes(); $table->string('created_by', 200)->nullable(); $table->string('updated_by', 200)->nullable(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('petis'); } };