promoseven-group/database/migrations/2026_01_28_112044_create_venues_table.php

32 lines
788 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('venues', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->enum('type', ['hotel', 'restaurant', 'bar', 'beach', 'pool', 'watersports']);
$table->string('address')->nullable();
$table->enum('group', ['seven', 'city_center', 'coral_bay']);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('venues');
}
};