meetup/database/migrations/2023_04_17_065049_create_at...

36 lines
954 B
PHP
Raw Normal View History

2023-04-17 11:22:49 +00:00
<?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('attenders', function (Blueprint $table) {
$table->id();
$table->string('name')->nullable();
$table->string('surname')->nullable();
$table->string('email')->nullable();
$table->string('organization')->nullable();
$table->string('file')->nullable();
$table->boolean('is_attending')->default(1);
$table->boolean('consent_form')->default(1);
$table->boolean('attended')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('attenders');
}
};