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.

40 lines
1.5 KiB

1 month ago
<?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('applications', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->unique()->constrained()->cascadeOnDelete();
$table->string('status', 20)->default('draft')->index();
$table->string('player_name')->nullable();
$table->string('school')->nullable();
$table->string('degree', 50)->nullable();
$table->string('contact_email')->nullable();
$table->string('contact_mobile', 20)->nullable();
$table->string('company_name')->nullable();
$table->string('project_name')->nullable();
$table->string('track', 100)->nullable();
$table->string('location_country', 50)->nullable();
$table->string('location_province', 100)->nullable();
$table->string('location_city', 100)->nullable();
$table->string('oversea_country', 100)->nullable();
$table->text('intro')->nullable();
$table->timestamp('promise_signed_at')->nullable();
$table->mediumText('promise_signature')->nullable();
$table->timestamp('submitted_at')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('applications');
}
};