Files
backend/database/migrations/2024_03_05_133823_create_provinces_table.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.
*
* @return void
*/
public function up()
{
Schema::create('provinces', function (Blueprint $table) {
$table->tinyIncrements('id');
$table->string('name_fa');
$table->string('name_en')->nullable();
$table->unsignedTinyInteger('feature_id')->nullable();
$table->decimal('center_lat', 12, 10)->nullable();
$table->decimal('center_long', 12, 10)->nullable();
$table->string('abrar_link')->nullable()->default('#');
$table->string('abrar_process')->nullable();
$table->string('abrar_feature')->nullable();
$table->timestamps();
$table->decimal('poster_lat', 12, 10)->nullable();
$table->decimal('poster_long', 12, 10)->nullable();
$table->string('account_id', 50)->nullable();
$table->string('deposit_id', 50)->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('provinces');
}
};