数据库迁移优化

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
@@ -24,7 +24,7 @@ return new class extends Migration
$table->decimal('estimate_amount', 10, 2)->default(0)->comment('预估金额(按订货汇总)');
$table->decimal('actual_amount', 10, 2)->default(0)->comment('实际采购金额');
$table->integer('operator_id')->default(0)->comment('采购员(系统用户ID');
$table->string('remark', 255)->default('')->comment('备注');
$table->string('remark', 255)->default('')->nullable()->comment('备注');
$table->timestamps();
$table->index(['purchase_date', 'status'], 'purchase_order_date_status_index');
$table->comment('采购单表');