Read Cart Items with JOINS
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user