Skip to content

Commit

Permalink
Updated orders table and users table.
Browse files Browse the repository at this point in the history
  • Loading branch information
meowfu0 committed Oct 6, 2024
1 parent 15944b4 commit 00b218a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->timestamp('updated_at')->nullable();
$table->timestamp('last_login')->nullable();
$table->timestamp('modified_at')->nullable();
});
}

/**
* Reverse the migrations.
*
Expand All @@ -26,7 +28,7 @@ public function up()
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('updated_at');
$table->dropColumn(['updated_at', 'last_login', 'modified_at']);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function up()
$table->integer('total_items');
$table->timestamp('order_date');
$table->integer('reference_number');
$table->string('proof_of_payment');

$table->foreign('shop_id')->references('id')->on('shops')->onDelete('cascade');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
Expand Down

0 comments on commit 00b218a

Please sign in to comment.