File: /home/jubaroyal/public_html/database/migrations/2023_04_04_122057_create_projects_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('projects', function (Blueprint $table) {
$table->id();
$table->integer('project_type_id')->nullable();
$table->integer('client_id')->nullable();
$table->text('name')->nullable();
$table->text('slug')->nullable();
$table->string('started_at')->nullable();
$table->string('ended_at')->nullable();
$table->string('value')->nullable();
$table->text('location')->nullable();
$table->text('photo')->nullable();
$table->text('project_feature_photo')->nullable();
$table->text('project_header_photo')->nullable();
$table->text('description')->nullable();
$table->string('status')->default('Active');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('projects');
}
};