Commit 10db17a2 by lujunyi

药店添加已删除药品问题

parent 8eeac34b
......@@ -20,7 +20,7 @@ public function up(): void
$table->string('unit', 20)->nullable()->comment('单位');
$table->bigInteger('dosage_id')->nullable()->comment('用法用量表ID');
$table->string('batch_no', 64)->nullable()->comment('批次号');
$table->unique(['pharmacy_id', 'drug_id'], 'uk_pharmacyid_drugid');
$table->unique(['pharmacy_id', 'drug_id', 'deleted_at'], 'uk_pharmacyid_drugid_deletedat');
$table->timestamps();
$table->softDeletes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment