set timestamp defaults

This commit is contained in:
2023-01-24 22:56:00 +10:00
parent dd3c196aa3
commit 758f57ec3e

View File

@@ -18,9 +18,9 @@ return new class extends Migration
$table->string('title');
$table->string('location');
$table->string('address')->nullable();
$table->timestamp('start_at');
$table->timestamp('end_at');
$table->timestamp('publish_at')->nullable();
$table->timestamp('start_at')->useCurrent();
$table->timestamp('end_at')->useCurrent();
$table->timestamp('publish_at')->useCurrent()->nullable();
$table->string('status')->default('draft');
$table->string('registration_type');
$table->string('registration_data')->nullable();