36 lines
954 B
PHP
36 lines
954 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('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');
|
|
}
|
|
};
|