meetup/database/migrations/2023_04_17_064832_create_ev...

36 lines
974 B
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('events', function (Blueprint $table) {
$table->id();
$table->string('name')->nullable();
$table->text('description')->nullable();
$table->dateTime('event_date')->nullable();
$table->dateTime('applications_start_date')->nullable();
$table->dateTime('application_end_date')->nullable();
$table->boolean('is_active')->nullable();
$table->text('duration')->nullable();
$table->string('image')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('events');
}
};