pp-planer/database/migrations/2026_03_01_100100_create_services_table.php
Thorsten Bus 04d271f96a style: apply Laravel Pint formatting across codebase
Auto-formatted by Laravel Pint (default Laravel preset): string
concatenation spacing, anonymous class brace placement, constructor
body shorthand, import ordering, and assertion indentation.
2026-03-02 23:02:03 +01:00

30 lines
840 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('services', function (Blueprint $table) {
$table->id();
$table->string('cts_event_id')->unique();
$table->string('title');
$table->date('date')->index();
$table->string('preacher_name')->nullable();
$table->string('beamer_tech_name')->nullable();
$table->timestamp('finalized_at')->nullable();
$table->timestamp('last_synced_at');
$table->json('cts_data');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('services');
}
};