You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
999 B

<?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('activities', function (Blueprint $table) {
$table->id();
$table->foreignId('venue_id')->constrained()->cascadeOnDelete();
$table->string('title');
$table->string('category', 50)->nullable();
$table->unsignedInteger('quota')->default(0);
$table->unsignedInteger('registered_count')->default(0);
$table->timestamp('start_at')->nullable();
$table->timestamp('end_at')->nullable();
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('activities');
}
};