Skip to content

Commit

Permalink
update price per day type
Browse files Browse the repository at this point in the history
  • Loading branch information
stazrouti committed Sep 16, 2024
1 parent 2994d19 commit 4caac7b
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ public function up(): void
{
Schema::create('cars', function (Blueprint $table) {
$table->id();
$table->string('Name'); // Car make, e.g., Toyota
$table->string('Model'); // Car model, e.g., Corolla
$table->string('Year'); // Year of manufacture
$table->string('Doors'); // Number of doors
$table->string('AC'); // Air conditioning (Yes/No)
$table->string('Transmission'); // Transmission type (Manual/Automatic)
$table->string('Fuel'); // Fuel type (Petrol/Diesel)
$table->decimal('Price_per_day', 8, 2); // Rental price per day
$table->string('Status'); // Car status (Available, Rented, Maintenance)
$table->string('Name');
$table->string('Model');
$table->string('Year');
$table->string('Doors');
$table->string('AC');
$table->string('Transmission');
$table->string('Fuel');
// Changing Price_per_day to store as an integer (in cents)
$table->integer('Price_per_day');
$table->string('Status');
$table->timestamps();
});

}


/**
* Reverse the migrations.
Expand Down

0 comments on commit 4caac7b

Please sign in to comment.