WIP
parent
ca047281ef
commit
e5e59293a4
|
|
@ -24,8 +24,10 @@ class CreateDealerManagerSalesLogsTable extends Migration
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->unique(['user_id', 'order_id', 'product_id']);
|
$table->unique(['user_id', 'order_id', 'product_id']);
|
||||||
|
$table->index(['user_id', 'order_completed_at']);
|
||||||
$table->index('order_id');
|
$table->index('order_id');
|
||||||
$table->index('product_id');
|
$table->index('product_id');
|
||||||
|
$table->index('order_completed_at');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,10 @@ class CreateDealerManageSubsidyLogsTable extends Migration
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->unique(['user_id', 'order_id', 'product_id']);
|
$table->unique(['user_id', 'order_id', 'product_id']);
|
||||||
|
$table->index(['user_id', 'order_completed_at']);
|
||||||
$table->index('order_id');
|
$table->index('order_id');
|
||||||
$table->index('product_id');
|
$table->index('product_id');
|
||||||
|
$table->index('order_completed_at');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue