Ale Gallo
b91cf0cbde
committing part of the laravel system with templating files and api implementation.
37 lines
945 B
PHP
37 lines
945 B
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('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');
|
|
}
|
|
};
|