数据库迁移优化

This commit is contained in:
liu
2026-08-20 16:52:58 +08:00
parent 4fe4e985f6
commit 1dfa084508
4 changed files with 6 additions and 6 deletions
@@ -35,7 +35,7 @@ return new class extends Migration
$table->string('pay_remark', 255)->default('')->comment('付款备注(线下收款信息)');
$table->integer('paid_operator_id')->default(0)->comment('收款操作人(后台系统用户ID)');
$table->integer('operator_id')->default(0)->comment('生成人(后台系统用户ID');
$table->string('remark', 255)->default('')->comment('备注');
$table->string('remark', 255)->nullable()->default('')->comment('备注');
$table->timestamps();
$table->unique(['purchase_id', 'store_id'], 'bill_purchase_store_unique');
$table->index(['store_id', 'bill_date'], 'bill_store_date_index');