Initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?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('contests', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->json('name');
|
||||
$table->json('description')->nullable();
|
||||
$table->string('url')->nullable();
|
||||
$table->string('evaluator')->default('Český radioklub')->nullable();
|
||||
$table->string('email')->default('vkvzavody@crk.cz')->nullable();
|
||||
$table->string('email2')->nullable();
|
||||
$table->boolean('is_mcr')->default(false)->index();
|
||||
$table->boolean('is_active')->default(false)->index();
|
||||
$table->boolean('is_test')->default(false)->index();
|
||||
$table->boolean('is_sixhr')->default(false)->index();
|
||||
$table->time('start_time')->default('14:00:00');
|
||||
$table->integer('duration')->default(24);
|
||||
$table->integer('logs_deadline_days')->default(3);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('contests');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user