pianello-api/database/migrations/2023_10_31_164703_create_placemarks_table.php

38 lines
945 B
PHP
Raw Permalink Normal View History

<?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('placemarks', function (Blueprint $table) {
$table->id();
$table->tinyInteger('sequence_number');
$table->string('name_it');
$table->string('name_en');
$table->text('description_it')->nullable();
$table->text('description_en')->nullable();
$table->float('latitude',8,6);
$table->float('longitude',8,6);
// pics defined in pivot table
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('placemarks');
}
};