Files
ntspi-app/database/migrations/2024_01_11_133702_create_students_table.php
2026-03-20 21:47:02 +05:00

37 lines
967 B
PHP
Executable File

<?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('students', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('surname');
$table->string('middleName')->nullable();
$table->string('photo')->nullable();
$table->string('position')->nullable();
$table->string('education');
$table->string('vk_link')->nullable();
$table->string('contactEmail')->nullable();
$table->string('contactPhone')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('students');
}
};