Update
parent
5814642bfb
commit
27dc7dd04c
|
|
@ -23,8 +23,9 @@ class CreateDealerManagerSalesLogsTable extends Migration
|
||||||
$table->timestamp('order_completed_at')->nullable()->comment('订单完成时间');
|
$table->timestamp('order_completed_at')->nullable()->comment('订单完成时间');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->index('user_id');
|
$table->unique(['user_id', 'order_id', 'product_id']);
|
||||||
$table->index('order_id');
|
$table->index('order_id');
|
||||||
|
$table->index('product_id');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue