44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?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('visas', function (Blueprint $table) {
|
|
$table->id('visa_id');
|
|
$table->integer('branches_id')->nullable();
|
|
$table->string('candidate')->nullable();
|
|
$table->integer('ref')->default(0);
|
|
$table->string('title')->nullable();
|
|
$table->string('alias')->nullable();
|
|
$table->string('image')->nullable();
|
|
$table->string('cover')->nullable();
|
|
$table->text('description')->nullable();
|
|
$table->text('text')->nullable();
|
|
$table->string('university')->nullable();
|
|
$table->string('faculty')->nullable();
|
|
$table->string('remarks')->nullable();
|
|
$table->integer('display_order')->nullable();
|
|
$table->integer('status')->nullable();
|
|
$table->string('createdby')->nullable();
|
|
$table->string('updatedby')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('visas');
|
|
}
|
|
};
|