Read Cart Items with JOINS

This commit is contained in:
UronShrestha
2024-07-05 12:40:14 +05:45
parent 080094d2dd
commit 71944f3245
7 changed files with 117 additions and 118 deletions

View File

@ -13,9 +13,9 @@ return new class extends Migration
{
Schema::create('carts', function (Blueprint $table) {
$table->id();
$table->integer('productId')->default(0);
$table->integer('customerId')->default(0);
$table->integer('quantity')->default(0);
$table->integer('productId')->nullable();
$table->integer('customerId')->nullable();
$table->integer('quantity')->nullable();
$table->timestamps();
});