id(); $table->string('nama_obat'); $table->string('slug')->unique()->nullable(); $table->string('foto_produk')->nullable(); $table->string('kategori')->default('Umum'); $table->foreignId('category_id')->nullable()->constrained('categories')->onDelete('set null'); $table->integer('qty')->default(0); $table->string('unit')->default('Pcs'); $table->date('expired_date')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('medicines'); } };